]> git.pld-linux.org Git - packages/acl.git/blobdiff - acl.spec
- 2.0.11, STBR
[packages/acl.git] / acl.spec
index f58b1bd398da5be7f025a6606280c945d494b82b..fdba0ef897112fc4c4491aa95f97cd6006b84594 100644 (file)
--- a/acl.spec
+++ b/acl.spec
@@ -1,44 +1,94 @@
-Summary:       Advanced Color Logs
-Summary(pl):   Advanced Color Logs - program koloruj±cy logi
+Summary:       Command for manipulating access control lists
+Summary(pl):   Komenda do manipulacji listami kontroli dostêpu (ACL)
 Name:          acl
-Version:       0.6.0
+Version:       2.0.11
 Release:       1
-Group:         Utilities/Console
-Group(pl):     Narzêdzia/Konsola
-Copyright:     GPL
-Source:                http://spyjurenet.com/linuxrc.org/projects/acl/%{name}-%{version}.tar.gz
-Patch:         acl-config.patch
-URL:           http://spyjurenet.com/linuxrc.org/projects/acl/
-Requires:      perl
-BuildRoot:     /tmp/%{name}-%{version}-root
+License:       GPL
+Group:         Applications/System
+Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
+Patch0:                %{name}-miscfix.patch
+URL:           http://oss.sgi.com/projects/xfs/
+BuildRequires: autoconf
+BuildRequires: attr-devel >= 2.0.0
+Requires:      attr
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-acl is a perl script that colorizes system logs. Inspired by ColorLogs, 
-acl (Advanced Color Logs) has advanced parsing capabilities.
+A command (chacl) to manipulate POSIX access control lists under
+Linux.
 
 %description -l pl
-acl to skrypt napisany w perlu, koloruj±cy logi systemowe. Zainspirowany
-programem ColorLogs, acl (Advanced Color Logs) posiada bardziej rozbudowane
-mo¿liwo¶ci parsowania.
+Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
+dostêpu (ACL) pod Linuksem.
+
+%package devel
+Summary:       Header files and libraries to manipulate acls
+Summary(pl):   Pliki nag³ówkowe i biblioteki do manipulacji ACL-ami
+Group:         Development/Libraries
+
+%description devel
+Header files and libraries to develop software which manipulate access
+control lists.
+
+%description devel -l pl
+Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
+manipuluj±cego listami kontroli dostêpu (ACL).
 
 %prep
-%setup -q
-%patch -p0
+%setup  -q
+%patch0 -p1
+
+%build
+DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
+%{__autoconf}
+%configure
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/etc}
+install -d $RPM_BUILD_ROOT%{_includedir}/acl
 
-install acl.pl   $RPM_BUILD_ROOT%{_bindir}/acl
-install acl.conf $RPM_BUILD_ROOT/etc
+DIST_ROOT="$RPM_BUILD_ROOT"
+DIST_INSTALL=`pwd`/install.manifest
+DIST_INSTALL_DEV=`pwd`/install-dev.manifest
+DIST_INSTALL_LIB=`pwd`/install-lib.manifest
+export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
+%{__make} install DIST_MANIFEST="$DIST_INSTALL"
+%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
+%{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
 
-gzip -9nf README NEWS TODO 
+
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
+rm -f  $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
+rm -f  $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
+echo ".so acl_copy_ext.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
+echo ".so acl_get_fd.3"        > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
+echo ".so acl_get_file.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
+echo ".so acl_from_text.3"     > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
+echo ".so acl_from_text.3"     > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
+ln -sf /lib/libacl.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libacl.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc {README,NEWS,TODO}.gz
-%attr(755,root,root) %{_bindir}/acl
-%config(noreplace) %verify(not size mtime md5) /etc/acl.conf
+%doc doc/CHANGES
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) /lib/lib*.so.*.*
+%{_mandir}/man1/*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.a
+%{_includedir}/acl
+%{_includedir}/sys/*
+%{_mandir}/man[235]/*
This page took 0.033739 seconds and 4 git commands to generate.