0f16a9
Summary: Access control list utilities
0f16a9
Name: acl
0f16a9
Version: 2.2.51
0f16a9
Release: 14%{?dist}
0f16a9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0f16a9
BuildRequires: gawk
0f16a9
BuildRequires: gettext
0f16a9
BuildRequires: libattr-devel
0f16a9
BuildRequires: libtool
0f16a9
Requires: libacl = %{version}-%{release}
0f16a9
Source: http://download.savannah.gnu.org/releases-noredirect/acl/acl-%{version}.src.tar.gz
0f16a9
Patch1: acl-2.2.39-build.patch
0f16a9
0f16a9
# prepare the test-suite for SELinux and arbitrary umask
0f16a9
Patch4: acl-2.2.49-tests.patch
0f16a9
0f16a9
# fix typos in setfacl(1) man page (#675451)
0f16a9
Patch6: acl-2.2.49-bz675451.patch
0f16a9
0f16a9
# fix SIGSEGV of getfacl -e on overly long group name
0f16a9
Patch7: acl-2.2.51-getfacl-segv.patch
0f16a9
0f16a9
# setfacl.1: document the meaning of '-' in perms (#1337039)
0f16a9
Patch8: acl-2.2.52-setfacl-man-page.patch
0f16a9
0f16a9
# fix spurious acl_check() failure on setfacl --restore (#1451820)
0f16a9
Patch9: acl-2.2.52-setfacl-restore-initialize.patch
0f16a9
0f16a9
License: GPLv2+
0f16a9
Group: System Environment/Base
0f16a9
URL: http://acl.bestbits.at/
0f16a9
0f16a9
%description
0f16a9
This package contains the getfacl and setfacl utilities needed for
0f16a9
manipulating access control lists.
0f16a9
0f16a9
%package -n libacl
0f16a9
Summary: Dynamic library for access control list support
0f16a9
License: LGPLv2+
0f16a9
Group: System Environment/Libraries
0f16a9
Requires(post): /sbin/ldconfig
0f16a9
Requires(postun): /sbin/ldconfig
0f16a9
Conflicts: filesystem < 3
0f16a9
0f16a9
%description -n libacl
0f16a9
This package contains the libacl.so dynamic library which contains
0f16a9
the POSIX 1003.1e draft standard 17 functions for manipulating access
0f16a9
control lists.
0f16a9
0f16a9
%package -n libacl-devel
0f16a9
Summary: Files needed for building programs with libacl
0f16a9
License: LGPLv2+
0f16a9
Group: Development/Libraries
0f16a9
Requires: libacl = %{version}-%{release}, libattr-devel
0f16a9
0f16a9
%description -n libacl-devel
0f16a9
This package contains header files and documentation needed to develop
0f16a9
programs which make use of the access control list programming interface
0f16a9
defined in POSIX 1003.1e draft standard 17.
0f16a9
0f16a9
%prep
0f16a9
%setup -q
0f16a9
%patch1 -p1
0f16a9
%patch4 -p1
0f16a9
%patch6 -p1
0f16a9
%patch7 -p1
0f16a9
%patch8 -p1
0f16a9
%patch9 -p1
0f16a9
0f16a9
%build
0f16a9
touch .census
0f16a9
# acl abuses libexecdir
0f16a9
%configure --libexecdir=%{_libdir}
0f16a9
0f16a9
# uncomment to turn on optimizations
0f16a9
# sed -i 's/-O2/-O0/' libtool include/builddefs
0f16a9
# unset CFLAGS
0f16a9
0f16a9
make %{?_smp_mflags} LIBTOOL="libtool --tag=CC"
0f16a9
0f16a9
%check
0f16a9
if ./setfacl/setfacl -m u:`id -u`:rwx .; then
0f16a9
    make tests || exit $?
0f16a9
    if test 0 = `id -u`; then
0f16a9
        # test/root/permissions.test requires the 'daemon' user to be a member
0f16a9
        # of the 'bin' group in order not to fail.  Prevent the test from
0f16a9
        # running if we detect that its requirements are not met (#1085389).
0f16a9
        id -nG daemon | grep bin >/dev/null || rm -f test/root/permissions.test
0f16a9
0f16a9
        make root-tests || exit $?
0f16a9
    fi
0f16a9
else
0f16a9
    echo '*** ACLs are probably not supported by the file system,' \
0f16a9
         'the test-suite will NOT run ***'
0f16a9
fi
0f16a9
0f16a9
%install
0f16a9
make install DESTDIR=$RPM_BUILD_ROOT
0f16a9
make install-dev DESTDIR=$RPM_BUILD_ROOT
0f16a9
make install-lib DESTDIR=$RPM_BUILD_ROOT
0f16a9
0f16a9
# get rid of libacl.a and libacl.la
0f16a9
rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.a
0f16a9
rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.la
0f16a9
rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.a
0f16a9
rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.la
0f16a9
0f16a9
chmod 0755 $RPM_BUILD_ROOT/%{_libdir}/libacl.so.*.*.*
0f16a9
0f16a9
%find_lang %{name}
0f16a9
0f16a9
%post -n libacl -p /sbin/ldconfig
0f16a9
0f16a9
%postun -n libacl -p /sbin/ldconfig
0f16a9
0f16a9
%files -f %{name}.lang
0f16a9
%{_bindir}/chacl
0f16a9
%{_bindir}/getfacl
0f16a9
%{_bindir}/setfacl
0f16a9
%{_datadir}/doc/acl-%{version}
0f16a9
%{_mandir}/man1/chacl.1*
0f16a9
%{_mandir}/man1/getfacl.1*
0f16a9
%{_mandir}/man1/setfacl.1*
0f16a9
%{_mandir}/man5/acl.5*
0f16a9
0f16a9
%files -n libacl-devel
0f16a9
%{_libdir}/libacl.so
0f16a9
%{_includedir}/acl
0f16a9
%{_includedir}/sys/acl.h
0f16a9
%{_mandir}/man3/acl_*
0f16a9
0f16a9
%files -n libacl
0f16a9
%{_libdir}/libacl.so.*
0f16a9
0f16a9
%changelog
0f16a9
* Thu May 18 2017 Kamil Dudka <dkdudka@redhat.com> - 2.2.51-14
0f16a9
- fix spurious acl_check() failure on setfacl --restore (#1451820)
0f16a9
0f16a9
* Thu May 19 2016 Kamil Dudka <dkdudka@redhat.com> - 2.2.51-13
0f16a9
- avoid failure of %%check when building as root (#1085389)
0f16a9
- setfacl.1: document the meaning of '-' in perms (#1337039)
0f16a9
0f16a9
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 2.2.51-12
0f16a9
- Mass rebuild 2014-01-24
0f16a9
0f16a9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2.51-11
0f16a9
- Mass rebuild 2013-12-27
0f16a9
0f16a9
* Fri Nov 01 2013 Kamil Dudka <kdudka@redhat.com> 2.2.51-10
0f16a9
- fix SIGSEGV of getfacl -e on overly long group name (#1025737)
0f16a9
0f16a9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.51-9
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0f16a9
0f16a9
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> 2.2.51-8
0f16a9
- fix specfile issues reported by the fedora-review script
0f16a9
0f16a9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.51-7
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0f16a9
0f16a9
* Wed May 02 2012 Kamil Dudka <kdudka@redhat.com> 2.2.51-6
0f16a9
- do not mention static libraries in the summary of libacl{,-devel} (#817952)
0f16a9
0f16a9
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.2.51-5
0f16a9
- add filesystem guard
0f16a9
0f16a9
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.2.51-4
0f16a9
- install everything in /usr
0f16a9
  https://fedoraproject.org/wiki/Features/UsrMove
0f16a9
0f16a9
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.51-3
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0f16a9
0f16a9
* Fri May 06 2011 Kamil Dudka <kdudka@redhat.com> 2.2.51-2
0f16a9
- update project URL (#699058)
0f16a9
0f16a9
* Thu Apr 21 2011 Kamil Dudka <kdudka@redhat.com> 2.2.51-1
0f16a9
- new upstream release
0f16a9
0f16a9
* Tue Apr 19 2011 Kamil Dudka <kdudka@redhat.com> 2.2.50-1
0f16a9
- new upstream release
0f16a9
0f16a9
* Wed Apr 06 2011 Kamil Dudka <kdudka@redhat.com> 2.2.49-11
0f16a9
- add function acl_extended_file_nofollow() (#692982)
0f16a9
0f16a9
* Tue Mar 29 2011 Kamil Dudka <kdudka@redhat.com> 2.2.49-10
0f16a9
- fix typos in setfacl(1) man page (#675451)
0f16a9
0f16a9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.49-9
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0f16a9
0f16a9
* Thu Jul 08 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-8
0f16a9
- remove dependency of libacl-devel on nfs-utils-lib and openldap
0f16a9
0f16a9
* Tue May 25 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-7
0f16a9
- let acl depend on the same version of libacl (#595674)
0f16a9
0f16a9
* Wed Mar 24 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-6
0f16a9
- prevent setfacl --restore from SIGSEGV on malformed restore file (#576550)
0f16a9
0f16a9
* Wed Mar 10 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-5
0f16a9
- run the test-suite if possible
0f16a9
0f16a9
* Tue Jan 19 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-4
0f16a9
- do not package a static library (#556036)
0f16a9
- remove multilib patch no longer useful
0f16a9
- cleanup in BuildRequires
0f16a9
0f16a9
* Tue Jan 05 2010 Kamil Dudka <kdudka@redhat.com> 2.2.49-3
0f16a9
- upstream patch for setfacl --restore SUID/SGID bits handling (#467936)
0f16a9
0f16a9
* Sat Dec 26 2009 Kamil Dudka <kdudka@redhat.com> 2.2.49-2
0f16a9
- tweaked setfacl tree walk flags (#488674), thanks to Markus Steinborn
0f16a9
0f16a9
* Sun Dec 20 2009 Kamil Dudka <kdudka@redhat.com> 2.2.49-1
0f16a9
- new upstream bugfix release
0f16a9
- big cleanup in patches
0f16a9
0f16a9
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.47-5
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0f16a9
0f16a9
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.47-4
0f16a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0f16a9
0f16a9
* Thu Jul 31 2008 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.47-3
0f16a9
- little improvement to params patch
0f16a9
- Resolves: #457244
0f16a9
0f16a9
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.2.47-2
0f16a9
- rework params patch to apply with fuzz=0
0f16a9
- fix license tag
0f16a9
0f16a9
* Tue Feb 12 2008 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.47-1
0f16a9
- new upstream version
0f16a9
0f16a9
* Mon Jan 28 2008 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.45-3
0f16a9
- Fixed segfault when using only "--" as parameter
0f16a9
- Resolves: #430458
0f16a9
0f16a9
* Wed Nov  7 2007 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.45-2
0f16a9
- Fixed setfacl exitcodes
0f16a9
- Resolves: #368451
0f16a9
0f16a9
* Wed Oct 31 2007 Jiri Moskovcak <jmoskovc@redhat.com> - 2.2.45-1
0f16a9
- New version
0f16a9
- dropped walk patch
0f16a9
0f16a9
* Thu Sep 20 2007 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.39-10
0f16a9
- Rewriten path_max patch to support long UTF8 names
0f16a9
- Resolves #287701, #183181
0f16a9
0f16a9
* Fri Aug 31 2007 Steve Dickson <steved@redhat.com> - 2.2.39-9
0f16a9
- Removed NFS4 ACL patch since it was rejected by upstream.
0f16a9
0f16a9
* Thu Aug 30 2007 Jeremy Katz <katzj@redhat.com> - 2.2.39-8
0f16a9
- disable nfs patch; linking libacl against libs in /usr will lead to breakage
0f16a9
0f16a9
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.2.39-7
0f16a9
- Build Require gawk
0f16a9
0f16a9
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.2.39-6
0f16a9
- Rebuild for selinux ppc32 issue.
0f16a9
0f16a9
* Mon Aug 27 2007 Steve Dickson <steved@redhat.com>  2.2.39-5
0f16a9
- Added NFS v4 ACL support
0f16a9
0f16a9
* Thu Jul 26 2007 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.39-4.1
0f16a9
- Updated man page for getfacl
0f16a9
0f16a9
* Wed Jul 25 2007 Jiri Moskovcak <jmoskovc@redhat.com> 2.2.39-4
0f16a9
- Added support fort short params to getfacl
0f16a9
- Resolves: #204087
0f16a9
0f16a9
* Wed Mar 21 2007 Thomas Woerner <twoerner@redhat.com> 2.2.39-3.1
0f16a9
- new improved walk patch with fixed getfacl exit code (rhbz#232884)
0f16a9
0f16a9
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 2.2.39-3
0f16a9
- fix buildroot
0f16a9
- remove trailing dot from summary
0f16a9
- -devel requires same version of libacl
0f16a9
- escape macro in changelog
0f16a9
- make .so symlink relative
0f16a9
0f16a9
* Thu Feb 22 2007 Steve Grubb <sgrubb@redhat.com> 2.2.39-2
0f16a9
- Apply patch to make order consistent.
0f16a9
0f16a9
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.39-1.1
0f16a9
- rebuild
0f16a9
0f16a9
* Wed Jul  5 2006 Thomas Woerner <twoerner@redhat.com> 2.2.39-1
0f16a9
- new version 2.2.39
0f16a9
- fixed usage of long UTF-8 filenames (#183181)
0f16a9
  Thanks to Andrey for the initial patch.
0f16a9
0f16a9
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 2.2.34-2
0f16a9
- rebuild for -devel deps
0f16a9
0f16a9
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.34-1.2
0f16a9
- bump again for double-long bug on ppc(64)
0f16a9
0f16a9
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.34-1.1
0f16a9
- rebuilt for new gcc4.1 snapshot and glibc changes
0f16a9
0f16a9
* Fri Feb  3 2006 Thomas Woerner <twoerner@redhat.com> 2.2.34-1
0f16a9
- new version 2.2.34
0f16a9
0f16a9
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
0f16a9
- rebuilt
0f16a9
0f16a9
* Tue Dec  6 2005 Thomas Woerner <twoerner@redhat.com> 2.2.32-2.1
0f16a9
- fixed permissions of libacl
0f16a9
0f16a9
* Tue Dec  6 2005 Thomas Woerner <twoerner@redhat.com> 2.2.32-2
0f16a9
- spec file cleanup
0f16a9
- mark po files as lang specific
0f16a9
0f16a9
* Sun Nov 06 2005 Florian La Roche <laroche@redhat.com>
0f16a9
- 2.2.32
0f16a9
0f16a9
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.2.31-1
0f16a9
- update to 2.2.31
0f16a9
0f16a9
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.2.23-9
0f16a9
- get rid of *.la files
0f16a9
- remove duplicate doc files
0f16a9
0f16a9
* Wed Feb  9 2005 Stephen C. Tweedie <sct@redhat.com> 2.2.23-6
0f16a9
- Rebuild
0f16a9
0f16a9
* Thu Sep 16 2004 Jeremy Katz <katzj@redhat.com> - 2.2.23-5
0f16a9
- make the libs executable so that we find their dependencies (#132696)
0f16a9
0f16a9
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.23-4
0f16a9
- libacl-devel Requires: libattr-devel for libattr.la
0f16a9
0f16a9
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.23-3
0f16a9
- Requires libtool >= 1.5 for building
0f16a9
0f16a9
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.2.23-2
0f16a9
- Make libacl.so.* executable.
0f16a9
0f16a9
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.2.23-1
0f16a9
- Update to latest upstream version.
0f16a9
0f16a9
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 2.2.7-7
0f16a9
- Close bug #125300 (Steve Grubb: build requires libtool,gettext)
0f16a9
0f16a9
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
0f16a9
- rebuilt
0f16a9
0f16a9
* Wed Mar 31 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.7-5
0f16a9
- Add missing %%defattr
0f16a9
0f16a9
* Tue Mar 30 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.7-3
0f16a9
- Add /usr/include/acl to files manifest
0f16a9
- Fix location of doc files, add main doc dir to files manifest
0f16a9
0f16a9
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
0f16a9
- rebuilt
0f16a9
0f16a9
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
0f16a9
- rebuilt
0f16a9
0f16a9
* Tue Aug  5 2003 Elliot Lee <sopwith@redhat.com> 2.2.7-2
0f16a9
- Fix libtool invocation
0f16a9
0f16a9
* Tue Jun  3 2003 Stephen C. Tweedie <sct@redhat.com> 2.2.7-1
0f16a9
- Update to acl-2.2.7
0f16a9
0f16a9
* Wed Mar 26 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.3-2
0f16a9
- include patch from Jay Berkenbilt to print better error messages
0f16a9
0f16a9
* Tue Jan 28 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.3-1
0f16a9
- udpate/rebuild
0f16a9
0f16a9
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 2.0.11-7
0f16a9
- set execute bits on library so that requires are generated.
0f16a9
0f16a9
* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.0.11-5
0f16a9
- Correct patch in previous fix so that shared libraries go in /lib* 
0f16a9
  instead of /usr/lib*
0f16a9
0f16a9
* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.0.11-4
0f16a9
- Fix multilibbing
0f16a9
0f16a9
* Wed Sep 11 2002 Than Ngo <than@redhat.com> 2.0.11-3
0f16a9
- Added fix to install libs in correct directory on 64bit machine
0f16a9
0f16a9
* Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-2
0f16a9
- Made the package only own the one directory that is unique to it:
0f16a9
  /usr/include/acl
0f16a9
0f16a9
* Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-1
0f16a9
- Initial Red Hat package
0f16a9
  Made as few changes as possible relative to upstream packaging to
0f16a9
  make it easier to maintain long-term.  This means that some of
0f16a9
  the techniques used here are definitely not standard Red Hat
0f16a9
  techniques.  If you are looking for an example package to fit
0f16a9
  into Red Hat Linux transparently, this would not be the one to
0f16a9
  pick.
0f16a9
- acl-devel -> libacl-devel