Summary: Utilities for managing filesystem extended attributes Name: attr Version: 2.4.46 Release: 13%{?dist} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source: http://download.savannah.gnu.org/releases-noredirect/attr/attr-%{version}.src.tar.gz # make it ready for rpmbuild Patch1: attr-2.4.32-build.patch # prepare the test-suite for SELinux Patch3: attr-2.4.44-tests.patch # silence compile-time warnings Patch4: attr-2.4.44-warnings.patch # getfattr: return non-zero exit code on failure (#660619) Patch7: attr-2.4.44-bz660619.patch # walk_tree: do not follow symlink to directory with -h (#660613) Patch8: attr-2.4.44-bz660613.patch # fix typos in attr(1) man page (#669095) Patch9: attr-2.4.44-bz669095.patch # use to fix build on aarch64 (#957989) Patch10: attr-2.4.44-bz957989.patch # remove unreliable tests from the test suite (#1367730) Patch11: attr-2.4.44-tests-ls.patch License: GPLv2+ URL: http://acl.bestbits.at/ Group: System Environment/Base BuildRequires: gettext BuildRequires: libtool Requires: libattr = %{version}-%{release} %description A set of tools for manipulating extended attributes on filesystem objects, in particular getfattr(1) and setfattr(1). An attr(1) command is also provided which is largely compatible with the SGI IRIX tool of the same name. %package -n libattr Summary: Dynamic library for extended attribute support Group: System Environment/Libraries License: LGPLv2+ Conflicts: filesystem < 3 %description -n libattr This package contains the libattr.so dynamic library which contains the extended attribute system calls and library functions. %package -n libattr-devel Summary: Files needed for building programs with libattr Group: Development/Libraries License: LGPLv2+ Requires: libattr = %{version}-%{release} %description -n libattr-devel This package contains header files and documentation needed to develop programs which make use of extended attributes. For Linux programs, the documented system call API is the recommended interface, but an SGI IRIX compatibility interface is also provided. Currently only ext2, ext3 and XFS support extended attributes. The SGI IRIX compatibility API built above the Linux system calls is used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). You should install libattr-devel if you want to develop programs which make use of extended attributes. If you install libattr-devel, you'll also want to install attr. %prep %setup -q %patch1 -p1 %patch3 -p1 %patch4 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %build # attr <= 2.4.46 abuses libexecdir (fixed upstream in 2971df45) %configure --libexecdir=%{_libdir} # uncomment to turn off optimizations # sed -i 's/-O2/-O0/' libtool include/builddefs # unset CFLAGS make %{?_smp_mflags} LIBTOOL="libtool --tag=CC" %check if ./setfattr/setfattr -n user.name -v value .; then make tests || exit $? # FIXME: root-tests are not ready for the SELinux #if test 0 = `id -u`; then # make root-tests || exit $? #fi else echo '*** xattrs are probably not supported by the file system,' \ 'the test-suite will NOT run ***' fi %install make install DESTDIR=$RPM_BUILD_ROOT make install-dev DESTDIR=$RPM_BUILD_ROOT make install-lib DESTDIR=$RPM_BUILD_ROOT # get rid of libattr.a and libattr.la rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.a rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.la rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.a rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.la chmod 0755 $RPM_BUILD_ROOT/%{_libdir}/libattr.so.*.*.* %find_lang %{name} %post -n libattr -p /sbin/ldconfig %postun -n libattr -p /sbin/ldconfig %files -f %{name}.lang %doc doc %{_bindir}/attr %{_bindir}/getfattr %{_bindir}/setfattr %{_mandir}/man1/attr.1* %{_mandir}/man1/getfattr.1* %{_mandir}/man1/setfattr.1* %{_mandir}/man5/attr.5* %files -n libattr-devel %{_libdir}/libattr.so %{_includedir}/attr %{_mandir}/man2/*attr.2* %{_mandir}/man3/attr_*.3.* %files -n libattr %{_libdir}/libattr.so.* %changelog * Thu Sep 21 2017 Kamil Dudka 2.4.46-13 - remove unreliable tests from the test suite (#1367730) * Fri Jan 24 2014 Daniel Mach - 2.4.46-12 - Mass rebuild 2014-01-24 * Fri Dec 27 2013 Daniel Mach - 2.4.46-11 - Mass rebuild 2013-12-27 * Fri May 03 2013 Kamil Dudka 2.4.46-10 - use to fix build on aarch64 (#957989) * Wed Feb 13 2013 Fedora Release Engineering - 2.4.46-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Aug 28 2012 Kamil Dudka 2.4.46-8 - fix specfile issues reported by the fedora-review script * Wed Jul 18 2012 Fedora Release Engineering - 2.4.46-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed May 02 2012 Kamil Dudka 2.4.46-6 - do not mention static libraries in the summary of libattr-devel (#817953) * Wed Jan 25 2012 Harald Hoyer 2.4.46-5 - add filesystem guard * Wed Jan 25 2012 Harald Hoyer 2.4.46-4 - install everything in /usr https://fedoraproject.org/wiki/Features/UsrMove * Thu Jan 12 2012 Fedora Release Engineering - 2.4.46-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri May 06 2011 Kamil Dudka 2.4.46-2 - update project URL (#702636) * Thu Apr 21 2011 Kamil Dudka 2.4.46-1 - new upstream release * Tue Apr 19 2011 Kamil Dudka 2.4.45-1 - new upstream release * Tue Mar 29 2011 Kamil Dudka 2.2.44-8 - fix typos in attr(1) man page (#669095) * Mon Feb 07 2011 Fedora Release Engineering - 2.4.44-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Kamil Dudka 2.2.44-6 - setfattr.1: document supported encodings of values (#587516) - getfattr: encode NULs properly with --encoding=text (#650539) - getfattr: return non-zero exit code on failure (#660619) - walk_tree: do not follow symlink to directory with -h (#660613) * Tue May 25 2010 Kamil Dudka 2.2.44-5 - let attr depend on the same version of libattr (#595689) - silence compile-time warnings * Wed Mar 10 2010 Kamil Dudka 2.2.44-4 - run the test-suite if possible * Tue Jan 19 2010 Kamil Dudka 2.2.44-3 - do not package a static library (#556038) - remove multilib patch no longer useful - enable parallel make * Thu Jan 07 2010 Kamil Dudka 2.4.44-2 - cleanup in BuildRequires - updated source URL - re-downloaded source tarball from upstream (size changed by one) * Wed Nov 25 2009 Kamil Dudka 2.4.44-1 - new upstream release * Fri Jul 24 2009 Fedora Release Engineering - 2.4.43-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 2.4.43-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 18 2009 Zdenek Prikryl 2.4.43-2 - Fixed memory leaks (#485473) * Wed Jul 16 2008 Zdenek Prikryl 2.4.43-1 - New version 2.4.43 * Mon Jul 14 2008 Tom "spot" Callaway 2.4.41-2 - fix license tags * Tue Feb 13 2008 Zdenek Prikryl 2.4.41-1 - New version 2.4.41 - Removed useless attr-2.0.8-docperms.patch * Wed Oct 31 2007 Zdenek Prikryl 2.4.39-1 - New version 2.4.39 - Resolves #284121 * Tue Oct 30 2007 Zdenek Prikryl 2.4.38-2 - Removed explicit Requires(post + postun) - Resolves #225290 * Tue Jul 31 2007 Zdenek Prikryl 2.4.38-1 - New version 2.4.38 - Resolves #245415 * Fri Feb 23 2007 Karsten Hopp 2.4.32-2 - add disttag - remove trailing dot from summary - fix buildroot - -devel package requires same libattr version - change prereq to Requires(post) - escape macro in changelog - replace absolute link with relative link (libattr.so) - use %%doc macro * Wed Jul 12 2006 Jesse Keating - 2.4.32-1.1 - rebuild * Wed Jul 5 2006 Thomas Woerner 2.4.32-1 - new version 2.4.32 - fixes segmentation fault in attr, which affects #189106 * Wed Jun 7 2006 Jeremy Katz - 2.4.28-2 - rebuild for -devel deps * Fri Feb 10 2006 Jesse Keating - 2.4.28-1.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.4.28-1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Feb 3 2006 Thomas Woerner 2.4.28-1 - new version 2.4.28 * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Dec 6 2005 Thomas Woerner 2.4.24-2 - spec file cleanup - mark po files as lang specific * Sun Nov 06 2005 Florian La Roche - 2.4.24 * Wed Sep 28 2005 Than Ngo 2.4.23-1 - update to 2.4.23 * Wed Sep 28 2005 Than Ngo 2.4.16-6 - get rid of *.la files - remove duplicate doc files * Wed Feb 9 2005 Stephen C. Tweedie 2.4.16-4 - Rebuild * Fri Sep 10 2004 Stephen C. Tweedie 2.4.16-3 - Build requires libtool >= 1.5 * Thu Aug 19 2004 Phil Knirsch 2.4.16-2 - Make libattr.so.* executable. * Thu Aug 19 2004 Phil Knirsch 2.4.16-1 - Update to latest upstream version. * Sun Aug 8 2004 Alan Cox 2.4.1-6 - Fix bug #125304 (Steve Grubb: build requires gettext) * Tue Jun 15 2004 Elliot Lee - rebuilt * Wed Mar 31 2004 Stephen C. Tweedie 2.4.1-4 - Add missing %%defattr * Tue Mar 30 2004 Stephen C. Tweedie 2.4.1-3 - Add /usr/include/attr to files manifest - Fix location of doc files, add main doc dir to files manifest * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Tue Aug 5 2003 Elliot Lee 2.4.1-2 - Fix libtool * Tue Jun 3 2003 Stephen C. Tweedie 2.4.1-1 - update to attr-2.4.1 * Tue Jan 28 2003 Michael K. Johnson 2.2.0-1 - update/rebuild * Sat Jan 4 2003 Jeff Johnson 2.0.8-6 - set execute bits on library so that requires are generated. * Thu Nov 21 2002 Elliot Lee 2.0.8-5 - Redo multilib patch to work everywhere * Wed Sep 11 2002 Than Ngo 2.0.8-4 - Added fix to install libs in correct directory on 64bit machine * Thu Aug 08 2002 Michael K. Johnson 2.0.8-3 - Made the package only own the one directory that is unique to it: /usr/include/attr * Wed Jun 26 2002 Michael K. Johnson 2.0.8-2 - get perl out of base with attr-2.0.8-docperms.patch * Mon Jun 24 2002 Michael K. Johnson 2.0.8-1 - Initial Red Hat package Made as few changes as possible relative to upstream packaging to make it easier to maintain long-term. This means that some of the techniques used here are definitely not standard Red Hat techniques. If you are looking for an example package to fit into Red Hat Linux transparently, this would not be the one to pick. - attr-devel -> libattr-devel