Summary: Utility for managing filesystem extended attributes
-Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs
+Summary(pl.UTF-8): Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
Name: attr
-Version: 1.1.4
-Release: 1
-License: GPL
+Version: 2.4.48
+Release: 2
+License: LGPL v2+ (library), GPL v2+ (utilities)
Group: Applications/System
-Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
-Patch0: %{name}-miscfix.patch
-URL: http://oss.sgi.com/projects/xfs/
-BuildRequires: autoconf
-BuildRequires: e2fsprogs-devel
-BuildRequires: xfsprogs-devel
+Source0: http://git.savannah.gnu.org/cgit/attr.git/snapshot/%{name}-%{version}.tar.gz
+# Source0-md5: 728d7f7f1b6ccbe03efc8d5c76eb5891
+URL: http://savannah.nongnu.org/projects/attr/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-tools >= 0.18.2
+BuildRequires: libtool >= 2:2
+BuildRequires: rpmbuild(macros) >= 1.402
+BuildRequires: sed >= 4.0
+Obsoletes: libattr
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
%description
-An *experimental* command (attr) to manipulate extended attributes
-under Linux.
+An experimental attr command to manipulate extended attributes under
+Linux.
-%description -l pl
-*Eksperymentalna* komenda (attr) to zarz±dzania rozszerzonymi
+%description -l pl.UTF-8
+Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
atrybutami pod systemem Linux.
%package devel
Summary: Header files and libraries to use extended attributes
-Summary(pl): Pliki nag³ówkowe i biblioteki
+Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
%description devel
-Header files and libraries to develop software which manipulate
-extended attributes.
+Header files to develop software which manipulate extended attributes.
-%description -l pl devel
-Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
-manipuluj±cego rozszerzonymi atrybutami.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
+rozszerzonymi atrybutami.
+
+%package static
+Summary: Static libraries for extended attributes
+Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libraries for extended attributes.
+
+%description static -l pl.UTF-8
+Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
%prep
-%setup -q
-%patch0 -p1
+%setup -q
%build
-DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
-autoconf
-%configure
+# prepare for gettextize
+%{__sed} -i -e 's,po/Makefile.in,,' configure.ac
+
+po/update-potfiles
+%{__gettextize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+
+%configure \
+ %{?debug:--enable-debug} \
+ --disable-silent-rules
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/%{_lib}
-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
-%{__make} install DIST_MANIFEST="$DIST_INSTALL"
-%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-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
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libattr.so.* \
+ $RPM_BUILD_ROOT/%{_lib}
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
-ln -sf /lib/libattr.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libattr.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/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
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
-gzip -9nf doc/CHANGES
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc doc/*.gz
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) /lib/lib*.so.*.*
-%{_mandir}/man[18]/*
+%doc README doc/CHANGES
+%attr(755,root,root) %{_bindir}/attr
+%attr(755,root,root) %{_bindir}/getfattr
+%attr(755,root,root) %{_bindir}/setfattr
+%attr(755,root,root) /%{_lib}/libattr.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libattr.so.1
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xattr.conf
+%{_mandir}/man1/attr.1*
+%{_mandir}/man1/getfattr.1*
+%{_mandir}/man1/setfattr.1*
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.a
+%attr(755,root,root) %{_libdir}/libattr.so
+%{_libdir}/libattr.la
%{_includedir}/attr
-%{_mandir}/man[23]/*
+%{_pkgconfigdir}/libattr.pc
+%{_mandir}/man3/attr_*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libattr.a