|
cvsdist |
e75a739 |
Summary: Utilities for managing filesystem extended attributes.
|
|
cvsdist |
e75a739 |
Name: attr
|
|
cvsdist |
170863a |
Version: 2.2.0
|
|
cvsdist |
170863a |
Release: 1
|
|
cvsdist |
e75a739 |
Prereq: /sbin/ldconfig
|
|
cvsdist |
e75a739 |
Conflicts: xfsdump < 2.0.0
|
|
cvsdist |
e75a739 |
BuildRoot: %{_tmppath}/%{name}-root
|
|
cvsdist |
170863a |
Source: http://acl.bestbits.at/current/tar/attr-%{version}.src.tar.gz
|
|
cvsdist |
e75a739 |
Patch1: attr-2.0.8-docperms.patch
|
|
cvsdist |
170863a |
Patch2: attr-2.2.0-multilib.patch
|
|
cvsdist |
e75a739 |
License: GPL
|
|
cvsdist |
e75a739 |
URL: http://acl.bestbits.at/
|
|
cvsdist |
e75a739 |
Group: System Environment/Base
|
|
cvsdist |
170863a |
BuildRequires: autoconf
|
|
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
|
|
cvsdist |
e75a739 |
Summary: Dynamic library for extended attribute support.
|
|
cvsdist |
e75a739 |
Group: System Environment/Libraries
|
|
cvsdist |
e75a739 |
License: LGPL
|
|
cvsdist |
e75a739 |
Prereq: /sbin/ldconfig
|
|
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
|
|
cvsdist |
e75a739 |
Summary: Extended attribute static libraries and headers.
|
|
cvsdist |
e75a739 |
Group: Development/Libraries
|
|
cvsdist |
e75a739 |
License: LGPL
|
|
cvsdist |
e75a739 |
Requires: libattr
|
|
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
|
|
cvsdist |
170863a |
autoconf
|
|
cvsdist |
e75a739 |
|
|
cvsdist |
e75a739 |
%build
|
|
cvsdist |
170863a |
# attr abuses libexecdir
|
|
cvsdist |
170863a |
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
|
|
cvsdist |
e75a739 |
make
|
|
cvsdist |
e75a739 |
|
|
cvsdist |
e75a739 |
%install
|
|
cvsdist |
170863a |
rm -rf $RPM_BUILD_ROOT
|
|
cvsdist |
170863a |
|
|
cvsdist |
e75a739 |
DIST_ROOT="$RPM_BUILD_ROOT"
|
|
cvsdist |
e75a739 |
DIST_INSTALL=`pwd`/install.manifest
|
|
cvsdist |
e75a739 |
DIST_INSTALL_DEV=`pwd`/install-dev.manifest
|
|
cvsdist |
e75a739 |
DIST_INSTALL_LIB=`pwd`/install-lib.manifest
|
|
cvsdist |
e75a739 |
export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
|
|
cvsdist |
e75a739 |
make install DIST_MANIFEST="$DIST_INSTALL"
|
|
cvsdist |
e75a739 |
make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
|
|
cvsdist |
e75a739 |
make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
|
|
cvsdist |
170863a |
|
|
cvsdist |
170863a |
chmod +x ${RPM_BUILD_ROOT}/%{_lib}/libattr.so.*
|
|
cvsdist |
170863a |
|
|
cvsdist |
e75a739 |
files()
|
|
cvsdist |
e75a739 |
{
|
|
cvsdist |
e75a739 |
sort | uniq | awk '
|
|
cvsdist |
fb23aa9 |
$1 == "d" {
|
|
cvsdist |
fb23aa9 |
if (match ($6, "/usr/include/attr"))
|
|
cvsdist |
fb23aa9 |
printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); }
|
|
cvsdist |
e75a739 |
$1 == "f" { if (match ($6, "/usr/share/man") || match ($6, "/usr/share/doc/attr"))
|
|
cvsdist |
e75a739 |
printf ("%%%%doc ");
|
|
cvsdist |
e75a739 |
if (match ($6, "/usr/share/man"))
|
|
cvsdist |
e75a739 |
printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6);
|
|
cvsdist |
e75a739 |
else
|
|
cvsdist |
e75a739 |
printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); }
|
|
cvsdist |
e75a739 |
$1 == "l" { if (match ($3, "/usr/share/man") || match ($3, "/usr/share/doc/attr"))
|
|
cvsdist |
e75a739 |
printf ("%%%%doc ");
|
|
cvsdist |
e75a739 |
if (match ($3, "/usr/share/man"))
|
|
cvsdist |
e75a739 |
printf ("%attr(0777,root,root) %s*\n", $3);
|
|
cvsdist |
e75a739 |
else
|
|
cvsdist |
e75a739 |
printf ("%attr(0777,root,root) %s\n", $3); }'
|
|
cvsdist |
e75a739 |
}
|
|
cvsdist |
e75a739 |
set +x
|
|
cvsdist |
e75a739 |
files < "$DIST_INSTALL" > files.rpm
|
|
cvsdist |
e75a739 |
files < "$DIST_INSTALL_DEV" > filesdevel.rpm
|
|
cvsdist |
e75a739 |
files < "$DIST_INSTALL_LIB" > fileslib.rpm
|
|
cvsdist |
e75a739 |
set -x
|
|
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 |
|
|
cvsdist |
e75a739 |
%files -f files.rpm
|
|
cvsdist |
e75a739 |
|
|
cvsdist |
e75a739 |
%files -n libattr-devel -f filesdevel.rpm
|
|
cvsdist |
e75a739 |
|
|
cvsdist |
e75a739 |
%files -n libattr -f fileslib.rpm
|
|
cvsdist |
e75a739 |
|
|
cvsdist |
e75a739 |
%changelog
|
|
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
|