X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=gawk.spec;h=fe8d56eab143866e12f7473c3ebd39cfa2b71324;hb=HEAD;hp=c5526fd6ffe2037db5a35c857e91e0d541cbc755;hpb=9c5048d349628ca361bf5717a6bdb307e58fc5a5;p=packages%2Fgawk.git diff --git a/gawk.spec b/gawk.spec index c5526fd..7ef5e24 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,138 +1,219 @@ -Summary: GNU utilities text processor. -Summary(de): GNU-Utilities Text-Prozessor -Summary(fr): Traitement de texte des utilitaires GNU -Summary(pl): Narzêdzia do obróbki plików tekstowych z GNU -Summary(tr): GNU araçlarý metin düzenleyici +# +# 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 +Summary(fr.UTF-8): Traitement de texte des utilitaires GNU +Summary(ja.UTF-8): GNU バージョンの awk テキスト処理ユーティリティー +Summary(pl.UTF-8): Wersja GNU awk - narzędzia do obróbki tekstów +Summary(pt_BR.UTF-8): Utilitários GNU para manipulação arquivos texto +Summary(ru.UTF-8): GNU версия утилиты обработки текстов awk +Summary(tr.UTF-8): GNU araçları metin düzenleyici +Summary(uk.UTF-8): GNU версія утиліти обробки текстів awk Name: gawk -Version: 3.0.3 -Release: 8 -Copyright: GPL -Group: Utilities/Text -Source0: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz -Source1: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}-ps.tar.gz -Patch0: gawk-unaligned.patch -Patch1: gawk-info.patch -Buildroot: /tmp/%{name}-%{version}-root +Version: 5.3.0 +Release: 1 +License: GPL v3+ +Group: Applications/Text +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: 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) %description -This is GNU Awk. It should be upwardly compatible with the Bell Labs -research version of awk. It is almost completely compliant with the -1993 POSIX 1003.2 standard for awk. - -Gawk can be used to process text files and is considered a standard -Linux tool. - -%description -l de -Dies ist GNU Awk. Es sollte aufwärtskompatibel mit der Bell Labs- -Version von awk sein. Es ist fast vollständig konform mit dem 1993 -POSIX 1003.2-Standard für awk. -Gawk läßt sich zum Verarbeiten von Textdateien einsetzen und gilt als -ein Standard-Linux-Tool. - -%description -l fr -awk de GNU, compatible vers le haut avec les versions awk des Bell Labs. -Il est presque totalement conforme au standard 1993 POSIX 1003.2 de awk. - -gawk sert à traiter les fichiers texte est est considéré comme un outil -standard de Linux. - -%description -l pl -Pakiet zawiera implementacjê GNU interpretera jêzyka awk, który powinien -byæ kompatybilny z aplikacj± o tej samej nazwie zrobion± przez Bell Labs. -GNU awk jest w pe³ni zgodny ze standardem 1993 POSIX 1003.2. - -Gawk (GNU awk) jest zaawansowanym jêzykiem skryptowym, doskonale nadaj±cym -sie do obróbki plików tekstowych. Jest to jedno z podstawowych narzêdzi -systemu Linux. - -%description -l tr -Gawk metin dosyalarýný iþlemek için kullanýlan standart Linux araçlarýndan -biridir. +The gawk packages contains the GNU version of awk, a text processing +utility. Awk interprets a special-purpose programming language to do +quick and easy text pattern matching and reformatting jobs. Gawk +should be upwardly compatible with the Bell Labs research version of +awk and is almost completely compliant with the 1993 POSIX 1003.2 +standard for awk. + +%description -l de.UTF-8 +Das gawk-Paket enthält die GNU-Version von awk, einem +Textverarbeitungs-Utility. Awk interpretiert eine spezielle +Programmiersprache, um Textmuster zu suchen, und neu zu formatieren. +Gawk ist kompatibel zu der Bell Labs research-Version von awk, und ist +fast kompatibel zum 1993 POSIX 1003.2-awk-Standard. + +%description -l es.UTF-8 +Este es el GNU Awk. Debe ser compatible con la versión de pesquisa de +awk del Bell Labs. Es casi completamente vinculado con el padrón 1993 +POSIX 1003.2 para awk. Gawk puede ser usado para procesar archivos +texto y se considera una herramienta padrón del Linux. + +%description -l fr.UTF-8 +awk de GNU, compatible vers le haut avec les versions awk des Bell +Labs. Il est presque totalement conforme au standard 1993 POSIX 1003.2 +de awk. + +%description -l ja.UTF-8 +gawk パッケージは GNU バージョンの、テキスト処理ユーティリティー +である awk を含んでいます。awk は素早く、容易なパターンマッチングと +整形処理をするための特殊な目的の言語です。gawk はベル研のバージョンの +awk と上位互換で、awk の 1993 POSIX 1003.2 標準に完全に合致します。 + +%description -l pl.UTF-8 +Pakiet zawiera implementację GNU interpretera języka awk, który +powinien być kompatybilny z aplikacją o tej samej nazwie zrobioną +przez Bell Labs. GNU awk jest w pełni zgodny ze standardem 1993 POSIX +1003.2. + +Gawk (GNU awk) jest zaawansowanym językiem skryptowym, doskonale +nadającym się do obróbki plików tekstowych. Jest to jedno z +podstawowych narzędzi systemu Linux. + +%description -l pt_BR.UTF-8 +Este é o GNU Awk. Ele deve ser compatível com a versão de pesquisa de +awk do Bell Labs. Ele é quase completamente vinculado com o padrão +1993 POSIX 1003.2 para awk. Gawk pode ser usado para processar +arquivos texto e é considerado uma ferramenta padrão do Linux. + +%description -l ru.UTF-8 +Пакет gawk содержит GNU версию awk, утилиты обработки текстов. awk +интерпретирует специализированный язык программирования для быстрого и +легкого выполнения работ по сопоставлению с шаблонами и +переформатированию текстов. Gawk должен быть совместим с версией awk +от Bell Labs и практически полностью отвечает стандарту 1993 POSIX +1003.2 на awk. + +%description -l tr.UTF-8 +Gawk metin dosyalarını işlemek için kullanılan standart Linux +Araçlarından biridir. + +%description -l uk.UTF-8 +Пакет gawk містить GNU версію awk, утиліти обробки текстів. awk +інтерпретує спеціалізовану мову програмування для швидкого та легкого +виконання робіт по співставленню з шаблонами та переформатуванню +текстів. Gawk має бути сумісним з версією awk від Bell Labs і +практично повністю відповідає стандарту 1993 POSIX 1003.2 на awk. + +%package devel +Summary: Header files for gawk +Summary(pl.UTF-8): Pliki nagłówkowe dla gawka +Group: Development/Libraries + +%description devel +This is the package containing the header files for gawk. + +%description devel -l pl.UTF-8 +Ten pakiet zawiera pliki nagłówkowe dla gawka. %prep -%setup -q -b 1 +%setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 + +%{__rm} po/stamp-po %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --prefix=/usr -make +%{__gettextize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +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 -install -d $RPM_BUILD_ROOT/usr/bin -make install prefix=$RPM_BUILD_ROOT/usr bindir=$RPM_BUILD_ROOT/bin +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -echo ".so gawk.1" > $RPM_BUILD_ROOT/usr/man/man1/awk.1 -ln -sf /bin/gawk $RPM_BUILD_ROOT/usr/bin/awk -ln -sf /bin/gawk $RPM_BUILD_ROOT/usr/bin/gawk +%{__rm} $RPM_BUILD_ROOT%{_bindir}/gawk-%{version} +rm -f $RPM_BUILD_ROOT%{_infodir}/dir -gzip -9f $RPM_BUILD_ROOT/usr/{info/gawk.info*,man/man1/*} \ - README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS \ - README_d/README.linux POSIX.STD doc/gawk.ps doc/awkcard.ps +# mawk provides system wide 'awk' +%{__rm} $RPM_BUILD_ROOT%{_bindir}/awk -%post -/sbin/install-info /usr/info/gawk.info.gz /etc/info-dir +bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} +%{__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 -%preun -if [ "$1" = "0" ]; then - /sbin/install-info --delete /usr/info/gawk.info.gz /etc/info-dir -fi +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files +%post -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%postun -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS POSIX.STD README +%attr(755,root,root) %{_bindir}/gawk +%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) -%doc *gz README_d/README.linux.gz doc/*.ps.gz -%attr(755,root,root) /bin/* -%attr(755,root,root) /usr/bin/* -/usr/man/man1/* -/usr/info/*info* -%attr(755,root,root) /usr/libexec/awk -/usr/share/awk - -%changelog -* Mon Apr 19 1999 Tomasz K³oczko - [3.0.3-8] -- recompiles on new rpm. - -* Wed Apr 14 1999 Tomasz K³oczko - [3.0.3-7] -- removed man group from man pages, -- gzipping %doc. - -* Sat Jan 02 1999 Tomasz K³oczko - [3.0.3-5] -- added %post, %preun with {un}registering gawk info - pages (added gawk-info.patch), -- added gzipping man pages, -- added using LDFLAGS="-s" to ./configure enviroment. - -* Mon Oct 26 1998 Tomasz K³oczko - [3.0.3-4] -- awk(1) man page is now maked as nroff include to gawk(1) instead - making sym link to gawk.1 (this allow compress man pages in future), -- removed INSTALL and COPYING from %doc (copyright statment is in Copyright - field). - -* Sun Jul 19 1998 Wojtek ¦lusarczyk -- added pl translation, -- added -q %setup parameter, -- buildroot canged to /tmp/%{name}-%{version}-root. - -* Wed May 06 1998 Cristian Gafton -- don't package /usr/info/dir - -* Fri Apr 24 1998 Prospector System -- translations modified for de, fr, tr - -* Wed Apr 08 1998 Cristian Gafton -- upgraded to 3.0.3 -- added documentation and buildroot - -* Mon Jun 02 1997 Erik Troan -- built against glibc +%{_includedir}/gawkapi.h