]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk.spec
- fix from upstream for gsub rebuilding $0 when no substiution was done
[packages/gawk.git] / gawk.spec
index cb1d7a02e851ba4569ceef571cf755c73ababc3a..178ef606fad260dc420b703e647380a4671e9bc7 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
@@ -9,20 +9,24 @@ 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.5
+Version:       4.0.0
 Release:       2
-License:       GPL
+License:       GPL v3+
 Group:         Applications/Text
-Source0:       ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
-# Source0-md5: 5703f72d0eea1d463f735aad8222655f
+Source0:       http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
+# Source0-md5: 7cdc48e99b885a4bbe0e98dcf1706b22
 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
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.7
-BuildRequires: gettext-devel >= 0.14.4
+Patch3:                %{name}-gsub_regenarate.patch
+URL:           http://www.gnu.org/software/gawk/
+BuildRequires: autoconf >= 2.68
+BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-devel >= 0.18.1
+BuildRequires: libsigsegv
+BuildRequires: readline-devel
 BuildRequires: texinfo >= 4.3
 Requires:      mktemp
 Requires:      sed
@@ -114,8 +118,9 @@ Ten pakiet zawiera pliki nagłówkowe dla gawka.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
-rm -f po/stamp-po
+%{__rm} po/stamp-po
 
 %build
 %{__gettextize}
@@ -123,6 +128,7 @@ rm -f po/stamp-po
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+
 %configure
 
 %{__make} -j1
@@ -137,37 +143,39 @@ 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
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS README FUTURES LIMITATIONS NEWS PROBLEMS
-%doc README_d/README.linux POSIX.STD
+%doc AUTHORS ChangeLog FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README TODO
+%attr(755,root,root) %{_bindir}/dgawk
 %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
+%{_datadir}/awk
+%{_mandir}/man1/gawk.1*
+%{_mandir}/man1/igawk.1*
+%{_mandir}/man1/pgawk.1*
 %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.059837 seconds and 4 git commands to generate.