]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk.spec
- pl for -devel
[packages/gawk.git] / gawk.spec
index 93eea0b257a68c7c749a1c683ff7890ec36c9612..4fe32b605593ab63a693bc02e8c44bc11e524d09 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
-Summary:       GNU utilities text processor.
-Summary(de):   GNU-Utilities Text-Prozessor
+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(pl):   Narzêdzia do obróbki plików tekstowych z 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
 Name:          gawk
-Version:       3.0.3
-Release:       8
-Copyright:     GPL
-Group:         Utilities/Text
-Group(pl):     Narzêdzia/Tekst
-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:       3.1.5
+Release:       1.1
+License:       GPL
+Group:         Applications/Text
+Source0:       ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
+# Source0-md5: 5703f72d0eea1d463f735aad8222655f
+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
+BuildRequires: texinfo >= 4.3
+Requires:      mktemp
+Requires:      sed
+Obsoletes:     gawk-doc
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _includedir     %{_prefix}/include/awk
 
 %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.
+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
-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.
+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
+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
-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.
 
-gawk sert à traiter les fichiers texte est est considéré comme un outil
-standard de Linux.
+%description -l ja
+gawk ¥Ñ¥Ã¥±¡¼¥¸¤Ï GNU ¥Ð¡¼¥¸¥ç¥ó¤Î¡¢¥Æ¥­¥¹¥È½èÍý¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¼
+¤Ç¤¢¤ë 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 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.
+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
+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
+ðÁËÅÔ 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.
+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.
+
+%package devel
+Summary:       Header files for gawk
+Summary(pl):   Pliki nag³ówkowe dla gawka
+Group:         Development/Libraries
+
+%description devel
+This is the package containing the header files for gawk.
+
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe dla gawka.
 
 %prep
-%setup -q -b 1
+%setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+
+rm -f po/stamp-po
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr
-make
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make} -j1
 
 %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
 
-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 
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-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
+install -d $RPM_BUILD_ROOT%{_includedir}
+install *.h $RPM_BUILD_ROOT%{_includedir}
 
-%post
-/sbin/install-info /usr/info/gawk.info.gz /etc/info-dir
+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
 
-%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
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS README FUTURES LIMITATIONS NEWS PROBLEMS
+%doc README_d/README.linux POSIX.STD
+%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
+
+%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 <kloczek@rudy.mif.pg.gda.pl>
-  [3.0.3-8]
-- recompiles on new rpm.
-
-* Wed Apr 14 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [3.0.3-7]
-- removed man group from man pages,
-- gzipping %doc.
-
-* Sat Jan 02 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [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 <kloczek@rudy.mif.pg.gda.pl>
-  [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 <wojtek@shadow.eu.org>
-- added pl translation,
-- added -q %setup parameter,
-- buildroot canged to /tmp/%{name}-%{version}-root.
-
-* Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
-- don't package /usr/info/dir
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 3.0.3
-- added documentation and buildroot
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%{_includedir}
This page took 0.091217 seconds and 4 git commands to generate.