X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gawk.spec;h=b94acde3a537ba2a738267df5d1df5ae8f03c6af;hb=de7a33acbb3e51e8ea525be20555b692bde222b3;hp=ecec5d50ebe2bf5c2596f6cdb9e31df314b03266;hpb=8624370f7a1b56ea292077fb2460ebf6f90d3197;p=packages%2Fgawk.git diff --git a/gawk.spec b/gawk.spec index ecec5d5..b94acde 100644 --- a/gawk.spec +++ b/gawk.spec @@ -5,33 +5,35 @@ Summary(pl): Wersja GNU awk - narz Summary(tr): GNU araçlarý metin düzenleyici Name: gawk Version: 3.0.4 -Release: 2 -Copyright: GPL +Release: 5 +License: GPL Group: Utilities/Text +Group(fr): Utilitaires/Texte Group(pl): Narzêdzia/Tekst Source0: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz Patch0: gawk-unaligned.patch Patch1: gawk-info.patch Patch2: gawk-mktemp.patch Patch3: gawk-DESTDIR.patch +Patch4: gawk-zero_flag.patch Requires: mktemp Requires: sed -Buildroot: /tmp/%{name}-%{version}-root +BuildRequires: texinfo +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _libexecdir %{_prefix}/lib %define _libdir %{_prefix}/lib -%define _exec_prefix / %description 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. +upwardly compatible with the Bell Labs research version of awk and is +almost completely compliant with the 1993 POSIX 1003.2 standard for awk. Install the gawk package if you need a text processing utility. Gawk is considered to be a standard Linux tool for processing text. - + %description -l de Das gawk-Paket enthält die GNU-Version von awk, einem Textverarbeitungs-Utility. Awk interpretiert eine spezielle @@ -42,8 +44,8 @@ kompatibel zum 1993 POSIX 1003.2-awk-Standard. Installieren Sie gawk, wenn Sie ein Textverarbeitungsutility brauchen. %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. @@ -54,7 +56,7 @@ by 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 +siê do obróbki plików tekstowych. Jest to jedno z podstawowych narzêdzi systemu Linux. %description -l tr @@ -67,6 +69,7 @@ biridir. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p0 %build LDFLAGS="-s"; export LDFLAGS @@ -75,26 +78,22 @@ 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 -echo ".so gawk.1" > $RPM_BUILD_ROOT%{_mandir}/man1/awk.1 -ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/usr/bin/awk -ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/usr/bin/gawk +ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT%{_bindir}/gawk -gzip -9f $RPM_BUILD_ROOT{%{_infodir}/gawk.info*,%{_mandir}/man1/*} \ +gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/gawk.info*,%{_mandir}/man1/*} \ README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS \ README_d/README.linux POSIX.STD %post -/sbin/install-info %{_infodir}/gawk.info.gz /etc/info-dir +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 -%preun -if [ "$1" = "0" ]; then - /sbin/install-info --delete %{_infodir}/gawk.info.gz /etc/info-dir -fi +%postun +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT @@ -102,7 +101,6 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *gz README_d/README.linux.gz doc/*.ps.gz -%attr(755,root,root) /usr/bin/* %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* %{_infodir}/*info*