Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37544554
en ru br
ALT Linux repos
S:2.3.1.0.20.d265-alt1
5.0: 2.2.47-alt2
4.1: 2.2.47-alt1
4.0: 2.2.39-alt1.0
3.0: 2.2.23-alt2

Other repositories
Upstream:2.2.47-1

Group :: System/Kernel and hardware
RPM: acl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-
# $Id: acl,v 1.6 2004/05/15 08:01:01 ab Exp $

Name: acl
Version: 2.2.23
Release: alt2

Summary: Command for manipulating access control lists
License: GPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Packager: Alexander Bokovoy <ab at altlinux.ru>

Source: ftp://oss.sgi.com/projects/xfs/download/cmd_tars/%name-%version.src.tar.gz

BuildPreReq: rpm-build >= 4.0.4-alt10, libtool_1.4

# makefiles are buggy

BuildConflicts: libacl-devel

Requires: lib%name = %version-%release

# Automatically added by buildreq on Fri Dec 27 2002

BuildRequires: libattr-devel

%description
A command (chacl) to manipulate POSIX access control lists
under Linux.

%package -n lib%name
Summary: Main library for %name
Group: System/Libraries

%description -n lib%name
This package contains the library needed to run programs dynamically
linked with lib%name.

%package -n lib%name-devel
Summary: Access control list headers
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the header files needed to
develop programs which make use of POSIX access control lists.

You should install this package if you want to develop programs
which make use of ACLs.  If you install this package, you'll
also want to install lib%name.

%package -n lib%name-devel-static
Summary: Access control list static libraries
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains the static libraries needed to
develop programs which make use of POSIX access control lists.

You should install this package if you want to develop programs
which make use of ACLs.  If you install this package, you'll
also want to install lib%name-devel.

%prep
%setup -q

%build
%set_libtool_version 1.4
export DEBUG="-DNDEBUG"
autoconf
%configure
%make_build

%install
make install install-lib install-dev DIST_ROOT=$RPM_BUILD_ROOT

# Workaround bug in makefiles

%__rm -f $RPM_BUILD_ROOT%_libdir/*.{so,*a}
%__rm -rf %buildroot%_datadir/doc/%name
%__install -p -m644 */.libs/*.a $RPM_BUILD_ROOT%_libdir/

# Relocate shared libraries from %_libdir/ to /%_lib/.

%__mkdir_p $RPM_BUILD_ROOT/%_lib
%__mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/%_lib/
%__chmod 644 $RPM_BUILD_ROOT/%_lib/*
for f in */.libs/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s -nf ../../%_lib/"$t" "$RPM_BUILD_ROOT%_libdir/${f##*/}"
done

# Relocate chacl.

%__mkdir -p $RPM_BUILD_ROOT/bin
mv -f $RPM_BUILD_ROOT%_bindir/chacl $RPM_BUILD_ROOT/bin/

%find_lang  %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -f %name.lang
/bin/*
%_bindir/*
%_man1dir/*
%doc doc/CHANGES.gz README

%files -n lib%name
/%_lib/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_mandir/man[235]/*
%_includedir/%name
%_includedir/*/*
%doc doc/PORTING

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin