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