]> git.pld-linux.org Git - packages/attr.git/blobdiff - attr.spec
- BR: sed 4.0 is required
[packages/attr.git] / attr.spec
index 1b7790eab3118e3b1d3df54dc9ac834855c754d3..fc391ffdaa5562c123fa86313c5ea0cc2bcf6ba5 100644 (file)
--- a/attr.spec
+++ b/attr.spec
@@ -1,24 +1,26 @@
 Summary:       Utility for managing filesystem extended attributes
-Summary(pl):   Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs
+Summary(pl):   Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
 Name:          attr
-Version:       2.4.7
+Version:       2.4.19
 Release:       1
 # most part is on LGPL v2.1, but the rest enforces GPL
 License:       GPL
 Group:         Applications/System
 Source0:       ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
-# Source0-md5: 56e67402f5075ce47b5657b4336ff563
+# Source0-md5: 0ea0d3bea5a58727eafd46fa1c0f09cc
 Patch0:                %{name}-miscfix.patch
+Patch1:                %{name}-po.patch
 URL:           http://oss.sgi.com/projects/xfs/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: e2fsprogs-devel
-BuildRequires: xfsprogs-devel >= 2.0.0
+BuildRequires: gettext-devel
+BuildRequires: sed >= 4.0
+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
@@ -30,9 +32,9 @@ atrybutami pod systemem Linux.
 
 %package devel
 Summary:       Header files and libraries to use extended attributes
-Summary(pl):   Pliki nag³ówkowe i biblioteki
+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.
@@ -43,19 +45,20 @@ rozszerzonymi atrybutami.
 
 %package static
 Summary:       Static libraries for extended attributes
-Summary(pl):   Biblioteki statyczne attr
+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.
 
 %description static -l pl
-Biblioteki statyczne attr.
+Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 rm -f aclocal.m4
@@ -63,7 +66,7 @@ rm -f aclocal.m4
 %{__autoconf}
 %configure \
        DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
-       OPTIMIZER="%{rpmcflags}"
+       OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
 
 %{__make}
 
@@ -90,6 +93,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
@@ -101,8 +107,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.044978 seconds and 4 git commands to generate.