Summary: Utility for managing filesystem extended attributes
Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
Name: attr
-Version: 2.4.16
-Release: 1
-# most part is on LGPL v2.1, but the rest enforces GPL
-License: GPL
+Version: 2.4.32
+Release: 3
+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
-# Source0-md5: 13ba7836876882da53b2c1eab5ab66bc
+Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
+# Source0-md5: 092739e9b944815aecc1f5d8379d5ea5
Patch0: %{name}-miscfix.patch
-Patch1: %{name}-po.patch
+Patch1: %{name}-lt.patch
+Patch2: %{name}-LDFLAGS.patch
URL: http://oss.sgi.com/projects/xfs/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
+BuildRequires: libtool
+Obsoletes: libattr
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
rm -f aclocal.m4
DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
-%{__make}
+%{__make} \
+ LLDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
$RPM_BUILD_ROOT%{_libexecdir}/libattr.so
+%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
+ $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
+
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
%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)