]> git.pld-linux.org Git - packages/pcre2.git/blob - pcre2.spec
- up to 10.30
[packages/pcre2.git] / pcre2.spec
1 #
2 # Conditional build:
3 %bcond_without  pcre8           # 8-bit character support
4 %bcond_without  pcre16          # 16-bit character support
5 %bcond_without  pcre32          # 32-bit character support
6 %bcond_without  static_libs     # static libraries build
7 %bcond_without  tests           # don't perform "make check"
8
9 Summary:        Perl-Compatible Regular Expression library
10 Summary(pl.UTF-8):      Biblioteka perlowych wyrażeń regularnych
11 Summary(pt_BR.UTF-8):   Biblioteca de expressões regulares versão
12 Name:           pcre2
13 Version:        10.30
14 Release:        1
15 License:        BSD (see LICENCE)
16 Group:          Libraries
17 Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
18 # Source0-md5:  d3adf4b130eed854a530390f00020a65
19 Patch0:         %{name}-posix-glibc-conflict.patch
20 URL:            http://www.pcre.org/
21 BuildRequires:  autoconf >= 2.57
22 BuildRequires:  automake
23 BuildRequires:  bzip2-devel
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  libtool >= 2:2
26 BuildRequires:  readline-devel
27 BuildRequires:  zlib-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 PCRE stands for the Perl Compatible Regular Expression library. PCRE2
32 is a re-working of the original PCRE library to provide an entirely
33 new API.
34
35 %description -l pl.UTF-8
36 PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
37 regularnych kompatybilnych z perlowymi. PCRE2 to przetworzenie
38 oryginalnej biblioteki PCRE w celu udostępnienia zupełnie nowego API.
39
40 %package common-devel
41 Summary:        Header files for PCRE2 libraries
42 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek PCRE2
43 Group:          Development/Libraries
44
45 %description common-devel
46 Header files for PCRE2 libraries.
47
48 %description common-devel -l pl.UTF-8
49 Pliki nagłówkowe bibliotek PCRE2.
50
51 %package 8
52 Summary:        PCRE2 library with 8-bit character support
53 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 8-bitowych
54 Group:          Libraries
55
56 %description 8
57 PCRE2 (Perl compatible regular expressions) C library with 8-bit
58 character support.
59
60 %description 8 -l pl.UTF-8
61 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
62 8-bitowych.
63
64 %package 8-devel
65 Summary:        Development files for PCRE2 library with 8-bit character support
66 Summary(pl.UTF-8):      Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych
67 Group:          Development/Libraries
68 Requires:       %{name}-8 = %{version}-%{release}
69 Requires:       %{name}-common-devel = %{version}-%{release}
70
71 %description 8-devel
72 Development files for PCRE2 library with 8-bit character support.
73
74 %description 8-devel -l pl.UTF-8
75 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych.
76
77 %package 8-static
78 Summary:        Static PCRE2 library with 8-bit character support
79 Summary(pl.UTF-8):      Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych
80 Group:          Development/Libraries
81 Requires:       %{name}-8-devel = %{version}-%{release}
82
83 %description 8-static
84 Static PCRE2 library with 8-bit character support.
85
86 %description 8-static -l pl.UTF-8
87 Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych.
88
89 %package posix
90 Summary:        POSIX compatible inferface to PCRE2 library with 8-bit character support
91 Summary(pl.UTF-8):      Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków 8-bitowych
92 Group:          Libraries
93 Requires:       %{name}-8 = %{version}-%{release}
94
95 %description posix
96 POSIX compatible inferface to PCRE2 library with 8-bit character
97 support.
98
99 %description posix -l pl.UTF-8
100 Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków
101 8-bitowych.
102
103 %package posix-devel
104 Summary:        Development files for PCRE2 POSIX library
105 Summary(pl.UTF-8):      Pliki programistyczne biblioteki PCRE2 POSIX
106 Group:          Development/Libraries
107 Requires:       %{name}-8-devel = %{version}-%{release}
108 Requires:       %{name}-posix = %{version}-%{release}
109
110 %description posix-devel
111 Development files for PCRE2 POSIX.
112
113 %description posix-devel -l pl.UTF-8
114 Pliki programistyczne biblioteki PCRE2 POSIX.
115
116 %package posix-static
117 Summary:        Static PCRE2 POSIX library
118 Summary(pl.UTF-8):      Biblioteka statyczna PCRE2 POSIX
119 Group:          Development/Libraries
120 Requires:       %{name}-posix-devel = %{version}-%{release}
121
122 %description posix-static
123 Static PCRE2 POSIX library.
124
125 %description posix-static -l pl.UTF-8
126 Biblioteka statyczna PCRE2 POSIX.
127
128 %package 16
129 Summary:        PCRE2 library with 16-bit character support
130 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 16-bitowych
131 Group:          Libraries
132
133 %description 16
134 PCRE2 (Perl compatible regular expressions) C library with 16-bit
135 character support.
136
137 %description 16 -l pl.UTF-8
138 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
139 16-bitowych.
140
141 %package 16-devel
142 Summary:        Development files for PCRE2 library with 16-bit character support
143 Summary(pl.UTF-8):      Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych
144 Group:          Development/Libraries
145 Requires:       %{name}-16 = %{version}-%{release}
146 Requires:       %{name}-common-devel = %{version}-%{release}
147
148 %description 16-devel
149 Development files for PCRE2 library with 16-bit character support.
150
151 %description 16-devel -l pl.UTF-8
152 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych.
153
154 %package 16-static
155 Summary:        Static PCRE2 library with 16-bit character support
156 Summary(pl.UTF-8):      Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych
157 Group:          Development/Libraries
158 Requires:       %{name}-16-devel = %{version}-%{release}
159
160 %description 16-static
161 Static PCRE2 library with 16-bit character support.
162
163 %description 16-static -l pl.UTF-8
164 Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych.
165
166 %package 32
167 Summary:        PCRE2 library with 32-bit character support
168 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 32-bitowych
169 Group:          Libraries
170
171 %description 32
172 PCRE2 (Perl compatible regular expressions) C library with 32-bit
173 character support.
174
175 %description 32 -l pl.UTF-8
176 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
177 32-bitowych.
178
179 %package 32-devel
180 Summary:        Development files for PCRE2 library with 32-bit character support
181 Summary(pl.UTF-8):      Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych
182 Group:          Development/Libraries
183 Requires:       %{name}-32 = %{version}-%{release}
184 Requires:       %{name}-common-devel = %{version}-%{release}
185
186 %description 32-devel
187 Development files for PCRE2 library with 32-bit character support.
188
189 %description 32-devel -l pl.UTF-8
190 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych.
191
192 %package 32-static
193 Summary:        Static PCRE2 library with 32-bit character support
194 Summary(pl.UTF-8):      Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych
195 Group:          Development/Libraries
196 Requires:       %{name}-32-devel = %{version}-%{release}
197
198 %description 32-static
199 Static PCRE2 library with 32-bit character support.
200
201 %description 32-static -l pl.UTF-8
202 Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych.
203
204 %package grep
205 Summary:        Grep using Perl Compatible Regular Expressions
206 Summary(pl.UTF-8):      Grep używający perlowych wyrażeń regularnych
207 Group:          Applications/Text
208 Requires:       %{name}-8 = %{version}-%{release}
209
210 %description grep
211 pgrep is a grep workalike which uses perl-style regular expressions
212 instead of POSIX regular expressions.
213
214 %description grep -l pl.UTF-8
215 pgrep jest programem działającym podobnie do grepa, ale używających
216 perlowych wyrażeń regularnych, a nie posiksowych.
217
218 %package test
219 Summary:        A program for testing Perl-compatible regular expressions
220 Summary(pl.UTF-8):      Program do testowania kompatybilnych z perlem wyrażeń regularnych
221 Group:          Applications/Text
222 %{?with_pcre8:Requires: %{name}-8 = %{version}-%{release}}
223 %{?with_pcre16:Requires:        %{name}-16 = %{version}-%{release}}
224 %{?with_pcre32:Requires:        %{name}-32 = %{version}-%{release}}
225
226 %description test
227 pcretest is a program which you can use to test regular expression.
228
229 %description test -l pl.UTF-8
230 pcretest jest programem, za pomocą którego można sprawdzić poprawność
231 wyrażenia regularnego.
232
233 %package doc-html
234 Summary:        Documentation for PCRE2 in HTML format
235 Summary(pl.UTF-8):      Dokumentacja dla PCRE2 w formacie HTML
236 Group:          Applications/Text
237
238 %description doc-html
239 Documentation for PCRE2 in HTML format.
240
241 %description doc-html -l pl.UTF-8
242 Dokumentacja dla PCRE2 w formacie HTML.
243
244 %prep
245 %setup -q
246 %patch0 -p1
247
248 %build
249 %{__libtoolize}
250 %{__aclocal} -I m4
251 %{__autoconf}
252 %{__autoheader}
253 %{__automake}
254 %configure \
255         --disable-silent-rules \
256         %{!?with_static_libs:--disable-static} \
257 %ifnarch x32
258         --enable-jit \
259 %endif
260         %{?with_pcre8:--enable-pcre2-8} \
261         %{?with_pcre16:--enable-pcre2-16} \
262         %{?with_pcre32:--enable-pcre2-32} \
263         --enable-pcre2grep-libbz2 \
264         --enable-pcre2grep-libz \
265         --enable-pcre2test-libreadline
266
267 %{__make}
268
269 %if %{with tests}
270 # tests need big stack
271 #ulimit -s 32768
272 %{__make} -j1 check
273 %endif
274
275 %install
276 rm -rf $RPM_BUILD_ROOT
277
278 %{__make} install \
279         DESTDIR=$RPM_BUILD_ROOT
280
281 # obsoleted by pkg-config
282 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpcre2*.la
283 # packaged as %doc
284 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pcre2
285
286 %clean
287 rm -rf $RPM_BUILD_ROOT
288
289 %post   8 -p /sbin/ldconfig
290 %postun 8 -p /sbin/ldconfig
291
292 %post   posix -p /sbin/ldconfig
293 %postun posix -p /sbin/ldconfig
294
295 %post   16 -p /sbin/ldconfig
296 %postun 16 -p /sbin/ldconfig
297
298 %post   32 -p /sbin/ldconfig
299 %postun 32 -p /sbin/ldconfig
300
301 %files common-devel
302 %defattr(644,root,root,755)
303 %doc AUTHORS ChangeLog HACKING LICENCE NEWS README
304 %attr(755,root,root) %{_bindir}/pcre2-config
305 %{_includedir}/pcre2.h
306 %{_mandir}/man1/pcre2-config.1*
307 %{_mandir}/man3/pcre2.3*
308 %{_mandir}/man3/pcre2_*.3*
309 %{_mandir}/man3/pcre2api.3*
310 %{_mandir}/man3/pcre2build.3*
311 %{_mandir}/man3/pcre2callout.3*
312 %{_mandir}/man3/pcre2compat.3*
313 %{_mandir}/man3/pcre2convert.3*
314 %{_mandir}/man3/pcre2demo.3*
315 %{_mandir}/man3/pcre2jit.3*
316 %{_mandir}/man3/pcre2limits.3*
317 %{_mandir}/man3/pcre2matching.3*
318 %{_mandir}/man3/pcre2partial.3*
319 %{_mandir}/man3/pcre2pattern.3*
320 %{_mandir}/man3/pcre2perform.3*
321 %{_mandir}/man3/pcre2posix.3*
322 %{_mandir}/man3/pcre2sample.3*
323 %{_mandir}/man3/pcre2serialize.3*
324 %{_mandir}/man3/pcre2syntax.3*
325 %{_mandir}/man3/pcre2unicode.3*
326
327 %if %{with pcre8}
328 %files 8
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/libpcre2-8.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libpcre2-8.so.0
332
333 %files 8-devel
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libpcre2-8.so
336 %{_pkgconfigdir}/libpcre2-8.pc
337
338 %if %{with static_libs}
339 %files 8-static
340 %defattr(644,root,root,755)
341 %{_libdir}/libpcre2-8.a
342 %endif
343
344 %files posix
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/libpcre2-posix.so.*.*.*
347 %attr(755,root,root) %ghost %{_libdir}/libpcre2-posix.so.2
348
349 %files posix-devel
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/libpcre2-posix.so
352 %{_includedir}/pcre2posix.h
353 %{_pkgconfigdir}/libpcre2-posix.pc
354
355 %if %{with static_libs}
356 %files posix-static
357 %defattr(644,root,root,755)
358 %{_libdir}/libpcre2-posix.a
359 %endif
360 %endif
361
362 %if %{with pcre16}
363 %files 16
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_libdir}/libpcre2-16.so.*.*.*
366 %attr(755,root,root) %ghost %{_libdir}/libpcre2-16.so.0
367
368 %files 16-devel
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libpcre2-16.so
371 %{_pkgconfigdir}/libpcre2-16.pc
372
373 %if %{with static_libs}
374 %files 16-static
375 %defattr(644,root,root,755)
376 %{_libdir}/libpcre2-16.a
377 %endif
378 %endif
379
380 %if %{with pcre32}
381 %files 32
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libpcre2-32.so.*.*.*
384 %attr(755,root,root) %ghost %{_libdir}/libpcre2-32.so.0
385
386 %files 32-devel
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libpcre2-32.so
389 %{_pkgconfigdir}/libpcre2-32.pc
390
391 %if %{with static_libs}
392 %files 32-static
393 %defattr(644,root,root,755)
394 %{_libdir}/libpcre2-32.a
395 %endif
396 %endif
397
398 %if %{with pcre8}
399 %files grep
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/pcre2grep
402 %{_mandir}/man1/pcre2grep.1*
403 %endif
404
405 %files test
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_bindir}/pcre2test
408 %{_mandir}/man1/pcre2test.1*
409
410 %files doc-html
411 %defattr(644,root,root,755)
412 %doc doc/html/*
This page took 0.858073 seconds and 3 git commands to generate.