|
@@ -2,17 +2,51 @@
|
|
|
|
|
|
Summary: Utilities for managing filesystem extended attributes
|
|
Summary: Utilities for managing filesystem extended attributes
|
|
Name: attr
|
|
Name: attr
|
|
-Version: 2.4.43
|
|
+Version: 2.4.44
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
-Conflicts: xfsdump < 2.0.0
|
|
+
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
+License: GPLv2+
|
|
-Source: ftp://oss.sgi.com/projects/xfs/cmd_tars/attr_%{version}-1.tar.gz
|
|
|
|
-Patch1: attr-2.2.0-multilib.patch
|
|
|
|
-Patch2: attr-2.4.32-build.patch
|
|
|
|
-License: GPL
|
|
|
|
URL: http://oss.sgi.com/projects/xfs/
|
|
URL: http://oss.sgi.com/projects/xfs/
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
-BuildRequires: autoconf, libtool >= 1.5, gettext
|
|
+
|
|
|
|
+Source: http://download.savannah.gnu.org/releases-noredirect/attr/attr-%{version}.src.tar.gz
|
|
|
|
+
|
|
|
|
+# a file available in the upstream git repo, but not in the release
|
|
|
|
+Source2: sort-getfattr-output
|
|
|
|
+
|
|
|
|
+# make it ready for rpmbuild
|
|
|
|
+Patch1: attr-2.4.32-build.patch
|
|
|
|
+
|
|
|
|
+# bz #485473
|
|
|
|
+Patch2: attr-2.4.43-leak.patch
|
|
|
|
+
|
|
|
|
+# prepare the test-suite for SELinux
|
|
|
|
+Patch3: attr-2.4.44-tests.patch
|
|
|
|
+
|
|
|
|
+# silence compile-time warnings
|
|
|
|
+Patch4: attr-2.4.44-warnings.patch
|
|
|
|
+
|
|
|
|
+# setfattr.1: document supported encodings of values (#587516)
|
|
|
|
+Patch5: attr-2.4.44-bz587516.patch
|
|
|
|
+
|
|
|
|
+# getfattr: encode NULs properly with --encoding=text (#650539)
|
|
|
|
+Patch6: attr-2.4.44-bz650539.patch
|
|
|
|
+
|
|
|
|
+# getfattr: return non-zero exit code on failure (#660619)
|
|
|
|
+Patch7: attr-2.4.44-bz660619.patch
|
|
|
|
+
|
|
|
|
+# walk_tree: do not follow symlink to directory with -h (#660613)
|
|
|
|
+Patch8: attr-2.4.44-bz660613.patch
|
|
|
|
+
|
|
|
|
+# fix typos in attr(1) man page (#669095)
|
|
|
|
+Patch9: attr-2.4.44-bz669095.patch
|
|
|
|
+
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: gettext
|
|
|
|
+BuildRequires: libtool
|
|
|
|
+Requires: libattr = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+Conflicts: xfsdump < 2.0.0
|
|
|
|
|
|
%description
|
|
%description
|
|
A set of tools for manipulating extended attributes on filesystem
|
|
A set of tools for manipulating extended attributes on filesystem
|
|
@@ -23,7 +57,7 @@ with the SGI IRIX tool of the same name.
|
|
%package -n libattr
|
|
%package -n libattr
|
|
Summary: Dynamic library for extended attribute support
|
|
Summary: Dynamic library for extended attribute support
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: LGPL
|
|
+License: LGPLv2+
|
|
|
|
|
|
%description -n libattr
|
|
%description -n libattr
|
|
This package contains the libattr.so dynamic library which contains
|
|
This package contains the libattr.so dynamic library which contains
|
|
@@ -32,7 +66,7 @@ the extended attribute system calls and library functions.
|
|
%package -n libattr-devel
|
|
%package -n libattr-devel
|
|
Summary: Extended attribute static libraries and headers
|
|
Summary: Extended attribute static libraries and headers
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-License: LGPL
|
|
+License: LGPLv2+
|
|
Requires: libattr = %{version}-%{release}
|
|
Requires: libattr = %{version}-%{release}
|
|
|
|
|
|
%description -n libattr-devel
|
|
%description -n libattr-devel
|
|
@@ -54,7 +88,7 @@ you'll also want to install attr.
|
|
%package -n compat32-libattr
|
|
%package -n compat32-libattr
|
|
Summary: Dynamic library for extended attribute support
|
|
Summary: Dynamic library for extended attribute support
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: LGPL
|
|
+License: LGPLv2+
|
|
|
|
|
|
%description -n compat32-libattr
|
|
%description -n compat32-libattr
|
|
This package contains the libattr.so dynamic library which contains
|
|
This package contains the libattr.so dynamic library which contains
|
|
@@ -63,7 +97,7 @@ the extended attribute system calls and library functions.
|
|
%package -n compat32-libattr-devel
|
|
%package -n compat32-libattr-devel
|
|
Summary: Extended attribute static libraries and headers
|
|
Summary: Extended attribute static libraries and headers
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-License: LGPL
|
|
+License: LGPLv2+
|
|
Requires: libattr-devel = %{version}-%{release}
|
|
Requires: libattr-devel = %{version}-%{release}
|
|
Requires: compat32-libattr = %{version}-%{release}
|
|
Requires: compat32-libattr = %{version}-%{release}
|
|
|
|
|
|
@@ -85,19 +119,25 @@ you'll also want to install attr.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-# We need to turn off executable permissions on the script in %doc
|
|
+%setup -q
|
|
-# because we don't want to drag perl into the base. Users advanced
|
|
+%patch1 -p1
|
|
-# enough to have used ACLs before they were added to the distro can
|
|
+%patch2 -p1
|
|
-# figure out how to chmod and how to install perl. :-)
|
|
+%patch3 -p1
|
|
-%patch1 -p1 -b .multilib
|
|
+%patch4 -p1
|
|
-%patch2 -p1 -b .build
|
|
+%patch5 -p1
|
|
|
|
+%patch6 -p1
|
|
|
|
+%patch7 -p1
|
|
|
|
+%patch8 -p1
|
|
|
|
+%patch9 -p1
|
|
|
|
+
|
|
|
|
+# test-suite helper script
|
|
|
|
+install -m0755 %{SOURCE2} test/
|
|
|
|
|
|
-autoconf
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
# attr abuses libexecdir
|
|
# attr abuses libexecdir
|
|
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
|
|
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
|
|
-make LIBTOOL="libtool --tag=CC"
|
|
+make %{?_smp_mflags} LIBTOOL="libtool --tag=CC"
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -105,8 +145,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install-dev DESTDIR=$RPM_BUILD_ROOT
|
|
make install-dev DESTDIR=$RPM_BUILD_ROOT
|
|
make install-lib DESTDIR=$RPM_BUILD_ROOT
|
|
make install-lib DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
-# get rid of libattr.la
|
|
+# get rid of libattr.a and libattr.la
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.la
|
|
+rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.a
|
|
|
|
+rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.la
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.a
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.la
|
|
|
|
|
|
# fix links to shared libs and permissions
|
|
# fix links to shared libs and permissions
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.so
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.so
|
|
@@ -115,6 +158,19 @@ chmod 0755 $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
+%check
|
|
|
|
+if ./setfattr/setfattr -n user.name -v value .; then
|
|
|
|
+ make tests || exit $?
|
|
|
|
+
|
|
|
|
+ # FIXME: root-tests are not ready for the SELinux
|
|
|
|
+ #if test 0 = `id -u`; then
|
|
|
|
+ # make root-tests || exit $?
|
|
|
|
+ #fi
|
|
|
|
+else
|
|
|
|
+ echo '*** xattrs are probably not supported by the file system,' \
|
|
|
|
+ 'the test-suite will NOT run ***'
|
|
|
|
+fi
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
@@ -160,6 +216,23 @@ rm -rf $RPM_BUILD_ROOT
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Apr 9 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.44-1
|
|
|
|
+- new upstream release
|
|
|
|
+- remove static library from devel package
|
|
|
|
+- added Patch2-9
|
|
|
|
+ * Tue Mar 29 2011 Kamil Dudka <kdudka@redhat.com> 2.2.44-8
|
|
|
|
+ - fix typos in attr(1) man page (#669095)
|
|
|
|
+ * Wed Dec 22 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-6
|
|
|
|
+ - setfattr.1: document supported encodings of values (#587516)
|
|
|
|
+ - getfattr: encode NULs properly with --encoding=text (#650539)
|
|
|
|
+ - getfattr: return non-zero exit code on failure (#660619)
|
|
|
|
+ - walk_tree: do not follow symlink to directory with -h (#660613)
|
|
|
|
+ * Tue May 25 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-5
|
|
|
|
+ - let attr depend on the same version of libattr (#595689)
|
|
|
|
+ - silence compile-time warnings
|
|
|
|
+ * Wed Feb 18 2009 Zdenek Prikryl <zprikryl@redhat.com> 2.4.43-2
|
|
|
|
+ - Fixed memory leaks (#485473)
|
|
|
|
+
|
|
* Wed Jul 15 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.43-2
|
|
* Wed Jul 15 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.43-2
|
|
- added compat32 package for x86_64 arch support
|
|
- added compat32 package for x86_64 arch support
|
|
|
|
|