]> git.pld-linux.org Git - packages/cpio.git/blobdiff - cpio.spec
- remove old gettext definitions to avoid 'undefined AM_MKINSTALLDIRS' problem
[packages/cpio.git] / cpio.spec
index 56a84041d3008c39b13f4b92bbd1d1eee35f4cec..7347561ea39f4039813a7ceabcf4d3ea2b370a57 100644 (file)
--- a/cpio.spec
+++ b/cpio.spec
@@ -8,27 +8,31 @@ Summary(ru):  
 Summary(tr):   GNU cpio arþivleme programý
 Summary(uk):   áÒȦ×ÎÁ ÐÒÏÇÒÁÍÁ GNU
 Name:          cpio
-Version:       2.5
-Release:       1
+Version:       2.6
+Release:       4
 License:       GPL v2+
 Group:         Applications/Archiving
-Source0:       ftp://ftp.gnu.org/pub/gnu/cpio/%{name}-%{version}.tar.gz
-#Source0-md5:  e02859af1bbbbd73fcbf757acb57e0a4
-Source1:       %{name}-non-english-man-pages.tar.bz2
-#Source1-md5:  027552f4053477462a09fadc162a5e65
-Patch0:                %{name}-mtime.patch
-Patch1:                %{name}-svr4compat.patch
-Patch2:                %{name}-info.patch
-Patch3:                %{name}-DESTDIR.patch
-Patch4:                %{name}-errorcode.patch
-Patch5:                %{name}-gethostname_is_in_libc_aka_no_libnsl.patch
-Patch6:                %{name}-man.patch
-Patch7:                %{name}-freebsd.patch
-Patch8:                %{name}-pmake.patch
-BuildRequires: autoconf
+Source0:       ftp://ftp.gnu.org/gnu/cpio/%{name}-%{version}.tar.bz2
+# Source0-md5: 25e0e8725bc60ed3460c9cde92752674
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 027552f4053477462a09fadc162a5e65
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-gethostname_is_in_libc_aka_no_libnsl.patch
+Patch2:                %{name}-lfs.patch
+Patch3:                %{name}-pl.po-update.patch
+Patch4:                %{name}-locale.patch
+Patch5:                %{name}-CAN_2005_111.patch
+Patch6:                %{name}-lstat.patch
+Patch7:                %{name}-CAN_1999_1572.patch
+Patch8:                %{name}-safer_name_suffix.patch
+URL:           http://www.gnu.org/software/cpio/
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake
+BuildRequires: gettext-devel >= 0.13
+BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _exec_prefix    /
+%define                _bindir         /bin
 
 %description
 GNU cpio copies files into or out of a cpio or tar archive. Archives
@@ -74,7 +78,7 @@ bande ou un tube. cpio poss
 cpio kopiuje pliki do/z archiwum cpio lub tar-a, które jest
 pojedynczym zbiorem zawieraj±cym pozosta³e pliki wraz z dodatkowymi
 informacjami jak np. nazwa, w³a¶ciciel, czas modyfikacji i prawa
-dostêpu. Archiwum mo¿e byæ plikiem na dysku, ta¶mie magetycznej, albo
+dostêpu. Archiwum mo¿e byæ plikiem na dysku, ta¶mie magnetycznej, albo
 potokiem.
 
 %description -l pt_BR
@@ -114,10 +118,16 @@ cpio 
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-chmod -R a+Xr,u+Xw .
+
+rm -f po/stamp-po
+rm m4/{gettext,po}_gl.m4
 
 %build
+%{__gettextize}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
 
 %{__make}
@@ -125,10 +135,13 @@ chmod -R a+Xr,u+Xw .
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -138,13 +151,13 @@ rm -rf $RPM_BUILD_ROOT
 %postun
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) /bin/cpio
-%{_infodir}/cpio*
-%{_mandir}/man1/cpio.1*
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/cpio
 %lang(es) %{_mandir}/es/man1/cpio.1*
 %lang(hu) %{_mandir}/hu/man1/cpio.1*
 %lang(ja) %{_mandir}/ja/man1/cpio.1*
 %lang(pt_BR) %{_mandir}/pt_BR/man1/cpio.1*
+%{_infodir}/cpio.info*
+%{_mandir}/man1/cpio.1*
This page took 0.128408 seconds and 4 git commands to generate.