From e75a739e41fcc82e5fe7700b8a0839fd6f1fa3fa Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 03:14:37 +0000 Subject: auto-import changelog data from attr-2.0.8-2.src.rpm Wed Jun 26 2002 Michael K. Johnson - get perl out of base with attr-2.0.8-docperms.patch Mon Jun 24 2002 Michael K. Johnson 2.0.8-1 - Initial Red Hat package Made as few changes as possible relative to upstream packaging to make it easier to maintain long-term. This means that some of the techniques used here are definitely not standard Red Hat techniques. If you are looking for an example package to fit into Red Hat Linux transparently, this would not be the one to pick. - attr-devel -> libattr-devel --- diff --git a/.cvsignore b/.cvsignore index e69de29..3d848d5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +attr-2.0.8.src.tar.gz diff --git a/attr-2.0.8-docperms.patch b/attr-2.0.8-docperms.patch new file mode 100644 index 0000000..232f600 --- /dev/null +++ b/attr-2.0.8-docperms.patch @@ -0,0 +1,10 @@ +--- attr-2.0.8/doc/ea-conv/Makefile.perms Wed Jun 26 09:17:00 2002 ++++ attr-2.0.8/doc/ea-conv/Makefile Wed Jun 26 09:17:12 2002 +@@ -40,6 +40,6 @@ + install: default + $(INSTALL) -m 755 -d $(PKG_DOC_DIR)/ea-conv + $(INSTALL) -m 644 README $(PKG_DOC_DIR)/ea-conv +- $(INSTALL) -m 755 ea-conv $(PKG_DOC_DIR)/ea-conv ++ $(INSTALL) -m 644 ea-conv $(PKG_DOC_DIR)/ea-conv + + default install-dev install-lib: diff --git a/attr.spec b/attr.spec new file mode 100644 index 0000000..b781c3a --- /dev/null +++ b/attr.spec @@ -0,0 +1,121 @@ +Summary: Utilities for managing filesystem extended attributes. +Name: attr +Version: 2.0.8 +Release: 2 +Prereq: /sbin/ldconfig +Conflicts: xfsdump < 2.0.0 +BuildRoot: %{_tmppath}/%{name}-root +Source: attr-2.0.8.src.tar.gz +Patch1: attr-2.0.8-docperms.patch +License: GPL +URL: http://acl.bestbits.at/ +Group: System Environment/Base + +%description +A set of tools for manipulating extended attributes on filesystem +objects, in particular getfattr(1) and setfattr(1). +An attr(1) command is also provided which is largely compatible +with the SGI IRIX tool of the same name. + +%package -n libattr +Summary: Dynamic library for extended attribute support. +Group: System Environment/Libraries +License: LGPL +Prereq: /sbin/ldconfig + +%description -n libattr +This package contains the libattr.so dynamic library which contains +the extended attribute system calls and library functions. + +%package -n libattr-devel +Summary: Extended attribute static libraries and headers. +Group: Development/Libraries +License: LGPL +Requires: libattr + +%description -n libattr-devel +This package contains the libraries and header files needed to +develop programs which make use of extended attributes. +For Linux programs, the documented system call API is the +recommended interface, but an SGI IRIX compatibility interface +is also provided. + +Currently only ext2, ext3 and XFS support extended attributes. +The SGI IRIX compatibility API built above the Linux system calls is +used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). + +You should install libattr-devel if you want to develop programs +which make use of extended attributes. If you install libattr-devel, +you'll also want to install attr. + +%prep +%setup +# We need to turn off executable permissions on the script in %doc +# because we don't want to drag perl into the base. Users advanced +# enough to have used ACLs before they were added to the distro can +# figure out how to chmod and how to install perl. :-) +%patch1 -p1 -b .perms +touch .census +./configure + +%build +make + +%install +DIST_ROOT="$RPM_BUILD_ROOT" +DIST_INSTALL=`pwd`/install.manifest +DIST_INSTALL_DEV=`pwd`/install-dev.manifest +DIST_INSTALL_LIB=`pwd`/install-lib.manifest +export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB +make install DIST_MANIFEST="$DIST_INSTALL" +make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" +make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB" +files() +{ + sort | uniq | awk ' +$1 == "d" { printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); } +$1 == "f" { if (match ($6, "/usr/share/man") || match ($6, "/usr/share/doc/attr")) + printf ("%%%%doc "); + if (match ($6, "/usr/share/man")) + printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6); + else + printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); } +$1 == "l" { if (match ($3, "/usr/share/man") || match ($3, "/usr/share/doc/attr")) + printf ("%%%%doc "); + if (match ($3, "/usr/share/man")) + printf ("%attr(0777,root,root) %s*\n", $3); + else + printf ("%attr(0777,root,root) %s\n", $3); }' +} +set +x +files < "$DIST_INSTALL" > files.rpm +files < "$DIST_INSTALL_DEV" > filesdevel.rpm +files < "$DIST_INSTALL_LIB" > fileslib.rpm +set -x + +%clean +[ "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT + +%post -n libattr -p /sbin/ldconfig + +%postun -n libattr -p /sbin/ldconfig + +%files -f files.rpm + +%files -n libattr-devel -f filesdevel.rpm + +%files -n libattr -f fileslib.rpm + +%changelog +* Wed Jun 26 2002 Michael K. Johnson +- get perl out of base with attr-2.0.8-docperms.patch + +* Mon Jun 24 2002 Michael K. Johnson 2.0.8-1 +- Initial Red Hat package + Made as few changes as possible relative to upstream packaging to + make it easier to maintain long-term. This means that some of + the techniques used here are definitely not standard Red Hat + techniques. If you are looking for an example package to fit + into Red Hat Linux transparently, this would not be the one to + pick. +- attr-devel -> libattr-devel diff --git a/sources b/sources index e69de29..492158e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +654a847ed48c98208bcb8297113cdc9c attr-2.0.8.src.tar.gz