cvsdist e75a73
Summary: Utilities for managing filesystem extended attributes.
cvsdist e75a73
Name: attr
Thomas Woerner e4f950
Version: 2.4.28
Jeremy Katz d9ddf7
Release: 2
cvsdist e75a73
Prereq: /sbin/ldconfig
cvsdist e75a73
Conflicts: xfsdump < 2.0.0
cvsdist e75a73
BuildRoot: %{_tmppath}/%{name}-root
Thomas Woerner e4f950
Source: ftp://oss.sgi.com/projects/xfs/cmd_tars/attr-%{version}.src.tar.gz
cvsdist e75a73
Patch1: attr-2.0.8-docperms.patch
cvsdist 170863
Patch2: attr-2.2.0-multilib.patch
Thomas Woerner cc15b4
Patch3: attr-2.4.24-build.patch
cvsdist e75a73
License: GPL
Thomas Woerner e4f950
URL: http://oss.sgi.com/projects/xfs/
cvsdist e75a73
Group: System Environment/Base
Stephen Tweedie 13fa03
BuildRequires: autoconf, libtool >= 1.5, gettext
cvsdist e75a73
cvsdist e75a73
%description
cvsdist e75a73
A set of tools for manipulating extended attributes on filesystem
cvsdist e75a73
objects, in particular getfattr(1) and setfattr(1).
cvsdist e75a73
An attr(1) command is also provided which is largely compatible
cvsdist e75a73
with the SGI IRIX tool of the same name.
cvsdist e75a73
cvsdist e75a73
%package -n libattr
cvsdist e75a73
Summary: Dynamic library for extended attribute support.
cvsdist e75a73
Group: System Environment/Libraries
cvsdist e75a73
License: LGPL
cvsdist e75a73
Prereq: /sbin/ldconfig
cvsdist e75a73
cvsdist e75a73
%description -n libattr
cvsdist e75a73
This package contains the libattr.so dynamic library which contains
cvsdist e75a73
the extended attribute system calls and library functions.
cvsdist e75a73
cvsdist e75a73
%package -n libattr-devel
cvsdist e75a73
Summary: Extended attribute static libraries and headers.
cvsdist e75a73
Group: Development/Libraries
cvsdist e75a73
License: LGPL
cvsdist e75a73
Requires: libattr
cvsdist e75a73
cvsdist e75a73
%description -n libattr-devel
cvsdist e75a73
This package contains the libraries and header files needed to
cvsdist e75a73
develop programs which make use of extended attributes.
cvsdist e75a73
For Linux programs, the documented system call API is the
cvsdist e75a73
recommended interface, but an SGI IRIX compatibility interface
cvsdist e75a73
is also provided.
cvsdist e75a73
cvsdist e75a73
Currently only ext2, ext3 and XFS support extended attributes.
cvsdist e75a73
The SGI IRIX compatibility API built above the Linux system calls is
cvsdist e75a73
used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
cvsdist e75a73
cvsdist e75a73
You should install libattr-devel if you want to develop programs
cvsdist e75a73
which make use of extended attributes.  If you install libattr-devel,
cvsdist e75a73
you'll also want to install attr.
cvsdist e75a73
cvsdist e75a73
%prep
cvsdist 170863
%setup -q
cvsdist e75a73
# We need to turn off executable permissions on the script in %doc
cvsdist e75a73
# because we don't want to drag perl into the base.  Users advanced
cvsdist e75a73
# enough to have used ACLs before they were added to the distro can
cvsdist e75a73
# figure out how to chmod and how to install perl.  :-)
cvsdist e75a73
%patch1 -p1 -b .perms
cvsdist 170863
%patch2 -p1 -b .multilib
Thomas Woerner cc15b4
%patch3 -p1 -b .build
cvsdist 43d9af
cvsdist 170863
autoconf
cvsdist e75a73
cvsdist e75a73
%build
cvsdist 170863
# attr abuses libexecdir
cvsdist 170863
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
cvsdist 43d9af
make LIBTOOL="libtool --tag=CC"
cvsdist e75a73
cvsdist e75a73
%install
cvsdist 170863
rm -rf $RPM_BUILD_ROOT
Thomas Woerner cc15b4
make install DESTDIR=$RPM_BUILD_ROOT
Thomas Woerner cc15b4
make install-dev DESTDIR=$RPM_BUILD_ROOT
Thomas Woerner cc15b4
make install-lib DESTDIR=$RPM_BUILD_ROOT
cvsdist 170863
Thomas Woerner cc15b4
# get rid of libattr.la
Thomas Woerner cc15b4
rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.la
Thomas Woerner cc15b4
Thomas Woerner cc15b4
# fix links to shared libs and permissions
Thomas Woerner cc15b4
rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.so
Thomas Woerner cc15b4
ln -s /%{_lib}/libattr.so $RPM_BUILD_ROOT/%{_libdir}/libattr.so
Thomas Woerner cc15b4
chmod 0755 $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*
Thomas Woerner cc15b4
Thomas Woerner cc15b4
%find_lang %{name}
cvsdist e75a73
cvsdist e75a73
%clean
cvsdist 170863
rm -rf $RPM_BUILD_ROOT
cvsdist e75a73
cvsdist e75a73
%post -n libattr -p /sbin/ldconfig
cvsdist e75a73
cvsdist e75a73
%postun -n libattr -p /sbin/ldconfig
cvsdist e75a73
Thomas Woerner cc15b4
%files -f %{name}.lang
cvsdist 74e01f
%defattr(-,root,root)
Thomas Woerner cc15b4
%{_bindir}/attr
Thomas Woerner cc15b4
%{_bindir}/getfattr
Thomas Woerner cc15b4
%{_bindir}/setfattr
Thomas Woerner cc15b4
%{_datadir}/doc/attr-%{version}
Thomas Woerner cc15b4
%{_mandir}/man1/attr.1*
Thomas Woerner cc15b4
%{_mandir}/man1/getfattr.1*
Thomas Woerner cc15b4
%{_mandir}/man1/setfattr.1*
Thomas Woerner cc15b4
%{_mandir}/man5/attr.5*
Thomas Woerner cc15b4
Thomas Woerner cc15b4
%files -n libattr-devel
cvsdist 74e01f
%defattr(-,root,root)
Thomas Woerner cc15b4
/%{_lib}/libattr.so
Thomas Woerner cc15b4
%{_includedir}/attr
Thomas Woerner cc15b4
%{_libdir}/libattr.*
Thomas Woerner cc15b4
%{_mandir}/man2/*attr.2*
Thomas Woerner cc15b4
%{_mandir}/man3/attr_*.3.*
cvsdist e75a73
Thomas Woerner cc15b4
%files -n libattr
Thomas Woerner cc15b4
/%{_lib}/libattr.so.*
cvsdist e75a73
cvsdist e75a73
%changelog
Jeremy Katz d9ddf7
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 2.4.28-2
Jeremy Katz d9ddf7
- rebuild for -devel deps
Jeremy Katz d9ddf7
Jesse Keating fa6653
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.2
Jesse Keating fa6653
- bump again for double-long bug on ppc(64)
Jesse Keating fa6653
Jesse Keating b7e271
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.1
Jesse Keating b7e271
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating b7e271
Thomas Woerner e4f950
* Fri Feb  3 2006 Thomas Woerner <twoerner@redhat.com> 2.4.28-1
Thomas Woerner e4f950
- new version 2.4.28
Thomas Woerner e4f950
Jesse Keating b57b64
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating b57b64
- rebuilt
Jesse Keating b57b64
Thomas Woerner cc15b4
* Tue Dec  6 2005 Thomas Woerner <twoerner@redhat.com> 2.4.24-2
Thomas Woerner cc15b4
- spec file cleanup
Thomas Woerner cc15b4
- mark po files as lang specific
Thomas Woerner cc15b4
Florian La Roche d5ba32
* Sun Nov 06 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche d5ba32
- 2.4.24
Florian La Roche d5ba32
Than Ngo 7e846c
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.23-1
Than Ngo 7e846c
- update to 2.4.23
Than Ngo 7e846c
Than Ngo 9f635f
* Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.16-6
Than Ngo 9f635f
- get rid of *.la files
Than Ngo 9f635f
- remove duplicate doc files
Than Ngo 9f635f
Stephen Tweedie b82256
* Wed Feb  9 2005 Stephen C. Tweedie <sct@redhat.com> 2.4.16-4
Stephen Tweedie b82256
- Rebuild
Stephen Tweedie b82256
Stephen Tweedie 13fa03
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.16-3
Stephen Tweedie 13fa03
- Build requires libtool >= 1.5
Stephen Tweedie 13fa03
cvsdist 0304aa
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-2
cvsdist 0304aa
- Make libattr.so.* executable.
cvsdist 0304aa
cvsdist 0304aa
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-1
cvsdist 0304aa
- Update to latest upstream version.
cvsdist 0304aa
cvsdist 12c255
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 2.4.1-6
cvsdist 12c255
- Fix bug #125304 (Steve Grubb: build requires gettext)
cvsdist 12c255
cvsdist 382740
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 382740
- rebuilt
cvsdist 382740
cvsdist 74e01f
* Wed Mar 31 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-4
cvsdist 74e01f
- Add missing %defattr
cvsdist 74e01f
cvsdist 74e01f
* Tue Mar 30 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-3
cvsdist 74e01f
- Add /usr/include/attr to files manifest
cvsdist 74e01f
- Fix location of doc files, add main doc dir to files manifest
cvsdist 74e01f
cvsdist a96a9e
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a96a9e
- rebuilt
cvsdist a96a9e
cvsdist a96a9e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a96a9e
- rebuilt
cvsdist a96a9e
cvsdist 43d9af
* Tue Aug  5 2003 Elliot Lee <sopwith@redhat.com> 2.4.1-2
cvsdist 43d9af
- Fix libtool
cvsdist 43d9af
cvsdist 43d9af
* Tue Jun  3 2003 Stephen C. Tweedie <sct@redhat.com> 2.4.1-1
cvsdist 43d9af
- update to attr-2.4.1
cvsdist 43d9af
cvsdist 170863
* Tue Jan 28 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.0-1
cvsdist 170863
- update/rebuild
cvsdist 170863
cvsdist 170863
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 2.0.8-6
cvsdist 170863
- set execute bits on library so that requires are generated.
cvsdist 170863
cvsdist 170863
* Thu Nov 21 2002 Elliot Lee <sopwith@redhat.com> 2.0.8-5
cvsdist 170863
- Redo multilib patch to work everywhere
cvsdist 170863
cvsdist 170863
* Wed Sep 11 2002 Than Ngo <than@redhat.com> 2.0.8-4
cvsdist 170863
- Added fix to install libs in correct directory on 64bit machine 
cvsdist 170863
cvsdist fb23aa
* Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-3
cvsdist fb23aa
- Made the package only own the one directory that is unique to it:
cvsdist fb23aa
  /usr/include/attr
cvsdist fb23aa
cvsdist fb23aa
* Wed Jun 26 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-2
cvsdist e75a73
- get perl out of base with attr-2.0.8-docperms.patch
cvsdist e75a73
cvsdist e75a73
* Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-1
cvsdist e75a73
- Initial Red Hat package
cvsdist e75a73
  Made as few changes as possible relative to upstream packaging to
cvsdist e75a73
  make it easier to maintain long-term.  This means that some of
cvsdist e75a73
  the techniques used here are definitely not standard Red Hat
cvsdist e75a73
  techniques.  If you are looking for an example package to fit
cvsdist e75a73
  into Red Hat Linux transparently, this would not be the one to
cvsdist e75a73
  pick.
cvsdist e75a73
- attr-devel -> libattr-devel