Summary: Utility for managing filesystem extended attributes
-Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
+Summary(pl.UTF-8): Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
Name: attr
-Version: 2.4.8
-Release: 2
-# most part is on LGPL v2.1, but the rest enforces GPL
-License: GPL
+Version: 2.4.41
+Release: 1
+License: LGPL v2+ (library), GPL v2+ (utilities)
Group: Applications/System
-Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/Release-1.3/cmd_tars/%{name}-%{version}.src.tar.gz
-# Source0-md5: d2016137a97f8f7ec956a19f45c3f7b7
+Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
+# Source0-md5: 867eb6e8863e39900382d77e2b538696
Patch0: %{name}-miscfix.patch
+Patch1: %{name}-lt.patch
+Patch2: %{name}-LDFLAGS.patch
URL: http://oss.sgi.com/projects/xfs/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: xfsprogs-devel >= 2.5.6
+BuildRequires: gettext-devel
+BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.402
+Obsoletes: libattr
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
-%define _libdir /lib
-%define _libexecdir /usr/lib
+%define _libdir /%{_lib}
+%define _libexecdir /usr/%{_lib}
%description
An experimental attr command to manipulate extended attributes under
Linux.
-%description -l pl
-Eksperymentalna wersja polecenia 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 do korzystania z rozszerzonych atrybutów
+Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
Header files to develop software which manipulate extended attributes.
-%description devel -l pl
-Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
+%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): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
+Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Static libraries for extended attributes.
-%description static -l pl
-Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
+%description static -l pl.UTF-8
+Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
-%build
rm -f aclocal.m4
+
+%build
+%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%configure \
DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
- OPTIMIZER="%{rpmcflags}"
+ OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
-%{__make}
+%{__make} \
+ LLDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
%{__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 -rf $RPM_BUILD_ROOT%{_mandir}/man2
-
-ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
+ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \
$RPM_BUILD_ROOT%{_libexecdir}/libattr.so
-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
+%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
+ $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
+
+rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
%find_lang %{name}
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+
+# already in /usr
+rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README doc/CHANGES
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_mandir}/man[158]/*
+%attr(755,root,root) %{_bindir}/attr
+%attr(755,root,root) %{_bindir}/getfattr
+%attr(755,root,root) %{_bindir}/setfattr
+%attr(755,root,root) %{_libdir}/libattr.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libattr.so.1
+%{_mandir}/man1/attr.1*
+%{_mandir}/man1/getfattr.1*
+%{_mandir}/man1/setfattr.1*
+%{_mandir}/man5/attr.5*
%files devel
%defattr(644,root,root,755)
-%{_libexecdir}/lib*.la
-%attr(755,root,root) %{_libexecdir}/lib*.so
+%attr(755,root,root) %{_libexecdir}/libattr.so
+%{_libexecdir}/libattr.la
%{_includedir}/attr
-%{_mandir}/man3/*
+%{_mandir}/man3/attr_*.3*
%files static
%defattr(644,root,root,755)
-%{_libexecdir}/lib*.a
+%{_libexecdir}/libattr.a