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