Summary: Utility for managing filesystem extended attributes
Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs
Name: attr
-Version: 1.1.4
+Version: 2.0.9
Release: 1
License: GPL
Group: Applications/System
URL: http://oss.sgi.com/projects/xfs/
BuildRequires: autoconf
BuildRequires: e2fsprogs-devel
-BuildRequires: xfsprogs-devel
+BuildRequires: xfsprogs-devel >= 2.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
+%define _libdir /lib
+%define _libexecdir /usr/lib
%description
An experimental attr command to manipulate extended attributes under
Linux.
%description -l pl
-Eksperymentalne wersja polecenia attr to zarz±dzania rozszerzonymi
+Eksperymentalna wersja polecenia attr to zarz±dzania rozszerzonymi
atrybutami pod systemem Linux.
%package devel
Requires: %{name} = %{version}
%description devel
-Header files and libraries to develop software which manipulate
-extended attributes.
+Header files to develop software which manipulate extended attributes.
%description devel -l pl
-Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
-manipuluj±cego rozszerzonymi atrybutami.
+Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
+rozszerzonymi atrybutami.
%package static
Summary: Static libraries for extended attributes
%build
DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
-autoconf
+%{__autoconf}
%configure
%{__make}
DIST_ROOT="$RPM_BUILD_ROOT"
DIST_INSTALL=`pwd`/install.manifest
DIST_INSTALL_DEV=`pwd`/install-dev.manifest
-export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
+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"
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
+rm -f $RPM_BUILD_ROOT%{_mandir}/man2/{f*,lgetxattr,llistxattr,lremovexattr,lsetxattr}.2
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
-ln -sf /lib/libattr.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libattr.so
+ln -sf %{_libdir}/libattr.so.1.0.1 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
-echo ".so man3/attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
-echo ".so man3/attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
-echo ".so man3/attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
-echo ".so man3/attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
-echo ".so man3/attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
+echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
+echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
+echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
+echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
+echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
-gzip -9nf doc/CHANGES
+echo ".so getxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fgetxattr.2
+echo ".so listxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/flistxattr.2
+echo ".so removexattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fremovexattr.2
+echo ".so setxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/fsetxattr.2
+echo ".so getxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lgetxattr.2
+echo ".so listxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/llistxattr.2
+echo ".so removexattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lremovexattr.2
+echo ".so setxattr.2" > $RPM_BUILD_ROOT%{_mandir}/man2/lsetxattr.2
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc doc/*.gz
+%doc doc/CHANGES
%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) /lib/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
%{_mandir}/man[18]/*
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libexecdir}/lib*.la
+%attr(755,root,root) %{_libexecdir}/lib*.so
%{_includedir}/attr
-%{_mandir}/man[23]/*
+%{_mandir}/man[235]/*
%files static
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libexecdir}/lib*.a