Blame SPECS/attr.spec

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