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