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
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
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.
%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}
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
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}