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: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2
18 # Source0-md5: 80b355f2dce909a2e2424f5c79eddb44
19 URL: http://www.pcre.org/
20 BuildRequires: autoconf >= 2.57
21 BuildRequires: automake
22 BuildRequires: bzip2-devel
23 BuildRequires: libstdc++-devel
24 BuildRequires: libtool >= 2:2
25 BuildRequires: readline-devel
26 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 PCRE stands for the Perl Compatible Regular Expression library. PCRE2
31 is a re-working of the original PCRE library to provide an entirely
34 %description -l pl.UTF-8
35 PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
36 regularnych kompatybilnych z perlowymi. PCRE2 to przetworzenie
37 oryginalnej biblioteki PCRE w celu udostępnienia zupełnie nowego API.
40 Summary: Header files for PCRE2 libraries
41 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek PCRE2
42 Group: Development/Libraries
44 %description common-devel
45 Header files for PCRE2 libraries.
47 %description common-devel -l pl.UTF-8
48 Pliki nagłówkowe bibliotek PCRE2.
51 Summary: PCRE2 library with 8-bit character support
52 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 8-bitowych
56 PCRE2 (Perl compatible regular expressions) C library with 8-bit
59 %description 8 -l pl.UTF-8
60 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
64 Summary: Development files for PCRE2 library with 8-bit character support
65 Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych
66 Group: Development/Libraries
67 Requires: %{name}-8 = %{version}-%{release}
68 Requires: %{name}-common-devel = %{version}-%{release}
71 Development files for PCRE2 library with 8-bit character support.
73 %description 8-devel -l pl.UTF-8
74 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych.
77 Summary: Static PCRE2 library with 8-bit character support
78 Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych
79 Group: Development/Libraries
80 Requires: %{name}-8-devel = %{version}-%{release}
83 Static PCRE2 library with 8-bit character support.
85 %description 8-static -l pl.UTF-8
86 Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych.
89 Summary: POSIX compatible inferface to PCRE2 library with 8-bit character support
90 Summary(pl.UTF-8): Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków 8-bitowych
92 Requires: %{name}-8 = %{version}-%{release}
95 POSIX compatible inferface to PCRE2 library with 8-bit character
98 %description posix -l pl.UTF-8
99 Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków
103 Summary: Development files for PCRE2 POSIX library
104 Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 POSIX
105 Group: Development/Libraries
106 Requires: %{name}-8-devel = %{version}-%{release}
107 Requires: %{name}-posix = %{version}-%{release}
109 %description posix-devel
110 Development files for PCRE2 POSIX.
112 %description posix-devel -l pl.UTF-8
113 Pliki programistyczne biblioteki PCRE2 POSIX.
115 %package posix-static
116 Summary: Static PCRE2 POSIX library
117 Summary(pl.UTF-8): Biblioteka statyczna PCRE2 POSIX
118 Group: Development/Libraries
119 Requires: %{name}-posix-devel = %{version}-%{release}
121 %description posix-static
122 Static PCRE2 POSIX library.
124 %description posix-static -l pl.UTF-8
125 Biblioteka statyczna PCRE2 POSIX.
128 Summary: PCRE2 library with 16-bit character support
129 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 16-bitowych
133 PCRE2 (Perl compatible regular expressions) C library with 16-bit
136 %description 16 -l pl.UTF-8
137 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
141 Summary: Development files for PCRE2 library with 16-bit character support
142 Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych
143 Group: Development/Libraries
144 Requires: %{name}-16 = %{version}-%{release}
145 Requires: %{name}-common-devel = %{version}-%{release}
147 %description 16-devel
148 Development files for PCRE2 library with 16-bit character support.
150 %description 16-devel -l pl.UTF-8
151 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych.
154 Summary: Static PCRE2 library with 16-bit character support
155 Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych
156 Group: Development/Libraries
157 Requires: %{name}-16-devel = %{version}-%{release}
159 %description 16-static
160 Static PCRE2 library with 16-bit character support.
162 %description 16-static -l pl.UTF-8
163 Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych.
166 Summary: PCRE2 library with 32-bit character support
167 Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 32-bitowych
171 PCRE2 (Perl compatible regular expressions) C library with 32-bit
174 %description 32 -l pl.UTF-8
175 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
179 Summary: Development files for PCRE2 library with 32-bit character support
180 Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych
181 Group: Development/Libraries
182 Requires: %{name}-32 = %{version}-%{release}
183 Requires: %{name}-common-devel = %{version}-%{release}
185 %description 32-devel
186 Development files for PCRE2 library with 32-bit character support.
188 %description 32-devel -l pl.UTF-8
189 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych.
192 Summary: Static PCRE2 library with 32-bit character support
193 Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych
194 Group: Development/Libraries
195 Requires: %{name}-32-devel = %{version}-%{release}
197 %description 32-static
198 Static PCRE2 library with 32-bit character support.
200 %description 32-static -l pl.UTF-8
201 Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych.
204 Summary: Grep using Perl Compatible Regular Expressions
205 Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
206 Group: Applications/Text
207 Requires: %{name}-8 = %{version}-%{release}
210 pgrep is a grep workalike which uses perl-style regular expressions
211 instead of POSIX regular expressions.
213 %description grep -l pl.UTF-8
214 pgrep jest programem działającym podobnie do grepa, ale używających
215 perlowych wyrażeń regularnych, a nie posiksowych.
218 Summary: A program for testing Perl-compatible regular expressions
219 Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regularnych
220 Group: Applications/Text
221 %{?with_pcre8:Requires: %{name}-8 = %{version}-%{release}}
222 %{?with_pcre16:Requires: %{name}-16 = %{version}-%{release}}
223 %{?with_pcre32:Requires: %{name}-32 = %{version}-%{release}}
226 pcretest is a program which you can use to test regular expression.
228 %description test -l pl.UTF-8
229 pcretest jest programem, za pomocą którego można sprawdzić poprawność
230 wyrażenia regularnego.
233 Summary: Documentation for PCRE2 in HTML format
234 Summary(pl.UTF-8): Dokumentacja dla PCRE2 w formacie HTML
235 Group: Applications/Text
237 %description doc-html
238 Documentation for PCRE2 in HTML format.
240 %description doc-html -l pl.UTF-8
241 Dokumentacja dla PCRE2 w formacie HTML.
253 --disable-silent-rules \
254 %{!?with_static_libs:--disable-static} \
258 %{?with_pcre8:--enable-pcre2-8} \
259 %{?with_pcre16:--enable-pcre2-16} \
260 %{?with_pcre32:--enable-pcre2-32} \
261 --enable-pcre2grep-libbz2 \
262 --enable-pcre2grep-libz \
263 --enable-pcre2test-libreadline
268 # tests need big stack
274 rm -rf $RPM_BUILD_ROOT
277 DESTDIR=$RPM_BUILD_ROOT
279 # obsoleted by pkg-config
280 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpcre2*.la
282 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pcre2
285 rm -rf $RPM_BUILD_ROOT
287 %post 8 -p /sbin/ldconfig
288 %postun 8 -p /sbin/ldconfig
290 %post posix -p /sbin/ldconfig
291 %postun posix -p /sbin/ldconfig
293 %post 16 -p /sbin/ldconfig
294 %postun 16 -p /sbin/ldconfig
296 %post 32 -p /sbin/ldconfig
297 %postun 32 -p /sbin/ldconfig
300 %defattr(644,root,root,755)
301 %doc AUTHORS ChangeLog HACKING LICENCE NEWS README
302 %attr(755,root,root) %{_bindir}/pcre2-config
303 %{_includedir}/pcre2.h
304 %{_mandir}/man1/pcre2-config.1*
305 %{_mandir}/man3/pcre2.3*
306 %{_mandir}/man3/pcre2_*.3*
307 %{_mandir}/man3/pcre2api.3*
308 %{_mandir}/man3/pcre2build.3*
309 %{_mandir}/man3/pcre2callout.3*
310 %{_mandir}/man3/pcre2compat.3*
311 %{_mandir}/man3/pcre2convert.3*
312 %{_mandir}/man3/pcre2demo.3*
313 %{_mandir}/man3/pcre2jit.3*
314 %{_mandir}/man3/pcre2limits.3*
315 %{_mandir}/man3/pcre2matching.3*
316 %{_mandir}/man3/pcre2partial.3*
317 %{_mandir}/man3/pcre2pattern.3*
318 %{_mandir}/man3/pcre2perform.3*
319 %{_mandir}/man3/pcre2posix.3*
320 %{_mandir}/man3/pcre2sample.3*
321 %{_mandir}/man3/pcre2serialize.3*
322 %{_mandir}/man3/pcre2syntax.3*
323 %{_mandir}/man3/pcre2unicode.3*
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/libpcre2-8.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libpcre2-8.so.0
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libpcre2-8.so
334 %{_pkgconfigdir}/libpcre2-8.pc
336 %if %{with static_libs}
338 %defattr(644,root,root,755)
339 %{_libdir}/libpcre2-8.a
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libpcre2-posix.so.*.*.*
345 %attr(755,root,root) %ghost %{_libdir}/libpcre2-posix.so.2
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libpcre2-posix.so
350 %{_includedir}/pcre2posix.h
351 %{_pkgconfigdir}/libpcre2-posix.pc
353 %if %{with static_libs}
355 %defattr(644,root,root,755)
356 %{_libdir}/libpcre2-posix.a
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/libpcre2-16.so.*.*.*
364 %attr(755,root,root) %ghost %{_libdir}/libpcre2-16.so.0
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libpcre2-16.so
369 %{_pkgconfigdir}/libpcre2-16.pc
371 %if %{with static_libs}
373 %defattr(644,root,root,755)
374 %{_libdir}/libpcre2-16.a
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libpcre2-32.so.*.*.*
382 %attr(755,root,root) %ghost %{_libdir}/libpcre2-32.so.0
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libpcre2-32.so
387 %{_pkgconfigdir}/libpcre2-32.pc
389 %if %{with static_libs}
391 %defattr(644,root,root,755)
392 %{_libdir}/libpcre2-32.a
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/pcre2grep
400 %{_mandir}/man1/pcre2grep.1*
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_bindir}/pcre2test
406 %{_mandir}/man1/pcre2test.1*
409 %defattr(644,root,root,755)