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