]> git.pld-linux.org Git - packages/acl.git/blobdiff - acl.spec
- BR: libtool
[packages/acl.git] / acl.spec
index 3fe6a24867cd1f815da3f100895c5bcade474cc9..1fa026b905e01edc7f1c640585698064dc8a0ab5 100644 (file)
--- a/acl.spec
+++ b/acl.spec
@@ -1,23 +1,28 @@
 Summary:       Command and library for manipulating access control lists
 Summary(pl):   Polecenie i biblioteka do manipulacji listami kontroli dostêpu (ACL)
 Name:          acl
-Version:       2.2.15
+Version:       2.2.28
 Release:       1
-License:       GPL v2 (chacl utility), LGPL v2+ (library and the rest)
+License:       LGPL v2+ (library), GPL v2 (utilities)
 Group:         Applications/System
-Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/Release-1.3/cmd_tars/%{name}-%{version}.src.tar.gz
-# Source0-md5: abd11b89ec2e2af7a272b32da391aa58
+Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
+# Source0-md5: 69ba4f7e2bb87d20aedd15249f8747eb
 Patch0:                %{name}-miscfix.patch
+Patch1:                %{name}-lt.patch
 URL:           http://oss.sgi.com/projects/xfs/
-BuildRequires: attr-devel >= 2.4.8
+BuildRequires: attr-devel >= 2.4.16-3
 BuildRequires: autoconf
 BuildRequires: automake
-Requires:      attr >= 2.4.8
+BuildRequires: gettext-devel
+BuildRequires: libtool
+BuildRequires: sed >= 4.0
+Requires:      attr >= 2.4.15
+Obsoletes:     libacl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _bindir         /bin
-%define                _libdir         /lib
-%define                _libexecdir     /usr/lib
+%define                _libdir         /%{_lib}
+%define                _libexecdir     /usr/%{_lib}
 
 %description
 A command (chacl) and a library (libacl) to manipulate POSIX access
@@ -31,8 +36,8 @@ POSIX listami kontroli dost
 Summary:       Header files for acl library
 Summary(pl):   Pliki nag³ówkowe biblioteki acl
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Requires:      attr-devel
+Requires:      %{name} = %{version}-%{release}
+Requires:      attr-devel >= 2.4.16-3
 
 %description devel
 Header files to develop software which manipulate access control
@@ -46,7 +51,7 @@ listami kontroli dost
 Summary:       Static acl library
 Summary(pl):   Statyczna biblioteka acl
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static acl library.
@@ -57,15 +62,15 @@ Statyczna biblioteka acl.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
-#DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
 rm -f aclocal.m4
 %{__aclocal} -I m4
 %{__autoconf}
 %configure \
        DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
-       OPTIMIZER="%{rpmcflags}"
+       OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
 
 %{__make}
 
@@ -89,7 +94,7 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
 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_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
@@ -97,6 +102,8 @@ echo ".so acl_from_text.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
 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
+%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
+       $RPM_BUILD_ROOT%{_libexecdir}/libacl.la
 
 %find_lang %{name}
 
This page took 0.14182 seconds and 4 git commands to generate.