Sisyphus repository
Last update: 22 october 2019 | SRPMs: 17517 | Visits: 15398072
en ru br
ALT Linux repos
S:2.2.53-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 

# -*- rpm-spec -*-
# $Id: acl,v 1.3 2006/09/15 12:47:41 me Exp $

%def_with static

Name: acl
Version: 2.2.39
Release: alt1.0

Summary: Command for manipulating access control lists
License: LGPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/

Source: %name-%version.tar.bz2

Requires: lib%name = %version-%release
BuildRequires: libattr-devel libtool_1.4 rpm-build >= 4.0.4-alt10
BuildConflicts: libacl-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

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

%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
This package contains the library needed to run programs dynamically
linked with lib%name.

%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.

%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 %buildroot%_libdir/*.{so,*a}
%__rm -rf %buildroot%_datadir/doc/%name
%__install -p -m644 */.libs/*.a %buildroot%_libdir/

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

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

# Relocate chacl.

%__mkdir -p %buildroot/bin
mv -f %buildroot%_bindir/chacl %buildroot/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

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

%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