|
@@ -3,16 +3,26 @@
|
|
Summary: Utilities for managing filesystem extended attributes
|
|
Summary: Utilities for managing filesystem extended attributes
|
|
Name: attr
|
|
Name: attr
|
|
Version: 2.4.48
|
|
Version: 2.4.48
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 2%{?_dist_release}
|
|
|
|
+Group: system
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
URL: http://oss.sgi.com/projects/xfs/
|
|
URL: http://oss.sgi.com/projects/xfs/
|
|
-Group: System Environment/Base
|
|
|
|
-
|
|
|
|
Source: http://download.savannah.nongnu.org/releases/attr/attr-%{version}.tar.gz
|
|
Source: http://download.savannah.nongnu.org/releases/attr/attr-%{version}.tar.gz
|
|
|
|
|
|
-Vendor: Project Vine
|
|
+# fix test-suite failure with perl-5.26.0 (#1473853)
|
|
-Distribution: Vine Linux
|
|
+Patch1: 0001-attr-2.4.48-test-suite-perl.patch
|
|
|
|
+
|
|
|
|
+# fix conflict with fakechroot (https://github.com/dex4er/fakechroot/issues/57)
|
|
|
|
+Patch2: 0002-attr-2.4.48-switch-back-to-syscall.patch
|
|
|
|
+
|
|
|
|
+# xattr.conf: remove entries for NFSv4 ACLs namespaces (#1031423)
|
|
|
|
+# https://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00000.html
|
|
|
|
+# https://lists.nongnu.org/archive/html/acl-devel/2019-03/msg00001.html
|
|
|
|
+# https://lists.nongnu.org/archive/html/acl-devel/2019-05/msg00000.html
|
|
|
|
+Patch3: 0003-attr-2.4.48-xattr-conf-nfs4-acls.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gettext
|
|
BuildRequires: gettext
|
|
@@ -27,18 +37,20 @@ objects, in particular getfattr(1) and setfattr(1).
|
|
An attr(1) command is also provided which is largely compatible
|
|
An attr(1) command is also provided which is largely compatible
|
|
with the SGI IRIX tool of the same name.
|
|
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
|
|
License: LGPLv2+
|
|
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
|
|
the extended attribute system calls and library functions.
|
|
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: programming
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
Requires: libattr = %{version}-%{release}
|
|
Requires: libattr = %{version}-%{release}
|
|
|
|
|
|
@@ -57,10 +69,11 @@ You should install libattr-devel if you want to develop programs
|
|
which make use of extended attributes. If you install libattr-devel,
|
|
which make use of extended attributes. If you install libattr-devel,
|
|
you'll also want to install attr.
|
|
you'll also want to install attr.
|
|
|
|
|
|
|
|
+
|
|
# compat32
|
|
# compat32
|
|
%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,legacy
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
|
|
|
|
%description -n compat32-libattr
|
|
%description -n compat32-libattr
|
|
@@ -69,7 +82,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: programming,legacy
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
Requires: libattr-devel = %{version}-%{release}
|
|
Requires: libattr-devel = %{version}-%{release}
|
|
Requires: compat32-libattr = %{version}-%{release}
|
|
Requires: compat32-libattr = %{version}-%{release}
|
|
@@ -90,25 +103,27 @@ which make use of extended attributes. If you install libattr-devel,
|
|
you'll also want to install attr.
|
|
you'll also want to install attr.
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%autopatch -p1
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
# attr abuses libexecdir
|
|
# attr abuses libexecdir
|
|
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
|
|
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
|
|
-make %{?_smp_mflags} LIBTOOL="libtool --tag=CC"
|
|
+%make_build
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
-make install DESTDIR=%{buildroot}
|
|
+%make_install
|
|
-#make install-dev DESTDIR=%{buildroot}
|
|
|
|
-#make install-lib DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
# get rid of libattr.a and libattr.la
|
|
# get rid of libattr.a and libattr.la
|
|
-rm -f %{buildroot}/%{_lib}/libattr.a
|
|
+rm -f $RPM_BUILD_ROOT/%{_lib}/libattr.{l,}a
|
|
-rm -f %{buildroot}/%{_lib}/libattr.la
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{l,}a
|
|
-rm -f %{buildroot}%{_libdir}/libattr.a
|
|
|
|
-rm -f %{buildroot}%{_libdir}/libattr.la
|
|
|
|
|
|
|
|
# fix links to shared libs and permissions
|
|
# fix links to shared libs and permissions
|
|
rm -f %{buildroot}%{_libdir}/libattr.so
|
|
rm -f %{buildroot}%{_libdir}/libattr.so
|
|
@@ -123,14 +138,10 @@ mv -f %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}/
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
+
|
|
%check
|
|
%check
|
|
-if ./setfattr/setfattr -n user.name -v value .; then
|
|
+if ./setfattr -n user.name -v value .; then
|
|
make tests || exit $?
|
|
make tests || exit $?
|
|
-
|
|
|
|
- # FIXME: root-tests are not ready for the SELinux
|
|
|
|
- #if test 0 = `id -u`; then
|
|
|
|
- # make root-tests || exit $?
|
|
|
|
- #fi
|
|
|
|
else
|
|
else
|
|
echo '*** xattrs are probably not supported by the file system,' \
|
|
echo '*** xattrs are probably not supported by the file system,' \
|
|
'the test-suite will NOT run ***'
|
|
'the test-suite will NOT run ***'
|
|
@@ -139,29 +150,18 @@ fi
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
-%post -n libattr
|
|
|
|
-/sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%postun -n libattr
|
|
|
|
-/sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%post -n compat32-libattr
|
|
|
|
-/sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%postun -n compat32-libattr
|
|
|
|
-/sbin/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc doc
|
|
+%doc doc/CHANGES
|
|
|
|
+%license doc/COPYING*
|
|
%{_bindir}/attr
|
|
%{_bindir}/attr
|
|
%{_bindir}/getfattr
|
|
%{_bindir}/getfattr
|
|
%{_bindir}/setfattr
|
|
%{_bindir}/setfattr
|
|
%{_mandir}/man1/attr.1*
|
|
%{_mandir}/man1/attr.1*
|
|
%{_mandir}/man1/getfattr.1*
|
|
%{_mandir}/man1/getfattr.1*
|
|
%{_mandir}/man1/setfattr.1*
|
|
%{_mandir}/man1/setfattr.1*
|
|
-#%{_mandir}/man5/attr.5*
|
|
+
|
|
-%exclude %{_mandir}/man5/attr.5*
|
|
|
|
|
|
|
|
%files -n libattr-devel
|
|
%files -n libattr-devel
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
@@ -188,7 +188,12 @@ rm -rf %{buildroot}
|
|
%config(noreplace) %{_sysconfdir}/xattr.conf
|
|
%config(noreplace) %{_sysconfdir}/xattr.conf
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.48-2
|
|
|
|
+- dropped scriptlets.
|
|
|
|
+- imported Patch1-3 from rawhide.
|
|
|
|
+
|
|
* Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.48-1
|
|
* Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.48-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- dropped Patch1, 2.
|
|
- dropped Patch1, 2.
|