]> git.pld-linux.org Git - packages/gawk.git/blob - gawk.spec
cb25c26343f1eedc059d242d0f3af744cb75e163
[packages/gawk.git] / gawk.spec
1 #
2 # Conditional build
3 %bcond_without  tests   # do not perform "make check"
4
5 Summary:        The GNU version of the awk text processing utility
6 Summary(de.UTF-8):      Die GNU-Version des AWK-Textverarbeitungsutilitys
7 Summary(es.UTF-8):      Utilitarios GNU para manipulación de archivos texto
8 Summary(fr.UTF-8):      Traitement de texte des utilitaires GNU
9 Summary(ja.UTF-8):      GNU バージョンの awk テキスト処理ユーティリティー
10 Summary(pl.UTF-8):      Wersja GNU awk - narzędzia do obróbki tekstów
11 Summary(pt_BR.UTF-8):   Utilitários GNU para manipulação arquivos texto
12 Summary(ru.UTF-8):      GNU версия утилиты обработки текстов awk
13 Summary(tr.UTF-8):      GNU araçları metin düzenleyici
14 Summary(uk.UTF-8):      GNU версія утиліти обробки текстів awk
15 Name:           gawk
16 Version:        4.1.4
17 Release:        1
18 License:        GPL v3+
19 Group:          Applications/Text
20 Source0:        http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
21 # Source0-md5:  4e7dbc81163e60fd4f0b52496e7542c9
22 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
23 # Source1-md5:  80753d75be0f469f70e8c90e75121a9c
24 Patch0:         %{name}-info.patch
25 Patch1:         %{name}-shutup.patch
26 Patch2:         no-pty-test.patch
27 URL:            http://www.gnu.org/software/gawk/
28 BuildRequires:  autoconf >= 2.69
29 BuildRequires:  automake >= 1:1.15
30 BuildRequires:  gettext-tools >= 0.19.7
31 BuildRequires:  gmp-devel
32 BuildRequires:  libsigsegv
33 BuildRequires:  mpfr-devel
34 BuildRequires:  readline-devel
35 BuildRequires:  tar >= 1:1.22
36 BuildRequires:  texinfo >= 4.3
37 BuildRequires:  xz
38 Requires:       mktemp
39 Requires:       sed
40 Obsoletes:      gawk-doc
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _includedir     %{_prefix}/include/awk
44
45 %description
46 The gawk packages contains the GNU version of awk, a text processing
47 utility. Awk interprets a special-purpose programming language to do
48 quick and easy text pattern matching and reformatting jobs. Gawk
49 should be upwardly compatible with the Bell Labs research version of
50 awk and is almost completely compliant with the 1993 POSIX 1003.2
51 standard for awk.
52
53 %description -l de.UTF-8
54 Das gawk-Paket enthält die GNU-Version von awk, einem
55 Textverarbeitungs-Utility. Awk interpretiert eine spezielle
56 Programmiersprache, um Textmuster zu suchen, und neu zu formatieren.
57 Gawk ist kompatibel zu der Bell Labs research-Version von awk, und ist
58 fast kompatibel zum 1993 POSIX 1003.2-awk-Standard.
59
60 %description -l es.UTF-8
61 Este es el GNU Awk. Debe ser compatible con la versión de pesquisa de
62 awk del Bell Labs. Es casi completamente vinculado con el padrón 1993
63 POSIX 1003.2 para awk. Gawk puede ser usado para procesar archivos
64 texto y se considera una herramienta padrón del Linux.
65
66 %description -l fr.UTF-8
67 awk de GNU, compatible vers le haut avec les versions awk des Bell
68 Labs. Il est presque totalement conforme au standard 1993 POSIX 1003.2
69 de awk.
70
71 %description -l ja.UTF-8
72 gawk パッケージは GNU バージョンの、テキスト処理ユーティリティー
73 である awk を含んでいます。awk は素早く、容易なパターンマッチングと
74 整形処理をするための特殊な目的の言語です。gawk はベル研のバージョンの
75 awk と上位互換で、awk の 1993 POSIX 1003.2 標準に完全に合致します。
76
77 %description -l pl.UTF-8
78 Pakiet zawiera implementację GNU interpretera języka awk, który
79 powinien być kompatybilny z aplikacją o tej samej nazwie zrobioną
80 przez Bell Labs. GNU awk jest w pełni zgodny ze standardem 1993 POSIX
81 1003.2.
82
83 Gawk (GNU awk) jest zaawansowanym językiem skryptowym, doskonale
84 nadającym się do obróbki plików tekstowych. Jest to jedno z
85 podstawowych narzędzi systemu Linux.
86
87 %description -l pt_BR.UTF-8
88 Este é o GNU Awk. Ele deve ser compatível com a versão de pesquisa de
89 awk do Bell Labs. Ele é quase completamente vinculado com o padrão
90 1993 POSIX 1003.2 para awk. Gawk pode ser usado para processar
91 arquivos texto e é considerado uma ferramenta padrão do Linux.
92
93 %description -l ru.UTF-8
94 Пакет gawk содержит GNU версию awk, утилиты обработки текстов. awk
95 интерпретирует специализированный язык программирования для быстрого и
96 легкого выполнения работ по сопоставлению с шаблонами и
97 переформатированию текстов. Gawk должен быть совместим с версией awk
98 от Bell Labs и практически полностью отвечает стандарту 1993 POSIX
99 1003.2 на awk.
100
101 %description -l tr.UTF-8
102 Gawk metin dosyalarını işlemek için kullanılan standart Linux
103 Araçlarından biridir.
104
105 %description -l uk.UTF-8
106 Пакет gawk містить GNU версію awk, утиліти обробки текстів. awk
107 інтерпретує спеціалізовану мову програмування для швидкого та легкого
108 виконання робіт по співставленню з шаблонами та переформатуванню
109 текстів. Gawk має бути сумісним з версією awk від Bell Labs і
110 практично повністю відповідає стандарту 1993 POSIX 1003.2 на awk.
111
112 %package devel
113 Summary:        Header files for gawk
114 Summary(pl.UTF-8):      Pliki nagłówkowe dla gawka
115 Group:          Development/Libraries
116
117 %description devel
118 This is the package containing the header files for gawk.
119
120 %description devel -l pl.UTF-8
121 Ten pakiet zawiera pliki nagłówkowe dla gawka.
122
123 %prep
124 %setup -q
125 %patch0 -p1
126 %patch1 -p1
127 %patch2 -p1
128
129 %{__rm} po/stamp-po
130
131 %build
132 %{__gettextize}
133 %{__aclocal} -I m4
134 %{__autoconf}
135 %{__autoheader}
136 %{__automake}
137
138 %configure \
139         --datadir=%{_libdir}
140
141 %{__make} -j1
142
143 %{?with_tests:%{__make} -j1 check}
144
145 %install
146 rm -rf $RPM_BUILD_ROOT
147 %{__make} install \
148         DESTDIR=$RPM_BUILD_ROOT
149
150 # mawk provides system wide 'awk'
151 %{__rm} $RPM_BUILD_ROOT%{_bindir}/awk
152
153 install -d $RPM_BUILD_ROOT%{_includedir}
154 cp -p *.h $RPM_BUILD_ROOT%{_includedir}
155
156 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
157 %{__rm} $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
158 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages
159 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
160
161 %find_lang %{name}
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %post   -p /sbin/postshell
167 -/usr/sbin/fix-info-dir -c %{_infodir}
168
169 %postun -p /sbin/postshell
170 -/usr/sbin/fix-info-dir -c %{_infodir}
171
172 %files -f %{name}.lang
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog NEWS POSIX.STD README
175 %attr(755,root,root) %{_bindir}/gawk
176 %attr(755,root,root) %{_bindir}/igawk
177 %dir %{_libdir}/awk
178 %attr(755,root,root) %{_libdir}/awk/grcat
179 %attr(755,root,root) %{_libdir}/awk/pwcat
180 %{_libdir}/awk/*.awk
181 %dir %{_libdir}/gawk
182 %attr(755,root,root) %{_libdir}/gawk/*.so
183 %{_mandir}/man1/gawk.1*
184 %{_mandir}/man1/igawk.1*
185 %{_mandir}/man3/filefuncs.3am*
186 %{_mandir}/man3/fnmatch.3am*
187 %{_mandir}/man3/fork.3am*
188 %{_mandir}/man3/inplace.3am*
189 %{_mandir}/man3/ordchr.3am*
190 %{_mandir}/man3/readdir.3am*
191 %{_mandir}/man3/readfile.3am*
192 %{_mandir}/man3/revoutput.3am*
193 %{_mandir}/man3/revtwoway.3am*
194 %{_mandir}/man3/rwarray.3am*
195 %{_mandir}/man3/time.3am*
196 %lang(es) %{_mandir}/es/man1/*
197 %lang(fr) %{_mandir}/fr/man1/*
198 %lang(it) %{_mandir}/it/man1/*
199 %lang(ja) %{_mandir}/ja/man1/*
200 %lang(pl) %{_mandir}/pl/man1/*
201 %{_infodir}/gawk*.info*
202
203 %files devel
204 %defattr(644,root,root,755)
205 %{_includedir}
This page took 0.06216 seconds and 2 git commands to generate.