Blame SPECS/attr.spec

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