Group :: System/Kernel and hardware
RPM: acl
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_with static
Name: acl
Version: 2.2.47
Release: alt1
Summary: Command for manipulating access control lists
License: LGPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Source: %name-%version-%release.tar
Requires: lib%name = %version-%release
BuildRequires: libattr-devel 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
%build
export DEBUG="-DNDEBUG"
%configure
%make_build
%install
make install install-lib install-dev \
DIST_ROOT=$RPM_BUILD_ROOT PKG_LIB_DIR=/%_lib PKG_DEVLIB_DIR=%_libdir
# Workaround bug in makefiles
rm -rf %buildroot%_datadir/doc/%name
rm -f %buildroot/%_lib/*.{a,la,so}
ln -sf ../../%_lib/lib%name.so.1 %buildroot%_libdir/lib%name.so
# Relocate chacl.
mkdir %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
Name: acl
Version: 2.2.47
Release: alt1
Summary: Command for manipulating access control lists
License: LGPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Source: %name-%version-%release.tar
Requires: lib%name = %version-%release
BuildRequires: libattr-devel 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
%build
export DEBUG="-DNDEBUG"
%configure
%make_build
%install
make install install-lib install-dev \
DIST_ROOT=$RPM_BUILD_ROOT PKG_LIB_DIR=/%_lib PKG_DEVLIB_DIR=%_libdir
# Workaround bug in makefiles
rm -rf %buildroot%_datadir/doc/%name
rm -f %buildroot/%_lib/*.{a,la,so}
ln -sf ../../%_lib/lib%name.so.1 %buildroot%_libdir/lib%name.so
# Relocate chacl.
mkdir %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