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