X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gawk.spec;h=7ef5e2497cd50e0f0901d28c051a9f4857776a86;hb=HEAD;hp=8e4e3cc8279eea52a8afcea70325020e7365620e;hpb=c8c3a36070608240997b702079f642a912bcb262;p=packages%2Fgawk.git diff --git a/gawk.spec b/gawk.spec index 8e4e3cc..7ef5e24 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,3 +1,7 @@ +# +# Conditional build +%bcond_without tests # do not perform "make check" + 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,40 +13,33 @@ 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 -Release: 4 -License: GPL +Version: 5.3.0 +Release: 1 +License: GPL v3+ Group: Applications/Text -Source0: ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2 -# Source0-md5: 5703f72d0eea1d463f735aad8222655f +Source0: https://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.lz +# Source0-md5: ceacc7e6192ad5f7f6984490c680797c 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 -Patch4: %{name}-3.1.5-free.patch -Patch5: %{name}-3.1.5-fieldwidths.patch -Patch6: %{name}-3.1.5-binmode.patch -Patch7: %{name}-3.1.5-num2str.patch -Patch8: %{name}-3.1.5-wconcat.patch -Patch9: %{name}-3.1.5-internal.patch -Patch10: %{name}-3.1.5-syntaxerror.patch -Patch11: %{name}-3.1.5-numflags.patch -Patch12: %{name}-3.1.5-ipv6.patch -Patch13: %{name}-3.1.5-freewstr.patch -Patch14: %{name}-3.1.5-mbread.patch -BuildRequires: autoconf >= 2.59 -BuildRequires: automake >= 1:1.7 -BuildRequires: gettext-devel >= 0.14.4 -BuildRequires: texinfo >= 4.3 +Patch2: no-pty-test.patch +URL: http://www.gnu.org/software/gawk/ +BuildRequires: autoconf >= 2.71 +BuildRequires: autoconf-archive +BuildRequires: automake >= 1:1.16 +BuildRequires: gettext-tools >= 0.20.2 +BuildRequires: gmp-devel +BuildRequires: lzip +BuildRequires: mpfr-devel +BuildRequires: readline-devel +BuildRequires: tar >= 1:1.22 +BuildRequires: texinfo >= 7.1 Requires: mktemp Requires: sed Obsoletes: gawk-doc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _includedir %{_prefix}/include/awk - %description The gawk packages contains the GNU version of awk, a text processing utility. Awk interprets a special-purpose programming language to do @@ -126,20 +123,8 @@ Ten pakiet zawiera pliki nagłówkowe dla gawka. %patch0 -p1 %patch1 -p1 %patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 - -rm -f po/stamp-po + +%{__rm} po/stamp-po %build %{__gettextize} @@ -147,52 +132,88 @@ rm -f po/stamp-po %{__autoconf} %{__autoheader} %{__automake} -%configure +cd extension +%{__libtoolize} +%{__aclocal} -I m4 -I ../m4 +%{__autoconf} +%{__autoheader} +%{__automake} +cd .. +%configure \ + --datadir=%{_libdir} %{__make} -j1 +%{?with_tests:%{__make} -j1 check} + %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_includedir} -install *.h $RPM_BUILD_ROOT%{_includedir} +%{__rm} $RPM_BUILD_ROOT%{_bindir}/gawk-%{version} +rm -f $RPM_BUILD_ROOT%{_infodir}/dir + +# mawk provides system wide 'awk' +%{__rm} $RPM_BUILD_ROOT%{_bindir}/awk bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} -rm -f $RPM_BUILD_ROOT%{_bindir}/gawk-%{version} -rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir -rm -f $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages +%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages +# igawk is declared as obsolete since 4.0.0, dropped in 4.2.0 +%{__rm} $RPM_BUILD_ROOT%{_mandir}/{es,fr,it,ja,pl}/man1/igawk.1 %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 NEWS POSIX.STD README %attr(755,root,root) %{_bindir}/gawk -%attr(755,root,root) %{_bindir}/igawk -%attr(755,root,root) %{_bindir}/pgawk* -%{_mandir}/man1/* -%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 +%attr(755,root,root) %{_bindir}/gawkbug +%dir %{_libdir}/gawk +%attr(755,root,root) %{_libdir}/gawk/*.so +%dir %{_libdir}/awk +%{_libdir}/awk/*.awk +%if "%{_libexecdir}" != "%{_libdir}" +%dir %{_libexecdir}/awk +%endif +%attr(755,root,root) %{_libexecdir}/awk/grcat +%attr(755,root,root) %{_libexecdir}/awk/pwcat +/etc/profile.d/gawk.csh +/etc/profile.d/gawk.sh +%{_mandir}/man1/gawk.1* +%{_mandir}/man1/gawkbug.1* +%{_mandir}/man1/pm-gawk.1* +%{_mandir}/man3/filefuncs.3am* +%{_mandir}/man3/fnmatch.3am* +%{_mandir}/man3/fork.3am* +%{_mandir}/man3/inplace.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/gawk.1* +%lang(fr) %{_mandir}/fr/man1/gawk.1* +%lang(it) %{_mandir}/it/man1/gawk.1* +%lang(ja) %{_mandir}/ja/man1/gawk.1* +%lang(pl) %{_mandir}/pl/man1/gawk.1* +%{_infodir}/gawk*.info* +%{_infodir}/gawk*.jpg +%{_infodir}/gawk*.png +%{_infodir}/pm-gawk.info* %files devel %defattr(644,root,root,755) -%{_includedir} +%{_includedir}/gawkapi.h