]> git.pld-linux.org Git - packages/gawk.git/blob - gawk.spec
- added zero_flag patch from rawhide,
[packages/gawk.git] / gawk.spec
1 Summary:        The GNU version of the awk text processing utility
2 Summary(de):    Die GNU-Version des AWK-Textverarbeitungsutilitys
3 Summary(fr):    Traitement de texte des utilitaires GNU
4 Summary(pl):    Wersja GNU awk - narzêdzia do obróbki tekstów
5 Summary(tr):    GNU araçlarý metin düzenleyici
6 Name:           gawk
7 Version:        3.0.4
8 Release:        4
9 License:        GPL
10 Group:          Utilities/Text
11 Group(fr):      Utilitaires/Texte
12 Group(pl):      Narzêdzia/Tekst
13 Source0:        ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
14 Patch0:         gawk-unaligned.patch
15 Patch1:         gawk-info.patch
16 Patch2:         gawk-mktemp.patch
17 Patch3:         gawk-DESTDIR.patch
18 Patch4:         gawk-zero_flag.patch
19 Requires:       mktemp
20 Requires:       sed
21 Prereq:         /usr/sbin/fix-info-dir
22 BuildRequires:  texinfo
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _libexecdir     %{_prefix}/lib
26 %define         _libdir         %{_prefix}/lib
27
28 %description
29 The gawk packages contains the GNU version of awk, a text processing
30 utility. Awk interprets a special-purpose programming language to do quick
31 and easy text pattern matching and reformatting jobs. Gawk should be
32 upwardly compatible with the Bell Labs research version of awk and is
33 almost completely compliant with the 1993 POSIX 1003.2 standard for awk.
34
35 Install the gawk package if you need a text processing utility. Gawk is
36 considered to be a standard Linux tool for processing text.
37
38 %description -l de
39 Das gawk-Paket enthält die GNU-Version von awk, einem
40 Textverarbeitungs-Utility. Awk interpretiert eine spezielle
41 Programmiersprache, um Textmuster zu suchen, und neu zu formatieren. Gawk
42 ist kompatibel zu der Bell Labs research-Version von awk, und ist fast
43 kompatibel zum 1993 POSIX 1003.2-awk-Standard.
44
45 Installieren Sie gawk, wenn Sie ein Textverarbeitungsutility brauchen.
46
47 %description -l fr
48 awk de GNU, compatible vers le haut avec les versions awk des Bell Labs. Il
49 est presque totalement conforme au standard 1993 POSIX 1003.2 de awk.
50
51 gawk sert à traiter les fichiers texte est est considéré comme un outil
52 standard de Linux.
53
54 %description -l pl
55 Pakiet zawiera implementacjê GNU interpretera jêzyka awk, który powinien
56 byæ kompatybilny z aplikacj± o tej samej nazwie zrobion± przez Bell Labs.
57 GNU awk jest w pe³ni zgodny ze standardem 1993 POSIX 1003.2.
58
59 Gawk (GNU awk) jest zaawansowanym jêzykiem skryptowym, doskonale nadaj±cym
60 siê do obróbki plików tekstowych. Jest to jedno z podstawowych narzêdzi
61 systemu Linux.
62
63 %description -l tr
64 Gawk metin dosyalarýný iþlemek için kullanýlan standart Linux araçlarýndan
65 biridir.
66
67 %prep
68 %setup  -q
69 %patch0 -p1
70 %patch1 -p1
71 %patch2 -p1
72 %patch3 -p1
73 %patch4 -p1
74
75 %build
76 LDFLAGS="-s"; export LDFLAGS
77 %configure
78 make
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_bindir}
83
84 make install \
85         DESTDIR=$RPM_BUILD_ROOT 
86
87 echo ".so gawk.1" > $RPM_BUILD_ROOT%{_mandir}/man1/awk.1
88 ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT%{_bindir}/gawk 
89
90 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/gawk.info*,%{_mandir}/man1/*} \
91         README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS \
92         README_d/README.linux POSIX.STD
93
94 %post
95 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
96
97 %postun
98 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files
104 %defattr(644,root,root,755)
105 %doc *gz README_d/README.linux.gz doc/*.ps.gz
106 %attr(755,root,root) %{_bindir}/*
107 %{_mandir}/man1/*
108 %{_infodir}/*info*
109 %attr(755,root,root) %{_libdir}/awk
110 %{_datadir}/awk
This page took 0.055291 seconds and 4 git commands to generate.