]> git.pld-linux.org Git - packages/pcre2.git/blob - pcre2.spec
- updated Source0 URL
[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.33
14 Release:        1
15 License:        BSD (see LICENCE)
16 Group:          Libraries
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)
28
29 %description
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
32 new API.
33
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.
38
39 %package common-devel
40 Summary:        Header files for PCRE2 libraries
41 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek PCRE2
42 Group:          Development/Libraries
43
44 %description common-devel
45 Header files for PCRE2 libraries.
46
47 %description common-devel -l pl.UTF-8
48 Pliki nagłówkowe bibliotek PCRE2.
49
50 %package 8
51 Summary:        PCRE2 library with 8-bit character support
52 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 8-bitowych
53 Group:          Libraries
54
55 %description 8
56 PCRE2 (Perl compatible regular expressions) C library with 8-bit
57 character support.
58
59 %description 8 -l pl.UTF-8
60 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
61 8-bitowych.
62
63 %package 8-devel
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}
69
70 %description 8-devel
71 Development files for PCRE2 library with 8-bit character support.
72
73 %description 8-devel -l pl.UTF-8
74 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 8-bitowych.
75
76 %package 8-static
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}
81
82 %description 8-static
83 Static PCRE2 library with 8-bit character support.
84
85 %description 8-static -l pl.UTF-8
86 Biblioteka statyczna PCRE2 z obsługą znaków 8-bitowych.
87
88 %package posix
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
91 Group:          Libraries
92 Requires:       %{name}-8 = %{version}-%{release}
93
94 %description posix
95 POSIX compatible inferface to PCRE2 library with 8-bit character
96 support.
97
98 %description posix -l pl.UTF-8
99 Zgodny z POSIX interfejs do biblioteki PCRE2 z obsługą znaków
100 8-bitowych.
101
102 %package posix-devel
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}
108
109 %description posix-devel
110 Development files for PCRE2 POSIX.
111
112 %description posix-devel -l pl.UTF-8
113 Pliki programistyczne biblioteki PCRE2 POSIX.
114
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}
120
121 %description posix-static
122 Static PCRE2 POSIX library.
123
124 %description posix-static -l pl.UTF-8
125 Biblioteka statyczna PCRE2 POSIX.
126
127 %package 16
128 Summary:        PCRE2 library with 16-bit character support
129 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 16-bitowych
130 Group:          Libraries
131
132 %description 16
133 PCRE2 (Perl compatible regular expressions) C library with 16-bit
134 character support.
135
136 %description 16 -l pl.UTF-8
137 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
138 16-bitowych.
139
140 %package 16-devel
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}
146
147 %description 16-devel
148 Development files for PCRE2 library with 16-bit character support.
149
150 %description 16-devel -l pl.UTF-8
151 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 16-bitowych.
152
153 %package 16-static
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}
158
159 %description 16-static
160 Static PCRE2 library with 16-bit character support.
161
162 %description 16-static -l pl.UTF-8
163 Biblioteka statyczna PCRE2 z obsługą znaków 16-bitowych.
164
165 %package 32
166 Summary:        PCRE2 library with 32-bit character support
167 Summary(pl.UTF-8):      Biblioteka PCRE2 z obsługą znaków 32-bitowych
168 Group:          Libraries
169
170 %description 32
171 PCRE2 (Perl compatible regular expressions) C library with 32-bit
172 character support.
173
174 %description 32 -l pl.UTF-8
175 Biblioteka C PCRE2 (perlowych wyrażeń regularnych) z obsługą znaków
176 32-bitowych.
177
178 %package 32-devel
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}
184
185 %description 32-devel
186 Development files for PCRE2 library with 32-bit character support.
187
188 %description 32-devel -l pl.UTF-8
189 Pliki programistyczne biblioteki PCRE2 z obsługą znaków 32-bitowych.
190
191 %package 32-static
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}
196
197 %description 32-static
198 Static PCRE2 library with 32-bit character support.
199
200 %description 32-static -l pl.UTF-8
201 Biblioteka statyczna PCRE2 z obsługą znaków 32-bitowych.
202
203 %package grep
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}
208
209 %description grep
210 pgrep is a grep workalike which uses perl-style regular expressions
211 instead of POSIX regular expressions.
212
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.
216
217 %package test
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}}
224
225 %description test
226 pcretest is a program which you can use to test regular expression.
227
228 %description test -l pl.UTF-8
229 pcretest jest programem, za pomocą którego można sprawdzić poprawność
230 wyrażenia regularnego.
231
232 %package doc-html
233 Summary:        Documentation for PCRE2 in HTML format
234 Summary(pl.UTF-8):      Dokumentacja dla PCRE2 w formacie HTML
235 Group:          Applications/Text
236
237 %description doc-html
238 Documentation for PCRE2 in HTML format.
239
240 %description doc-html -l pl.UTF-8
241 Dokumentacja dla PCRE2 w formacie HTML.
242
243 %prep
244 %setup -q
245
246 %build
247 %{__libtoolize}
248 %{__aclocal} -I m4
249 %{__autoconf}
250 %{__autoheader}
251 %{__automake}
252 %configure \
253         --disable-silent-rules \
254         %{!?with_static_libs:--disable-static} \
255 %ifnarch x32
256         --enable-jit \
257 %endif
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
264
265 %{__make}
266
267 %if %{with tests}
268 # tests need big stack
269 #ulimit -s 32768
270 %{__make} -j1 check
271 %endif
272
273 %install
274 rm -rf $RPM_BUILD_ROOT
275
276 %{__make} install \
277         DESTDIR=$RPM_BUILD_ROOT
278
279 # obsoleted by pkg-config
280 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpcre2*.la
281 # packaged as %doc
282 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pcre2
283
284 %clean
285 rm -rf $RPM_BUILD_ROOT
286
287 %post   8 -p /sbin/ldconfig
288 %postun 8 -p /sbin/ldconfig
289
290 %post   posix -p /sbin/ldconfig
291 %postun posix -p /sbin/ldconfig
292
293 %post   16 -p /sbin/ldconfig
294 %postun 16 -p /sbin/ldconfig
295
296 %post   32 -p /sbin/ldconfig
297 %postun 32 -p /sbin/ldconfig
298
299 %files common-devel
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*
324
325 %if %{with pcre8}
326 %files 8
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
330
331 %files 8-devel
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libpcre2-8.so
334 %{_pkgconfigdir}/libpcre2-8.pc
335
336 %if %{with static_libs}
337 %files 8-static
338 %defattr(644,root,root,755)
339 %{_libdir}/libpcre2-8.a
340 %endif
341
342 %files posix
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
346
347 %files posix-devel
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libpcre2-posix.so
350 %{_includedir}/pcre2posix.h
351 %{_pkgconfigdir}/libpcre2-posix.pc
352
353 %if %{with static_libs}
354 %files posix-static
355 %defattr(644,root,root,755)
356 %{_libdir}/libpcre2-posix.a
357 %endif
358 %endif
359
360 %if %{with pcre16}
361 %files 16
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
365
366 %files 16-devel
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libpcre2-16.so
369 %{_pkgconfigdir}/libpcre2-16.pc
370
371 %if %{with static_libs}
372 %files 16-static
373 %defattr(644,root,root,755)
374 %{_libdir}/libpcre2-16.a
375 %endif
376 %endif
377
378 %if %{with pcre32}
379 %files 32
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
383
384 %files 32-devel
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libpcre2-32.so
387 %{_pkgconfigdir}/libpcre2-32.pc
388
389 %if %{with static_libs}
390 %files 32-static
391 %defattr(644,root,root,755)
392 %{_libdir}/libpcre2-32.a
393 %endif
394 %endif
395
396 %if %{with pcre8}
397 %files grep
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/pcre2grep
400 %{_mandir}/man1/pcre2grep.1*
401 %endif
402
403 %files test
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_bindir}/pcre2test
406 %{_mandir}/man1/pcre2test.1*
407
408 %files doc-html
409 %defattr(644,root,root,755)
410 %doc doc/html/*
This page took 0.113872 seconds and 3 git commands to generate.