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