]> git.pld-linux.org Git - packages/pcre2.git/blame - pcre2.spec
- rebuild with readline 7.0
[packages/pcre2.git] / pcre2.spec
CommitLineData
ebaa6c5a
JB
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
9Summary: Perl-Compatible Regular Expression library
10Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
11Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
12Name: pcre2
33bc6f94 13Version: 10.21
35c94783 14Release: 2
ebaa6c5a
JB
15License: BSD (see LICENCE)
16Group: Libraries
17Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
33bc6f94 18# Source0-md5: e79460519f916e3fcb204e59714bfd4a
ebaa6c5a
JB
19Patch0: %{name}-posix-glibc-conflict.patch
20URL: http://www.pcre.org/
21BuildRequires: autoconf >= 2.57
22BuildRequires: automake
23BuildRequires: bzip2-devel
24BuildRequires: libstdc++-devel
25BuildRequires: libtool >= 2:2
26BuildRequires: readline-devel
27BuildRequires: zlib-devel
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31PCRE stands for the Perl Compatible Regular Expression library. PCRE2
32is a re-working of the original PCRE library to provide an entirely
33new API.
34
35%description -l pl.UTF-8
36PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
37regularnych kompatybilnych z perlowymi. PCRE2 to przetworzenie
38oryginalnej biblioteki PCRE w celu udostępnienia zupełnie nowego API.
39
40%package common-devel
41Summary: Header files for PCRE2 libraries
42Summary(pl.UTF-8): Pliki nagłówkowe bibliotek PCRE2
43Group: Development/Libraries
44
45%description common-devel
46Header files for PCRE2 libraries.
47
48%description common-devel -l pl.UTF-8
49Pliki nagłówkowe bibliotek PCRE2.
50
51%package 8
52Summary: PCRE2 library with 8-bit character support
53Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 8-bitowych
54Group: Libraries
55
56%description 8
57PCRE2 (Perl compatible regular expressions) C library with 8-bit
58character support.
59
60%description 8 -l pl.UTF-8
61Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
628-bitowych.
63
64%package 8-devel
65Summary: Development files for PCRE2 library with 8-bit character support
66Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych
67Group: Development/Libraries
68Requires: %{name}-8 = %{version}-%{release}
69Requires: %{name}-common-devel = %{version}-%{release}
70
71%description 8-devel
72Development files for PCRE2 library with 8-bit character support.
73
74%description 8-devel -l pl.UTF-8
75Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych.
76
77%package 8-static
78Summary: Static PCRE2 library with 8-bit character support
79Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych
80Group: Development/Libraries
81Requires: %{name}-8-devel = %{version}-%{release}
82
83%description 8-static
84Static PCRE2 library with 8-bit character support.
85
86%description 8-static -l pl.UTF-8
87Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych.
88
89%package posix
90Summary: POSIX compatible inferface to PCRE2 library with 8-bit character support
91Summary(pl.UTF-8): Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków 8-bitowych
92Group: Libraries
93Requires: %{name}-8 = %{version}-%{release}
94
95%description posix
96POSIX compatible inferface to PCRE2 library with 8-bit character
97support.
98
99%description posix -l pl.UTF-8
100Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków
1018-bitowych.
102
103%package posix-devel
104Summary: Development files for PCRE2 POSIX library
105Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 POSIX
106Group: Development/Libraries
107Requires: %{name}-8-devel = %{version}-%{release}
108Requires: %{name}-posix = %{version}-%{release}
109
110%description posix-devel
111Development files for PCRE2 POSIX.
112
113%description posix-devel -l pl.UTF-8
114Pliki programistyczne biblioteki PCRE2 POSIX.
115
116%package posix-static
117Summary: Static PCRE2 POSIX library
118Summary(pl.UTF-8): Biblioteka statyczna PCRE2 POSIX
119Group: Development/Libraries
120Requires: %{name}-posix-devel = %{version}-%{release}
121
122%description posix-static
123Static PCRE2 POSIX library.
124
125%description posix-static -l pl.UTF-8
126Biblioteka statyczna PCRE2 POSIX.
127
128%package 16
129Summary: PCRE2 library with 16-bit character support
130Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 16-bitowych
131Group: Libraries
132
133%description 16
134PCRE2 (Perl compatible regular expressions) C library with 16-bit
135character support.
136
137%description 16 -l pl.UTF-8
138Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
13916-bitowych.
140
141%package 16-devel
142Summary: Development files for PCRE2 library with 16-bit character support
143Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych
144Group: Development/Libraries
145Requires: %{name}-16 = %{version}-%{release}
146Requires: %{name}-common-devel = %{version}-%{release}
147
148%description 16-devel
149Development files for PCRE2 library with 16-bit character support.
150
151%description 16-devel -l pl.UTF-8
152Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych.
153
154%package 16-static
155Summary: Static PCRE2 library with 16-bit character support
156Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych
157Group: Development/Libraries
158Requires: %{name}-16-devel = %{version}-%{release}
159
160%description 16-static
161Static PCRE2 library with 16-bit character support.
162
163%description 16-static -l pl.UTF-8
164Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych.
165
166%package 32
167Summary: PCRE2 library with 32-bit character support
168Summary(pl.UTF-8): Biblioteka PCRE2 z obsługą znaków 32-bitowych
169Group: Libraries
170
171%description 32
172PCRE2 (Perl compatible regular expressions) C library with 32-bit
173character support.
174
175%description 32 -l pl.UTF-8
176Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
17732-bitowych.
178
179%package 32-devel
180Summary: Development files for PCRE2 library with 32-bit character support
181Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych
182Group: Development/Libraries
183Requires: %{name}-32 = %{version}-%{release}
184Requires: %{name}-common-devel = %{version}-%{release}
185
186%description 32-devel
187Development files for PCRE2 library with 32-bit character support.
188
189%description 32-devel -l pl.UTF-8
190Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych.
191
192%package 32-static
193Summary: Static PCRE2 library with 32-bit character support
194Summary(pl.UTF-8): Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych
195Group: Development/Libraries
196Requires: %{name}-32-devel = %{version}-%{release}
197
198%description 32-static
199Static PCRE2 library with 32-bit character support.
200
201%description 32-static -l pl.UTF-8
202Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych.
203
204%package grep
205Summary: Grep using Perl Compatible Regular Expressions
206Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
207Group: Applications/Text
208Requires: %{name}-8 = %{version}-%{release}
209
210%description grep
211pgrep is a grep workalike which uses perl-style regular expressions
212instead of POSIX regular expressions.
213
214%description grep -l pl.UTF-8
215pgrep jest programem działającym podobnie do grepa, ale używających
216perlowych wyrażeń regularnych, a nie posiksowych.
217
218%package test
219Summary: A program for testing Perl-compatible regular expressions
220Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regularnych
221Group: 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
227pcretest is a program which you can use to test regular expression.
228
229%description test -l pl.UTF-8
230pcretest jest programem, za pomocą którego można sprawdzić poprawność
231wyrażenia regularnego.
232
233%package doc-html
234Summary: Documentation for PCRE2 in HTML format
235Summary(pl.UTF-8): Dokumentacja dla PCRE2 w formacie HTML
236Group: Applications/Text
237
238%description doc-html
239Documentation for PCRE2 in HTML format.
240
241%description doc-html -l pl.UTF-8
242Dokumentacja 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
276rm -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
287rm -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/pcre2demo.3*
314%{_mandir}/man3/pcre2jit.3*
315%{_mandir}/man3/pcre2limits.3*
316%{_mandir}/man3/pcre2matching.3*
317%{_mandir}/man3/pcre2partial.3*
318%{_mandir}/man3/pcre2pattern.3*
319%{_mandir}/man3/pcre2perform.3*
320%{_mandir}/man3/pcre2posix.3*
321%{_mandir}/man3/pcre2sample.3*
322%{_mandir}/man3/pcre2serialize.3*
323%{_mandir}/man3/pcre2stack.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.0
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.13 seconds and 4 git commands to generate.