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