]> git.pld-linux.org Git - packages/acl.git/blobdiff - acl.spec
- updated to 2.2.53
[packages/acl.git] / acl.spec
index f9740d169e945e419a8a65416da4ccb4889c9513..edf53bef2bdb0b21d03a87812ad14a6f2e93a081 100644 (file)
--- a/acl.spec
+++ b/acl.spec
-Summary:       Command for manipulating access control lists
-Summary(pl):   Komenda do manipulacji listami kontroli dostêpu (ACL)
+Summary:       Command and library for manipulating access control lists
+Summary(pl.UTF-8):     Polecenie i biblioteka do manipulacji listami kontroli dostępu (ACL)
 Name:          acl
-Version:       1.1.4
+Version:       2.2.53
 Release:       1
-License:       GPL
+License:       LGPL v2+ (library), GPL v2 (utilities)
 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
+Source0:       http://git.savannah.gnu.org/cgit/acl.git/snapshot/%{name}-%{version}.tar.gz
+# Source0-md5: 0c72e292be55ac60e890c00e6c561af8
+Patch0:                %{name}-pl.po-update.patch
+URL:           http://savannah.nongnu.org/projects/acl/
+BuildRequires: attr-devel >= 2.4.16-3
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-tools >= 0.18.2
+BuildRequires: libtool >= 2:2
+BuildRequires: rpmbuild(macros) >= 1.402
+BuildRequires: sed >= 4.0
+Requires:      attr >= 2.4.15
+Obsoletes:     libacl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _bindir         /bin
+
 %description
-A command (chacl) to manipulate POSIX access control lists under
-Linux.
+A command (chacl) and a library (libacl) to manipulate POSIX access
+control lists under Linux.
 
-%description -l pl
-Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
-dostêpu (ACL) pod Linuksem.
+%description -l pl.UTF-8
+Polecenie (chacl) i biblioteka (libacl) 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
+Summary:       Header files for acl library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki acl
 Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      attr-devel >= 2.4.16-3
 
 %description devel
-Header files and libraries to develop software which manipulate access
-control lists.
+Header files to develop software which manipulate access control
+lists.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe potrzebne do rozwoju oprogramowania manipulującego
+listami kontroli dostępu (ACL).
+
+%package static
+Summary:       Static acl library
+Summary(pl.UTF-8):     Statyczna biblioteka acl
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static acl library.
 
-%description devel -l pl
-Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
-manipuluj±cego listami kontroli dostêpu (ACL).
+%description static -l pl.UTF-8
+Statyczna biblioteka acl.
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
 
+# prepare for gettextize
+%{__sed} -i -e 's,po/Makefile\.in,,' configure.ac
+
 %build
-DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
-autoconf
+po/update-potfiles
+%{__gettextize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+
 %configure
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/acl
 
-DIST_ROOT="$RPM_BUILD_ROOT"
-DIST_INSTALL=`pwd`/install.manifest
-DIST_INSTALL_DEV=`pwd`/install-dev.manifest
-export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
-%{__make} install DIST_MANIFEST="$DIST_INSTALL"
-%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-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 man3/acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
-echo ".so man3/acl_get_fd.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
-echo ".so man3/acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
-echo ".so man3/acl_from_text.3"        > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
-echo ".so man3/acl_from_text.3"        > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
+install -d $RPM_BUILD_ROOT/%{_lib}
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libacl.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libacl.so.*.*.*) \
+       $RPM_BUILD_ROOT%{_libdir}/libacl.so
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
-ln -sf /lib/libacl.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libacl.so
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
-gzip -9nf doc/CHANGES
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc doc/*.gz
-%attr(755,root,root) /bin/*
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) /lib/lib*.so.*.*
-%{_mandir}/man1/*
+%doc README doc/{CHANGES,TODO}
+%attr(755,root,root) %{_bindir}/chacl
+%attr(755,root,root) %{_bindir}/getfacl
+%attr(755,root,root) %{_bindir}/setfacl
+%attr(755,root,root) /%{_lib}/libacl.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libacl.so.1
+%{_mandir}/man1/chacl.1*
+%{_mandir}/man1/getfacl.1*
+%{_mandir}/man1/setfacl.1*
+%{_mandir}/man5/acl.5*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.a
+%doc doc/{extensions.txt,libacl.txt}
+%attr(755,root,root) %{_libdir}/libacl.so
+%{_libdir}/libacl.la
 %{_includedir}/acl
-%{_includedir}/sys/*
-%{_mandir}/man[235]/*
+%{_includedir}/sys/acl.h
+%{_pkgconfigdir}/libacl.pc
+%{_mandir}/man3/acl_*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libacl.a
This page took 0.120196 seconds and 4 git commands to generate.