]> git.pld-linux.org Git - packages/attr.git/blobdiff - attr.spec
- rel 3, fixed building on multilib sparc
[packages/attr.git] / attr.spec
index 9a41c0e9d44ba12f3714a40c1d3a8c6b7042cee6..b89e264001d7e9fb6235374ac2859d5e2ba82817 100644 (file)
--- a/attr.spec
+++ b/attr.spec
@@ -1,20 +1,21 @@
 Summary:       Utility for managing filesystem extended attributes
 Summary(pl):   Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
 Name:          attr
-Version:       2.4.14
-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: 816543754a6c61a066fae7749fa75473
-Source1:       %{name}-pl.po
+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}-lt.patch
+Patch2:                %{name}-LDFLAGS.patch
 URL:           http://oss.sgi.com/projects/xfs/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gettext-devel
-BuildRequires: xfsprogs-devel 
+BuildRequires: libtool
+Obsoletes:     libattr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _bindir         /bin
@@ -33,7 +34,7 @@ atrybutami pod systemem Linux.
 Summary:       Header files and libraries to use extended attributes
 Summary(pl):   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.
@@ -46,7 +47,7 @@ rozszerzonymi atrybutami.
 Summary:       Static libraries for extended attributes
 Summary(pl):   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.
@@ -57,9 +58,8 @@ Biblioteki statyczne do korzystania z rozszerzonych atrybut
 %prep
 %setup -q
 %patch0 -p1
-
-cp %{SOURCE1} po/pl.po
-%{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile
+%patch1 -p1
+%patch2 -p1
 
 %build
 rm -f aclocal.m4
@@ -69,7 +69,8 @@ rm -f aclocal.m4
        DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
        OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
 
-%{__make}
+%{__make} \
+       LLDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -94,6 +95,9 @@ rm -rf        $RPM_BUILD_ROOT%{_mandir}/man2
 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
@@ -105,8 +109,8 @@ echo ".so attr_set.3"       > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.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)
This page took 0.033097 seconds and 4 git commands to generate.