]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk.spec
- use ${TEMDIR:-/tmp} instead /tmp in base directory name for temporary files.
[packages/gawk.git] / gawk.spec
index f43f17b3bf9e1f02a845786e7270cfafe9274ed0..accb5e3b10beefaabe87b80fc1871b718d5ca657 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
-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
-Name:        gawk
-Version:     3.0.3
-Release:     4
-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
-Patch:       gawk-3.0-unaligned.patch
-Buildroot:   /tmp/%{name}-%{version}-root
+Summary:       The GNU version of the awk text processing utility
+Summary(de):   Die GNU-Version des AWK-Textverarbeitungsutilitys
+Summary(fr):   Traitement de texte des utilitaires GNU
+Summary(pl):   Wersja GNU awk - narzêdzia do obróbki tekstów
+Summary(tr):   GNU araçlarý metin düzenleyici
+Name:          gawk
+Version:       3.0.6
+Release:       2
+License:       GPL
+Group:         Applications/Text
+Group(de):     Applikationen/Text
+Group(fr):     Utilitaires/Texte
+Group(pl):     Aplikacje/Tekst
+Source0:       ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
+Patch0:                %{name}-unaligned.patch
+Patch1:                %{name}-info.patch
+Patch2:                %{name}-mktemp.patch
+Patch3:                %{name}-DESTDIR.patch
+Requires:      mktemp
+Requires:      sed
+BuildRequires: texinfo
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     gawk-doc
+
+%define                _libexecdir     %{_prefix}/lib
+%define                _libdir         %{_prefix}/lib
 
 %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 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.
+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.
+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.
+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 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.
 
 %prep
-%setup -q -b 1
-%patch -p1
+%setup  -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1 -b .wiget
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" ./configure \
-       --prefix=/usr
-make
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/bin
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT 
+
+rm -f $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
 
-make install prefix=$RPM_BUILD_ROOT/usr bindir=$RPM_BUILD_ROOT/bin
+gzip -9nf README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS \
+       README_d/README.linux POSIX.STD
 
-strip $RPM_BUILD_ROOT/bin/gawk
-gzip -9f $RPM_BUILD_ROOT/usr/info/gawk.info*
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-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 
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(644, root, root, 755)
-%doc README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS 
-%doc README_d POSIX.STD doc/gawk.ps doc/awkcard.ps
-%attr(755, root, root) /bin/*
-%attr(755, root, root) /usr/bin/*
-%attr(644, root,  man) /usr/man/man1/*
-/usr/info/*info*
-%attr(755, root, root, 755) /usr/libexec/awk
-/usr/share/awk
-
-%changelog
-* 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
+%defattr(644,root,root,755)
+%doc *gz README_d/README.linux.gz 
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+%{_infodir}/*info*
+%attr(755,root,root) %{_libdir}/awk
+%{_datadir}/awk
This page took 0.058791 seconds and 4 git commands to generate.