]> git.pld-linux.org Git - packages/acl.git/blobdiff - acl.spec
- 2.2.23
[packages/acl.git] / acl.spec
index b767f422f793e26ea9ab1f52c3e19e681186920b..e205e5546cdf5067a432ee96685e396ed87f4704 100644 (file)
--- a/acl.spec
+++ b/acl.spec
-Summary:       Advanced Color Logs
-Summary(pl):   Advanced Color Logs - program koloruj±cy logi
+Summary:       Command and library for manipulating access control lists
+Summary(pl):   Polecenie i biblioteka do manipulacji listami kontroli dostêpu (ACL)
 Name:          acl
-Version:       0.7.0
+Version:       2.2.23
 Release:       1
-License:       GPL
-Group:         Utilities/Console
-Group(pl):     Narzêdzia/Konsola
-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
-BuildArch:     noarch
-BuildRoot:     /tmp/%{name}-%{version}-root
+License:       GPL v2 (chacl utility), LGPL v2+ (library and the rest)
+Group:         Applications/System
+Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
+# Source0-md5: 7e13778c38addfcdabf2cef291b78bcc
+Source1:       %{name}-pl.po
+Patch0:                %{name}-miscfix.patch
+URL:           http://oss.sgi.com/projects/xfs/
+BuildRequires: attr-devel >= 2.4.15
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+Requires:      attr >= 2.4.15
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _bindir         /bin
+%define                _libdir         /%{_lib}
+%define                _libexecdir     /usr/%{_lib}
 
 %description
-acl is a perl script that colorizes system logs. Inspired by ColorLogs, 
-acl (Advanced Color Logs) has advanced parsing capabilities.
+A command (chacl) and a library (libacl) 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.
+Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
+POSIX listami kontroli dostêpu (ACL) pod Linuksem.
+
+%package devel
+Summary:       Header files for acl library
+Summary(pl):   Pliki nag³ówkowe biblioteki acl
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+Requires:      attr-devel
+
+%description devel
+Header files to develop software which manipulate access control
+lists.
+
+%description devel -l pl
+Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
+listami kontroli dostêpu (ACL).
+
+%package static
+Summary:       Static acl library
+Summary(pl):   Statyczna biblioteka acl
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description static
+Static acl library.
+
+%description static -l pl
+Statyczna biblioteka acl.
 
 %prep
 %setup -q
-%patch -p0
+%patch0 -p1
+chmod -Rf u+w .
+
+cp %{SOURCE1} po/pl.po
+%{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile
+
+%build
+rm -f aclocal.m4
+%{__aclocal} -I m4
+%{__autoconf}
+%configure \
+       DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
+       OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/etc}
+install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
+
+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
 
-install acl.pl   $RPM_BUILD_ROOT%{_bindir}/acl
-install acl.conf $RPM_BUILD_ROOT/etc
+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
 
-gzip -9nf README NEWS TODO 
+rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
+ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
+       $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README doc/{CHANGES,TODO}
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%{_mandir}/man[15]/*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/{extensions.txt,libacl.txt}
+%attr(755,root,root) %{_libexecdir}/lib*.so
+%{_libexecdir}/lib*.la
+%{_includedir}/acl
+%{_includedir}/sys/*
+%{_mandir}/man[23]/*
+
+%files static
 %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
+%{_libexecdir}/lib*.a
This page took 0.073655 seconds and 4 git commands to generate.