]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk.spec
- run test suite
[packages/gawk.git] / gawk.spec
index b7873deb388cc3fcfd97bab87bab72a21c1ca6fe..a8dd374bc230325b61cd2e4e8191ca600b5f339f 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
@@ -1,29 +1,35 @@
+%bcond_without tests
 Summary:       The GNU version of the awk text processing utility
 Summary:       The GNU version of the awk text processing utility
-Summary(de):   Die GNU-Version des AWK-Textverarbeitungsutilitys
-Summary(es):   Utilitarios GNU para manipulación de archivos texto
-Summary(fr):   Traitement de texte des utilitaires GNU
-Summary(ja):   GNU ¥Ð¡¼¥¸¥ç¥ó¤Î awk ¥Æ¥­¥¹¥È½èÍý¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¼
-Summary(pl):   Wersja GNU awk - narzêdzia do obróbki tekstów
-Summary(pt_BR):        Utilitários GNU para manipulação arquivos texto
-Summary(ru):   GNU ×ÅÒÓÉÑ ÕÔÉÌÉÔÙ ÏÂÒÁÂÏÔËÉ ÔÅËÓÔÏ× awk
-Summary(tr):   GNU araçlarý metin düzenleyici
-Summary(uk):   GNU ×ÅÒӦѠÕÔÉ̦ÔÉ ÏÂÒÏÂËÉ ÔÅËÓԦנawk
+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 ã\83\90ã\83¼ã\82¸ã\83§ã\83³ã\81® awk ã\83\86ã\82­ã\82¹ã\83\88å\87¦ç\90\86ã\83¦ã\83¼ã\83\86ã\82£ã\83ªã\83\86ã\82£ã\83¼
+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
 Name:          gawk
-Version:       3.1.5
-Release:       1.1
-License:       GPL
+Version:       4.1.0
+Release:       1
+License:       GPL v3+
 Group:         Applications/Text
 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.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
 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
+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: texinfo >= 4.3
+BuildRequires: xz
 Requires:      mktemp
 Requires:      sed
 Obsoletes:     gawk-doc
 Requires:      mktemp
 Requires:      sed
 Obsoletes:     gawk-doc
@@ -39,79 +45,82 @@ 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.
 
 awk and is almost completely compliant with the 1993 POSIX 1003.2
 standard for awk.
 
-%description -l de
-Das gawk-Paket enthält die GNU-Version von awk, einem
+%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.
 
 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
-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
+%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
 POSIX 1003.2 para awk. Gawk puede ser usado para procesar archivos
-texto y se considera una herramienta padrón del Linux.
+texto y se considera una herramienta padrón del Linux.
 
 
-%description -l fr
+%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.
 
 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
-gawk ¥Ñ¥Ã¥±¡¼¥¸¤Ï GNU ¥Ð¡¼¥¸¥ç¥ó¤Î¡¢¥Æ¥­¥¹¥È½èÍý¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¼
-¤Ç¤¢¤ë awk ¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£awk ¤ÏÁÇÁ᤯¡¢Íưפʥѥ¿¡¼¥ó¥Þ¥Ã¥Á¥ó¥°¤È
-À°·Á½èÍý¤ò¤¹¤ë¤¿¤á¤ÎÆüì¤ÊÌÜŪ¤Î¸À¸ì¤Ç¤¹¡£gawk ¤Ï¥Ù¥ë¸¦¤Î¥Ð¡¼¥¸¥ç¥ó¤Î
-awk ¤È¾å°Ì¸ß´¹¤Ç¡¢awk ¤Î 1993 POSIX 1003.2 É¸½à¤Ë´°Á´¤Ë¹çÃפ·¤Þ¤¹¡£
+%description -l ja.UTF-8
+gawk ã\83\91ã\83\83ã\82±ã\83¼ã\82¸ã\81¯ GNU ã\83\90ã\83¼ã\82¸ã\83§ã\83³ã\81®ã\80\81ã\83\86ã\82­ã\82¹ã\83\88å\87¦ç\90\86ã\83¦ã\83¼ã\83\86ã\82£ã\83ªã\83\86ã\82£ã\83¼
+である awk を含んでいます。awk は素早く、容易なパターンマッチングと
+整形処理をするための特殊な目的の言語です。gawk はベル研のバージョンの
+awk と上位互換で、awk の 1993 POSIX 1003.2 標準に完全に合致します。
 
 
-%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
+%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.
 
 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.
+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
-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
+%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
 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
-ðÁËÅÔ gawk ÓÏÄÅÒÖÉÔ GNU ×ÅÒÓÉÀ awk, ÕÔÉÌÉÔÙ ÏÂÒÁÂÏÔËÉ ÔÅËÓÔÏ×. awk
-ÉÎÔÅÒÐÒÅÔÉÒÕÅÔ ÓÐÅÃÉÁÌÉÚÉÒÏ×ÁÎÎÙÊ ÑÚÙË ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ ÄÌÑ ÂÙÓÔÒÏÇÏ É
-ÌÅÇËÏÇÏ ×ÙÐÏÌÎÅÎÉÑ ÒÁÂÏÔ ÐÏ ÓÏÐÏÓÔÁ×ÌÅÎÉÀ Ó ÛÁÂÌÏÎÁÍÉ É
ÅÒÅÆÏÒÍÁÔÉÒÏ×ÁÎÉÀ ÔÅËÓÔÏ×. Gawk ÄÏÌÖÅΠÂÙÔØ ÓÏ×ÍÅÓÔÉÍ Ó ×ÅÒÓÉÅÊ awk
-ÏÔ Bell Labs É ÐÒÁËÔÉÞÅÓËÉ ÐÏÌÎÏÓÔØÀ ÏÔ×ÅÞÁÅÔ ÓÔÁÎÄÁÒÔÕ 1993 POSIX
-1003.2 ÎÁ awk.
-
-%description -l tr
-Gawk metin dosyalarýný iþlemek için kullanýlan standart Linux
-Araçlarýndan biridir.
-
-%description -l uk
-ðÁËÅÔ gawk Í¦ÓÔÉÔØ GNU ×ÅÒÓ¦À awk, ÕÔÉ̦ÔÉ ÏÂÒÏÂËÉ ÔÅËÓÔ¦×. awk
-¦ÎÔÅÒÐÒÅÔÕ¤ ÓÐÅæÁ̦ÚÏ×ÁÎÕ ÍÏ×Õ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ ÄÌÑ Û×ÉÄËÏÇÏ ÔÁ ÌÅÇËÏÇÏ
-×ÉËÏÎÁÎÎÑ ÒϦԠÐÏ ÓЦ×ÓÔÁ×ÌÅÎÎÀ Ú ÛÁÂÌÏÎÁÍÉ ÔÁ ÐÅÒÅÆÏÒÍÁÔÕ×ÁÎÎÀ
-ÔÅËÓÔ¦×. Gawk ÍÁ¤ ÂÕÔÉ ÓÕͦÓÎÉÍ Ú ×ÅÒÓ¦¤À awk ×¦Ä Bell Labs ¦
ÒÁËÔÉÞÎÏ ÐÏ×ΦÓÔÀ ×¦ÄÐÏצÄÁ¤ ÓÔÁÎÄÁÒÔÕ 1993 POSIX 1003.2 ÎÁ awk.
+arquivos texto e é considerado uma ferramenta padrão do Linux.
+
+%description -l ru.UTF-8
+Пакет gawk содержит GNU версию awk, утилиты обработки текстов. awk
+интерпретирует специализированный язык программирования для быстрого и
+легкого выполнения работ по сопоставлению с шаблонами и
¿ÐµÑ\80еÑ\84оÑ\80маÑ\82иÑ\80ованиÑ\8e Ñ\82екÑ\81Ñ\82ов. Gawk Ð´Ð¾Ð»Ð¶ÐµÐ½ Ð±Ñ\8bÑ\82Ñ\8c Ñ\81овмеÑ\81Ñ\82им Ñ\81 Ð²ÐµÑ\80Ñ\81ией 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 і
¿Ñ\80акÑ\82иÑ\87но Ð¿Ð¾Ð²Ð½Ñ\96Ñ\81Ñ\82Ñ\8e Ð²Ñ\96дповÑ\96даÑ\94 Ñ\81Ñ\82андаÑ\80Ñ\82Ñ\83 1993 POSIX 1003.2 Ð½Ð° awk.
 
 %package devel
 Summary:       Header files for gawk
 
 %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.
 
 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
 %patch0 -p1
 %patch1 -p1
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 
-rm -f po/stamp-po
+%{__rm} po/stamp-po
 
 %build
 %{__gettextize}
 
 %build
 %{__gettextize}
@@ -119,10 +128,13 @@ rm -f po/stamp-po
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+
 %configure
 
 %{__make} -j1
 
 %configure
 
 %{__make} -j1
 
+%{?with_tests:%{__make} -j1 check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -133,37 +145,50 @@ install -d $RPM_BUILD_ROOT%{_includedir}
 install *.h $RPM_BUILD_ROOT%{_includedir}
 
 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 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%{_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
 
 
 %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)
 
 %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 TODO
 %attr(755,root,root) %{_bindir}/gawk
 %attr(755,root,root) %{_bindir}/igawk
 %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/*
 %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)
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.160159 seconds and 4 git commands to generate.