]> git.pld-linux.org Git - packages/gawk.git/blob - gawk.spec
- added using CVS keywords in %changelog (for automating them).
[packages/gawk.git] / gawk.spec
1 Summary:        GNU utilities text processor.
2 Summary(de):    GNU-Utilities Text-Prozessor
3 Summary(fr):    Traitement de texte des utilitaires GNU
4 Summary(pl):    Narzêdzia do obróbki plików tekstowych z GNU
5 Summary(tr):    GNU araçlarý metin düzenleyici
6 Name:           gawk
7 Version:        3.0.3
8 Release:        9
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 Source1:        ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}-ps.tar.gz
14 Patch0:         gawk-unaligned.patch
15 Patch1:         gawk-info.patch
16 Patch2:         gawk-mktemp.patch
17 Patch3:         gawk-DESTDIR.patch
18 Requires:       mktemp
19 Requires:       sed
20 Buildroot:      /tmp/%{name}-%{version}-root
21
22 %define         _libexecdir     %{_prefix}/lib
23 %define         _libdir         %{_prefix}/lib
24 %define         _exec_prefix    /
25
26 %description
27 This is GNU Awk. It should be upwardly compatible with the Bell Labs
28 research version of awk.  It is almost completely compliant with the
29 1993 POSIX 1003.2 standard for awk.
30
31 Gawk can be used to process text files and is considered a standard
32 Linux tool.
33
34 %description -l de
35 Dies ist GNU Awk. Es sollte aufwärtskompatibel mit der Bell Labs-
36 Version von awk sein. Es ist fast vollständig konform mit dem 1993 
37 POSIX 1003.2-Standard für awk.
38 Gawk läßt sich zum Verarbeiten von Textdateien einsetzen und gilt als
39 ein Standard-Linux-Tool.
40
41 %description -l fr
42 awk de GNU, compatible vers le haut avec les versions awk des Bell Labs.
43 Il est presque totalement conforme au standard 1993 POSIX 1003.2 de awk.
44
45 gawk sert à traiter les fichiers texte est est considéré comme un outil
46 standard de Linux.
47
48 %description -l pl
49 Pakiet zawiera implementacjê GNU interpretera jêzyka awk, który powinien
50 byæ kompatybilny z aplikacj± o tej samej nazwie zrobion± przez Bell Labs.
51 GNU awk jest w pe³ni zgodny ze standardem 1993 POSIX 1003.2.
52
53 Gawk (GNU awk) jest zaawansowanym jêzykiem skryptowym, doskonale nadaj±cym
54 sie do obróbki plików tekstowych. Jest to jedno z podstawowych narzêdzi
55 systemu Linux.
56
57 %description -l tr
58 Gawk metin dosyalarýný iþlemek için kullanýlan standart Linux araçlarýndan
59 biridir.
60
61 %prep
62 %setup -q -b 1
63 %patch0 -p1
64 %patch1 -p1
65 %patch2 -p1
66 %patch3 -p1
67
68 %build
69 LDFLAGS="-s"; export LDFLAGS
70 %configure
71 make
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT/usr/bin
76
77 make install \
78         DESTDIR=$RPM_BUILD_ROOT 
79
80 echo ".so gawk.1" > $RPM_BUILD_ROOT%{_mandir}/man1/awk.1
81 ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/usr/bin/awk 
82 ln -sf %{_bindir}/gawk $RPM_BUILD_ROOT/usr/bin/gawk 
83
84 gzip -9f $RPM_BUILD_ROOT{%{_infodir}/gawk.info*,%{_mandir}/man1/*} \
85         README ACKNOWLEDGMENT FUTURES LIMITATIONS NEWS PORTS \
86         README_d/README.linux POSIX.STD doc/gawk.ps doc/awkcard.ps
87
88 %post
89 /sbin/install-info %{_infodir}/gawk.info.gz /etc/info-dir
90
91 %preun
92 if [ "$1" = "0" ]; then
93         /sbin/install-info --delete %{_infodir}/gawk.info.gz /etc/info-dir
94 fi
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files
100 %defattr(644,root,root,755)
101 %doc *gz README_d/README.linux.gz doc/*.ps.gz
102 %attr(755,root,root) /usr/bin/*
103 %attr(755,root,root) %{_bindir}/*
104 %{_mandir}/man1/*
105 %{_infodir}/*info*
106 %attr(755,root,root) %{_libdir}/awk
107 %{_datadir}/awk
This page took 0.058331 seconds and 4 git commands to generate.