Blame SPECS/acl.spec

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