Blame SPECS/attr.spec

5bb7f2
Summary: Utilities for managing filesystem extended attributes
5bb7f2
Name: attr
5bb7f2
Version: 2.4.48
5bb7f2
Release: 3%{?dist}
5bb7f2
Source: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz
5bb7f2
5bb7f2
# fix test-suite failure with perl-5.26.0 (#1473853)
5bb7f2
Patch1:  0001-attr-2.4.48-test-suite-perl.patch
5bb7f2
5bb7f2
License: GPLv2+
5bb7f2
URL: https://savannah.nongnu.org/projects/attr
5bb7f2
BuildRequires: gettext
5bb7f2
BuildRequires: libtool
5bb7f2
Requires: libattr = %{version}-%{release}
5bb7f2
5bb7f2
%description
5bb7f2
A set of tools for manipulating extended attributes on filesystem
5bb7f2
objects, in particular getfattr(1) and setfattr(1).
5bb7f2
An attr(1) command is also provided which is largely compatible
5bb7f2
with the SGI IRIX tool of the same name.
5bb7f2
5bb7f2
%package -n libattr
5bb7f2
Summary: Dynamic library for extended attribute support
5bb7f2
License: LGPLv2+
5bb7f2
Conflicts: filesystem < 3
5bb7f2
5bb7f2
%description -n libattr
5bb7f2
This package contains the libattr.so dynamic library which contains
5bb7f2
the extended attribute system calls and library functions.
5bb7f2
5bb7f2
%package -n libattr-devel
5bb7f2
Summary: Files needed for building programs with libattr
5bb7f2
License: LGPLv2+
5bb7f2
Requires: libattr = %{version}-%{release}
5bb7f2
5bb7f2
# for <sys/xattr.h> which <attr/xattr.h> is symlinked to
5bb7f2
Requires: glibc-headers
5bb7f2
5bb7f2
# provides {,f,l}{get,list,remove,set}xattr.2 man pages
5bb7f2
Recommends: man-pages
5bb7f2
5bb7f2
%description -n libattr-devel
5bb7f2
This package contains header files and documentation needed to
5bb7f2
develop programs which make use of extended attributes.
5bb7f2
For Linux programs, the documented system call API is the
5bb7f2
recommended interface, but an SGI IRIX compatibility interface
5bb7f2
is also provided.
5bb7f2
5bb7f2
Currently only ext2, ext3 and XFS support extended attributes.
5bb7f2
The SGI IRIX compatibility API built above the Linux system calls is
5bb7f2
used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
5bb7f2
5bb7f2
You should install libattr-devel if you want to develop programs
5bb7f2
which make use of extended attributes.  If you install libattr-devel,
5bb7f2
you'll also want to install attr.
5bb7f2
5bb7f2
%prep
5bb7f2
%autosetup -p1
5bb7f2
5bb7f2
# FIXME: root tests are not ready for SELinux
5bb7f2
sed -e 's|test/root/getfattr.test||' \
5bb7f2
    -i test/Makemodule.am Makefile.in
5bb7f2
5bb7f2
%build
5bb7f2
%configure
5bb7f2
5bb7f2
make %{?_smp_mflags}
5bb7f2
5bb7f2
%check
5bb7f2
if ./setfattr -n user.name -v value .; then
5bb7f2
    make check || exit $?
5bb7f2
else
5bb7f2
    echo '*** xattrs are probably not supported by the file system,' \
5bb7f2
         'the test-suite will NOT run ***'
5bb7f2
fi
5bb7f2
5bb7f2
%install
5bb7f2
%make_install
5bb7f2
5bb7f2
# get rid of libattr.a and libattr.la
5bb7f2
rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{l,}a
5bb7f2
5bb7f2
# drop already installed documentation, we will use an RPM macro to install it
5bb7f2
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
5bb7f2
5bb7f2
# temporarily provide attr/xattr.h symlink until users are migrated (#1601482)
5bb7f2
ln -fs ../sys/xattr.h $RPM_BUILD_ROOT%{_includedir}/attr/xattr.h
5bb7f2
5bb7f2
%find_lang %{name}
5bb7f2
5bb7f2
%ldconfig_scriptlets -n libattr
5bb7f2
5bb7f2
%files -f %{name}.lang
5bb7f2
%doc doc/CHANGES
5bb7f2
%{!?_licensedir:%global license %%doc}
5bb7f2
%license doc/COPYING*
5bb7f2
%{_bindir}/attr
5bb7f2
%{_bindir}/getfattr
5bb7f2
%{_bindir}/setfattr
5bb7f2
%{_mandir}/man1/attr.1*
5bb7f2
%{_mandir}/man1/getfattr.1*
5bb7f2
%{_mandir}/man1/setfattr.1*
5bb7f2
5bb7f2
%files -n libattr-devel
5bb7f2
%{_libdir}/libattr.so
5bb7f2
%{_libdir}/pkgconfig/*.pc
5bb7f2
%{_includedir}/attr
5bb7f2
%{_mandir}/man3/attr_*.3.*
5bb7f2
5bb7f2
%files -n libattr
5bb7f2
%{_libdir}/libattr.so.*
5bb7f2
%config(noreplace) %{_sysconfdir}/xattr.conf
5bb7f2
5bb7f2
%changelog
5bb7f2
* Tue Jul 17 2018 Kamil Dudka <kdudka@redhat.com> 2.4.48-3
5bb7f2
- temporarily provide attr/xattr.h symlink until users are migrated (#1601482)
5bb7f2
5bb7f2
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.48-2
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5bb7f2
5bb7f2
* Tue Jul 03 2018 Kamil Dudka <kdudka@redhat.com> 2.4.48-1
5bb7f2
- new upstream release
5bb7f2
5bb7f2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-23
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5bb7f2
5bb7f2
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4.47-22
5bb7f2
- Switch to %%ldconfig_scriptlets
5bb7f2
5bb7f2
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-21
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5bb7f2
5bb7f2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-20
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5bb7f2
5bb7f2
* Mon Jul 24 2017 Kamil Dudka <kdudka@redhat.com> 2.4.47-19
5bb7f2
- fix test-suite failure with perl-5.26.0 (#1473853)
5bb7f2
- apply patches automatically to ease maintenance
5bb7f2
- update URL of the upstream source tarball
5bb7f2
5bb7f2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-18
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5bb7f2
5bb7f2
* Fri Feb 03 2017 Kamil Dudka <kdudka@redhat.com> 2.4.47-17
5bb7f2
- update project URL (#1418475)
5bb7f2
5bb7f2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-16
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5bb7f2
5bb7f2
* Thu Jan 07 2016 Kamil Dudka <kdudka@redhat.com> 2.4.47-15
5bb7f2
- remove outdated tests from test/attr.test
5bb7f2
5bb7f2
* Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 2.4.47-14
5bb7f2
- make libattr-devel not insist on man-pages being installed (#1262605)
5bb7f2
5bb7f2
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 2.4.47-13
5bb7f2
- Remove bizarre 12 year old libtool invocation workaround that prevented
5bb7f2
  hardened cflags being applied
5bb7f2
5bb7f2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.47-12
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5bb7f2
5bb7f2
* Mon May 11 2015 Kamil Dudka <kdudka@redhat.com> 2.4.47-11
5bb7f2
- do not install the attr.5 man page (#1219987)
5bb7f2
5bb7f2
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.4.47-10
5bb7f2
- Rebuilt for Fedora 23 Change
5bb7f2
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
5bb7f2
5bb7f2
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.47-9
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5bb7f2
5bb7f2
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 2.4.47-8
5bb7f2
- mark license files properly
5bb7f2
5bb7f2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.47-7
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5bb7f2
5bb7f2
* Mon Mar 31 2014 Kamil Dudka <kdudka@redhat.com> 2.4.47-6
5bb7f2
- do not install {,f,l}{get,list,remove,set}xattr.2 man pages
5bb7f2
5bb7f2
* Tue Jan 21 2014 Kamil Dudka <kdudka@redhat.com> 2.4.47-5
5bb7f2
- refer to ENODATA instead of ENOATTR in man pages (#1055933)
5bb7f2
5bb7f2
* Tue Nov 19 2013 Kamil Dudka <kdudka@redhat.com> 2.4.47-4
5bb7f2
- provide /etc/xattr.conf to exclude copying certain extended attrs (#1031423)
5bb7f2
5bb7f2
* Fri Aug 09 2013 Kamil Dudka <kdudka@redhat.com> 2.4.47-3
5bb7f2
- drop a docdir-related patch to fix a packaging failure (#991997)
5bb7f2
5bb7f2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.47-2
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5bb7f2
5bb7f2
* Mon May 20 2013 Kamil Dudka <kdudka@redhat.com> 2.4.47-1
5bb7f2
- new upstream release, drop applied patches
5bb7f2
- drop workarounds that are no longer necessary
5bb7f2
5bb7f2
* Fri May 03 2013 Kamil Dudka <kdudka@redhat.com> 2.4.46-10
5bb7f2
- use <sys/syscalls.h> to fix build on aarch64 (#957989)
5bb7f2
5bb7f2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.46-9
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5bb7f2
5bb7f2
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> 2.4.46-8
5bb7f2
- fix specfile issues reported by the fedora-review script
5bb7f2
5bb7f2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.46-7
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5bb7f2
5bb7f2
* Wed May 02 2012 Kamil Dudka <kdudka@redhat.com> 2.4.46-6
5bb7f2
- do not mention static libraries in the summary of libattr-devel (#817953)
5bb7f2
5bb7f2
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.4.46-5
5bb7f2
- add filesystem guard
5bb7f2
5bb7f2
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2.4.46-4
5bb7f2
- install everything in /usr
5bb7f2
  https://fedoraproject.org/wiki/Features/UsrMove
5bb7f2
5bb7f2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.46-3
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5bb7f2
5bb7f2
* Fri May 06 2011 Kamil Dudka <kdudka@redhat.com> 2.4.46-2
5bb7f2
- update project URL (#702636)
5bb7f2
5bb7f2
* Thu Apr 21 2011 Kamil Dudka <kdudka@redhat.com> 2.4.46-1
5bb7f2
- new upstream release
5bb7f2
5bb7f2
* Tue Apr 19 2011 Kamil Dudka <kdudka@redhat.com> 2.4.45-1
5bb7f2
- new upstream release
5bb7f2
5bb7f2
* Tue Mar 29 2011 Kamil Dudka <kdudka@redhat.com> 2.2.44-8
5bb7f2
- fix typos in attr(1) man page (#669095)
5bb7f2
5bb7f2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.44-7
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5bb7f2
5bb7f2
* Wed Dec 22 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-6
5bb7f2
- setfattr.1: document supported encodings of values (#587516)
5bb7f2
- getfattr: encode NULs properly with --encoding=text (#650539)
5bb7f2
- getfattr: return non-zero exit code on failure (#660619)
5bb7f2
- walk_tree: do not follow symlink to directory with -h (#660613)
5bb7f2
5bb7f2
* Tue May 25 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-5
5bb7f2
- let attr depend on the same version of libattr (#595689)
5bb7f2
- silence compile-time warnings
5bb7f2
5bb7f2
* Wed Mar 10 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-4
5bb7f2
- run the test-suite if possible
5bb7f2
5bb7f2
* Tue Jan 19 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-3
5bb7f2
- do not package a static library (#556038)
5bb7f2
- remove multilib patch no longer useful
5bb7f2
- enable parallel make
5bb7f2
5bb7f2
* Thu Jan 07 2010 Kamil Dudka <kdudka@redhat.com> 2.4.44-2
5bb7f2
- cleanup in BuildRequires
5bb7f2
- updated source URL
5bb7f2
- re-downloaded source tarball from upstream (size changed by one)
5bb7f2
5bb7f2
* Wed Nov 25 2009 Kamil Dudka <kdudka@redhat.com> 2.4.44-1
5bb7f2
- new upstream release
5bb7f2
5bb7f2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.43-4
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5bb7f2
5bb7f2
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.43-3
5bb7f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5bb7f2
5bb7f2
* Wed Feb 18 2009 Zdenek Prikryl <zprikryl@redhat.com> 2.4.43-2
5bb7f2
- Fixed memory leaks (#485473)
5bb7f2
5bb7f2
* Wed Jul 16 2008 Zdenek Prikryl <zprikryl@redhat.com> 2.4.43-1
5bb7f2
- New version 2.4.43
5bb7f2
5bb7f2
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.4.41-2
5bb7f2
- fix license tags
5bb7f2
5bb7f2
* Wed Feb 13 2008 Zdenek Prikryl <zprikryl@redhat.com> 2.4.41-1
5bb7f2
- New version 2.4.41
5bb7f2
- Removed useless attr-2.0.8-docperms.patch
5bb7f2
5bb7f2
* Wed Oct 31 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.39-1
5bb7f2
- New version 2.4.39
5bb7f2
- Resolves #284121
5bb7f2
5bb7f2
* Tue Oct 30 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.38-2
5bb7f2
- Removed explicit Requires(post + postun)
5bb7f2
- Resolves #225290
5bb7f2
5bb7f2
* Tue Jul 31 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.38-1
5bb7f2
- New version 2.4.38
5bb7f2
- Resolves #245415
5bb7f2
5bb7f2
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 2.4.32-2
5bb7f2
- add disttag
5bb7f2
- remove trailing dot from summary
5bb7f2
- fix buildroot
5bb7f2
- -devel package requires same libattr version
5bb7f2
- change prereq to Requires(post)
5bb7f2
- escape macro in changelog
5bb7f2
- replace absolute link with relative link (libattr.so)
5bb7f2
- use %%doc macro
5bb7f2
5bb7f2
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.4.32-1.1
5bb7f2
- rebuild
5bb7f2
5bb7f2
* Wed Jul  5 2006 Thomas Woerner <twoerne@redhat.com> 2.4.32-1
5bb7f2
- new version 2.4.32
5bb7f2
- fixes segmentation fault in attr, which affects #189106
5bb7f2
5bb7f2
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 2.4.28-2
5bb7f2
- rebuild for -devel deps
5bb7f2
5bb7f2
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.2
5bb7f2
- bump again for double-long bug on ppc(64)
5bb7f2
5bb7f2
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.1
5bb7f2
- rebuilt for new gcc4.1 snapshot and glibc changes
5bb7f2
5bb7f2
* Fri Feb  3 2006 Thomas Woerner <twoerner@redhat.com> 2.4.28-1
5bb7f2
- new version 2.4.28
5bb7f2
5bb7f2
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5bb7f2
- rebuilt
5bb7f2
5bb7f2
* Tue Dec  6 2005 Thomas Woerner <twoerner@redhat.com> 2.4.24-2
5bb7f2
- spec file cleanup
5bb7f2
- mark po files as lang specific
5bb7f2
5bb7f2
* Sun Nov 06 2005 Florian La Roche <laroche@redhat.com>
5bb7f2
- 2.4.24
5bb7f2
5bb7f2
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.23-1
5bb7f2
- update to 2.4.23
5bb7f2
5bb7f2
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.16-6
5bb7f2
- get rid of *.la files
5bb7f2
- remove duplicate doc files
5bb7f2
5bb7f2
* Wed Feb  9 2005 Stephen C. Tweedie <sct@redhat.com> 2.4.16-4
5bb7f2
- Rebuild
5bb7f2
5bb7f2
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.16-3
5bb7f2
- Build requires libtool >= 1.5
5bb7f2
5bb7f2
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-2
5bb7f2
- Make libattr.so.* executable.
5bb7f2
5bb7f2
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-1
5bb7f2
- Update to latest upstream version.
5bb7f2
5bb7f2
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 2.4.1-6
5bb7f2
- Fix bug #125304 (Steve Grubb: build requires gettext)
5bb7f2
5bb7f2
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
5bb7f2
- rebuilt
5bb7f2
5bb7f2
* Wed Mar 31 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-4
5bb7f2
- Add missing %%defattr
5bb7f2
5bb7f2
* Tue Mar 30 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-3
5bb7f2
- Add /usr/include/attr to files manifest
5bb7f2
- Fix location of doc files, add main doc dir to files manifest
5bb7f2
5bb7f2
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
5bb7f2
- rebuilt
5bb7f2
5bb7f2
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
5bb7f2
- rebuilt
5bb7f2
5bb7f2
* Tue Aug  5 2003 Elliot Lee <sopwith@redhat.com> 2.4.1-2
5bb7f2
- Fix libtool
5bb7f2
5bb7f2
* Tue Jun  3 2003 Stephen C. Tweedie <sct@redhat.com> 2.4.1-1
5bb7f2
- update to attr-2.4.1
5bb7f2
5bb7f2
* Tue Jan 28 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.0-1
5bb7f2
- update/rebuild
5bb7f2
5bb7f2
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 2.0.8-6
5bb7f2
- set execute bits on library so that requires are generated.
5bb7f2
5bb7f2
* Thu Nov 21 2002 Elliot Lee <sopwith@redhat.com> 2.0.8-5
5bb7f2
- Redo multilib patch to work everywhere
5bb7f2
5bb7f2
* Wed Sep 11 2002 Than Ngo <than@redhat.com> 2.0.8-4
5bb7f2
- Added fix to install libs in correct directory on 64bit machine 
5bb7f2
5bb7f2
* Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-3
5bb7f2
- Made the package only own the one directory that is unique to it:
5bb7f2
  /usr/include/attr
5bb7f2
5bb7f2
* Wed Jun 26 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-2
5bb7f2
- get perl out of base with attr-2.0.8-docperms.patch
5bb7f2
5bb7f2
* Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-1
5bb7f2
- Initial Red Hat package
5bb7f2
  Made as few changes as possible relative to upstream packaging to
5bb7f2
  make it easier to maintain long-term.  This means that some of
5bb7f2
  the techniques used here are definitely not standard Red Hat
5bb7f2
  techniques.  If you are looking for an example package to fit
5bb7f2
  into Red Hat Linux transparently, this would not be the one to
5bb7f2
  pick.
5bb7f2
- attr-devel -> libattr-devel