csomh / rpms / acl

Forked from rpms/acl 3 years ago
Clone

Blame SPECS/acl.spec

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