]> git.pld-linux.org Git - packages/attr.git/blobdiff - attr.spec
- 2.4.15
[packages/attr.git] / attr.spec
index 77b877877062a46c4e887ac46c7e6088c6855a10..c667ff9a2f8e9b0f5d1151a86db818b59f5bda5c 100644 (file)
--- a/attr.spec
+++ b/attr.spec
@@ -1,22 +1,25 @@
 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.1
-Release:       3
+Version:       2.4.15
+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: b785ec1b5b351b6ffcf0c31b12d87692
+Source1:       %{name}-pl.po
 Patch0:                %{name}-miscfix.patch
 URL:           http://oss.sgi.com/projects/xfs/
 BuildRequires: autoconf
-BuildRequires: e2fsprogs-devel
-BuildRequires: xfsprogs-devel >= 2.0.0
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: xfsprogs-devel 
 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
@@ -28,7 +31,7 @@ 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}
 
@@ -41,7 +44,7 @@ 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}
 
@@ -49,37 +52,46 @@ Requires:   %{name}-devel = %{version}
 Static libraries for extended attributes.
 
 %description static -l pl
-Biblioteki statyczne attr.
+Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
+chmod -Rf u+w .
+cp %{SOURCE1} po/pl.po
+%{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile
 
 %build
-DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
+rm -f aclocal.m4
+%{__aclocal} -I m4
 %{__autoconf}
-%configure
+%configure \
+       DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
+       OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-DIST_ROOT="$RPM_BUILD_ROOT"
+DIST_ROOT=$RPM_BUILD_ROOT
 DIST_INSTALL=`pwd`/install.manifest
 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
 
-%{__make} install DIST_MANIFEST="$DIST_INSTALL"
-%{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
-%{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
+%{__make} install \
+       DIST_MANIFEST=$DIST_INSTALL
+%{__make} install-dev \
+       DIST_MANIFEST=$DIST_INSTALL_DEV
+%{__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/lib ; echo libattr.so.*.*.*) \
+ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
         $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
 
 echo ".so attr_get.3"  > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
This page took 0.069232 seconds and 4 git commands to generate.