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