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"
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
15 License: BSD (see LICENCE)
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)
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
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.
41 Summary: Header files for PCRE2 libraries
42 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek PCRE2
43 Group: Development/Libraries
45 %description common-devel
46 Header files for PCRE2 libraries.
48 %description common-devel -l pl.UTF-8
49 Pliki nagłówkowe bibliotek PCRE2.
52 Summary: PCRE2 library with 8-bit character support
53 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 8-bitowych
57 PCRE2 (Perl compatible regular expressions) C library with 8-bit
60 %description 8 -l pl.UTF-8
61 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
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}
72 Development files for PCRE2 library with 8-bit character support.
74 %description 8-devel -l pl.UTF-8
75 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych.
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}
84 Static PCRE2 library with 8-bit character support.
86 %description 8-static -l pl.UTF-8
87 Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych.
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
93 Requires: %{name}-8 = %{version}-%{release}
96 POSIX compatible inferface to PCRE2 library with 8-bit character
99 %description posix -l pl.UTF-8
100 Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków
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}
110 %description posix-devel
111 Development files for PCRE2 POSIX.
113 %description posix-devel -l pl.UTF-8
114 Pliki programistyczne biblioteki PCRE2 POSIX.
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}
122 %description posix-static
123 Static PCRE2 POSIX library.
125 %description posix-static -l pl.UTF-8
126 Biblioteka statyczna PCRE2 POSIX.
129 Summary: PCRE2 library with 16-bit character support
130 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 16-bitowych
134 PCRE2 (Perl compatible regular expressions) C library with 16-bit
137 %description 16 -l pl.UTF-8
138 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
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}
148 %description 16-devel
149 Development files for PCRE2 library with 16-bit character support.
151 %description 16-devel -l pl.UTF-8
152 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych.
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}
160 %description 16-static
161 Static PCRE2 library with 16-bit character support.
163 %description 16-static -l pl.UTF-8
164 Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych.
167 Summary: PCRE2 library with 32-bit character support
168 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 32-bitowych
172 PCRE2 (Perl compatible regular expressions) C library with 32-bit
175 %description 32 -l pl.UTF-8
176 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
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}
186 %description 32-devel
187 Development files for PCRE2 library with 32-bit character support.
189 %description 32-devel -l pl.UTF-8
190 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych.
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}
198 %description 32-static
199 Static PCRE2 library with 32-bit character support.
201 %description 32-static -l pl.UTF-8
202 Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych.
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}
211 pgrep is a grep workalike which uses perl-style regular expressions
212 instead of POSIX regular expressions.
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.
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}}
227 pcretest is a program which you can use to test regular expression.
229 %description test -l pl.UTF-8
230 pcretest jest programem, za pomocą którego można sprawdzić poprawność
231 wyrażenia regularnego.
234 Summary: Documentation for PCRE2 in HTML format
235 Summary(pl.UTF-8): Dokumentacja dla PCRE2 w formacie HTML
236 Group: Applications/Text
238 %description doc-html
239 Documentation for PCRE2 in HTML format.
241 %description doc-html -l pl.UTF-8
242 Dokumentacja dla PCRE2 w formacie HTML.
255 --disable-silent-rules \
256 %{!?with_static_libs:--disable-static} \
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
270 # tests need big stack
276 rm -rf $RPM_BUILD_ROOT
279 DESTDIR=$RPM_BUILD_ROOT
281 # obsoleted by pkg-config
282 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpcre2*.la
284 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pcre2
287 rm -rf $RPM_BUILD_ROOT
289 %post 8 -p /sbin/ldconfig
290 %postun 8 -p /sbin/ldconfig
292 %post posix -p /sbin/ldconfig
293 %postun posix -p /sbin/ldconfig
295 %post 16 -p /sbin/ldconfig
296 %postun 16 -p /sbin/ldconfig
298 %post 32 -p /sbin/ldconfig
299 %postun 32 -p /sbin/ldconfig
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*
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
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libpcre2-8.so
336 %{_pkgconfigdir}/libpcre2-8.pc
338 %if %{with static_libs}
340 %defattr(644,root,root,755)
341 %{_libdir}/libpcre2-8.a
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
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/libpcre2-posix.so
352 %{_includedir}/pcre2posix.h
353 %{_pkgconfigdir}/libpcre2-posix.pc
355 %if %{with static_libs}
357 %defattr(644,root,root,755)
358 %{_libdir}/libpcre2-posix.a
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
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libpcre2-16.so
371 %{_pkgconfigdir}/libpcre2-16.pc
373 %if %{with static_libs}
375 %defattr(644,root,root,755)
376 %{_libdir}/libpcre2-16.a
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
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libpcre2-32.so
389 %{_pkgconfigdir}/libpcre2-32.pc
391 %if %{with static_libs}
393 %defattr(644,root,root,755)
394 %{_libdir}/libpcre2-32.a
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/pcre2grep
402 %{_mandir}/man1/pcre2grep.1*
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_bindir}/pcre2test
408 %{_mandir}/man1/pcre2test.1*
411 %defattr(644,root,root,755)