]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk.spec
- run test suite
[packages/gawk.git] / gawk.spec
index cb7f857742fb544c5227c5723f5f1a2d5008dd14..a8dd374bc230325b61cd2e4e8191ca600b5f339f 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
@@ -1,3 +1,4 @@
+%bcond_without tests
 Summary:       The GNU version of the awk text processing utility
 Summary(de.UTF-8):     Die GNU-Version des AWK-Textverarbeitungsutilitys
 Summary(es.UTF-8):     Utilitarios GNU para manipulación de archivos texto
@@ -9,22 +10,26 @@ Summary(ru.UTF-8):   GNU версия утилиты обработки текст
 Summary(tr.UTF-8):     GNU araçları metin düzenleyici
 Summary(uk.UTF-8):     GNU версія утиліти обробки текстів awk
 Name:          gawk
-Version:       3.1.6
+Version:       4.1.0
 Release:       1
 License:       GPL v3+
 Group:         Applications/Text
-Source0:       ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
-# Source0-md5: c9926c0bc8c177cb9579708ce67f0d75
+Source0:       http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
+# Source0-md5: b18992ff8faf3217dab55d2d0aa7d707
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5: 80753d75be0f469f70e8c90e75121a9c
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-shutup.patch
-Patch2:                %{name}-pl.po-update.patch
-Patch3:                %{name}-3.1.3-getpgrp_void.patch
-BuildRequires: autoconf >= 2.61
-BuildRequires: automake >= 1:1.10
-BuildRequires: gettext-devel >= 0.16.1
+URL:           http://www.gnu.org/software/gawk/
+BuildRequires: autoconf >= 2.69
+BuildRequires: automake >= 1:1.13
+BuildRequires: gettext-devel >= 0.18.1
+BuildRequires: libsigsegv
+BuildRequires: mpfr-devel
+BuildRequires: readline-devel
+BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo >= 4.3
+BuildRequires: xz
 Requires:      mktemp
 Requires:      sed
 Obsoletes:     gawk-doc
@@ -114,10 +119,8 @@ Ten pakiet zawiera pliki nagłówkowe dla gawka.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
 
-rm -f po/stamp-po
+%{__rm} po/stamp-po
 
 %build
 %{__gettextize}
@@ -125,10 +128,13 @@ rm -f po/stamp-po
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+
 %configure
 
 %{__make} -j1
 
+%{?with_tests:%{__make} -j1 check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -139,36 +145,50 @@ install -d $RPM_BUILD_ROOT%{_includedir}
 install *.h $RPM_BUILD_ROOT%{_includedir}
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-rm -f $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages
 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
-rm -f $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gawk/*.la
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p      /sbin/postshell
+%post  -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun        -p      /sbin/postshell
+%postun        -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README
+%doc AUTHORS ChangeLog NEWS POSIX.STD README TODO
 %attr(755,root,root) %{_bindir}/gawk
 %attr(755,root,root) %{_bindir}/igawk
-%attr(755,root,root) %{_bindir}/pgawk*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_libdir}/awk
+%dir %{_libdir}/gawk
+%attr(755,root,root) %{_libdir}/gawk/*.so
+%{_datadir}/awk
+%{_mandir}/man1/gawk.1*
+%{_mandir}/man1/igawk.1*
+%{_mandir}/man3/filefuncs.3am*
+%{_mandir}/man3/fnmatch.3am*
+%{_mandir}/man3/fork.3am*
+%{_mandir}/man3/ordchr.3am*
+%{_mandir}/man3/readdir.3am*
+%{_mandir}/man3/readfile.3am*
+%{_mandir}/man3/revoutput.3am*
+%{_mandir}/man3/revtwoway.3am*
+%{_mandir}/man3/rwarray.3am*
+%{_mandir}/man3/time.3am*
 %lang(es) %{_mandir}/es/man1/*
 %lang(fr) %{_mandir}/fr/man1/*
 %lang(it) %{_mandir}/it/man1/*
 %lang(ja) %{_mandir}/ja/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
-%{_infodir}/*.info*
-%attr(755,root,root) %{_libdir}/awk
-%{_datadir}/awk
+%{_infodir}/gawk*.info*
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.078802 seconds and 4 git commands to generate.