]> git.pld-linux.org Git - packages/pcre.git/blame - pcre.spec
- updated to 8.39
[packages/pcre.git] / pcre.spec
CommitLineData
f272ff1a
ER
1# TODO
2# - pcreposix subpackage?
3
3f8f4247 4# Conditional build:
2487be5a
JB
5%bcond_without pcre16 # 16-bit character support
6%bcond_without pcre32 # 32-bit character support
7%bcond_without static_libs # static libraries build
be58c0b9 8%bcond_without tests # don't perform "make check"
884e4ac3 9
15f97430 10Summary: Perl-Compatible Regular Expression library
f2bc0236
ER
11Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
12Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
74bd1d6b 13Name: pcre
b2c6bdc4 14Version: 8.39
0aa96480 15Release: 1
c5944087 16License: BSD (see LICENCE)
74bd1d6b 17Group: Libraries
d5cbbdbb 18Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
b2c6bdc4 19# Source0-md5: e3fca7650a0556a2647821679d81f585
7454b850 20Patch0: %{name}-pcreposix-glibc-conflict.patch
cba62653 21URL: http://www.pcre.org/
405ea4e9 22BuildRequires: autoconf >= 2.57
fc95eac7 23BuildRequires: automake
884e4ac3 24BuildRequires: bzip2-devel
405ea4e9 25BuildRequires: libstdc++-devel
45f14e02 26BuildRequires: libtool >= 2:2
884e4ac3
ER
27BuildRequires: readline-devel
28BuildRequires: zlib-devel
a3907a5b 29Obsoletes: libpcre0
405ea4e9 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15f97430 31
32%description
74bd1d6b 33PCRE stands for the Perl Compatible Regular Expression library. It
15f97430 34contains routines to match text against regular expressions similar to
c2e412f4 35Perl's. It also contains a POSIX compatibility library.
15f97430 36
e1eb8667
JR
37%description -l es.UTF-8
38A biblioteca PCRE é um set de funções que implementam expressões
39regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
40sua própria API nativa, bem como um set de funções wrapper para
41corresponder ao padrão POSIX de expressões regulares.
5689bc32 42
e1eb8667
JR
43%description -l pl.UTF-8
44PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
45regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
46tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
47Zawiera także bibliotekę kompatybilną z POSIX.
fc95eac7 48
e1eb8667
JR
49%description -l pt_BR.UTF-8
50A biblioteca PCRE é um conjunto de funções que implementam expressões
51regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
52sua própria API nativa, bem como um conjuntos de funções wrapper para
53corresponder ao padrão POSIX de expressões regulares.
5689bc32 54
74bd1d6b 55%package devel
56Summary: Perl-Compatible Regular Expression header files and development documentation
f2bc0236
ER
57Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre
58Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre
74bd1d6b 59Group: Development/Libraries
405ea4e9 60Requires: %{name} = %{version}-%{release}
a3907a5b 61Obsoletes: libpcre0-devel
15f97430 62
74bd1d6b 63%description devel
64Perl-Compatible Regular Expression header files and development
65documentation.
15f97430 66
e1eb8667
JR
67%description devel -l es.UTF-8
68A biblioteca PCRE é um set de funções que implementam expressões
69regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
70sua própria API nativa, bem como um set de funções wrapper para
71corresponder ao padrão POSIX de expressões regulares.
5689bc32 72
e1eb8667
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe i dokumentacja do bibliotek pcre.
74bd1d6b 75
e1eb8667
JR
76%description devel -l pt_BR.UTF-8
77A biblioteca PCRE é um conjunto de funções que implementam expressões
78regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
79sua própria API nativa, bem como um conjunto de funções wrapper para
80corresponder ao padrão POSIX de expressões regulares.
5689bc32 81
74bd1d6b 82%package static
83Summary: Perl-Compatible Regular Expression static libraries
f2bc0236
ER
84Summary(pl.UTF-8): Biblioteki statyczne pcre
85Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre
74bd1d6b 86Group: Development/Libraries
405ea4e9 87Requires: %{name}-devel = %{version}-%{release}
74bd1d6b 88
89%description static
c2e412f4 90Perl-Compatible Regular Expression library static libraries.
15f97430 91
e1eb8667
JR
92%description static -l es.UTF-8
93A biblioteca PCRE é um set de funções que implementam expressões
94regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
95sua própria API nativa, bem como um set de funções wrapper para
96corresponder ao padrão POSIX de expressões regulares.
5689bc32 97
e1eb8667 98%description static -l pl.UTF-8
74bd1d6b 99Biblioteki statyczne pcre.
15f97430 100
e1eb8667
JR
101%description static -l pt_BR.UTF-8
102A biblioteca PCRE é um conjunto de funções que implementam expressões
103regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
104sua própria API nativa, bem como um conjunto de funções wrapper para
105corresponder ao padrão POSIX de expressões regulares.
5689bc32 106
405ea4e9
JB
107%package cxx
108Summary: C++ wrapper to PCRE library
f2bc0236 109Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE
405ea4e9
JB
110Group: Libraries
111Requires: %{name} = %{version}-%{release}
112
113%description cxx
114C++ wrapper to PCRE library.
115
e1eb8667 116%description cxx -l pl.UTF-8
405ea4e9
JB
117Interfejs C++ do biblioteki PCRE.
118
119%package cxx-devel
120Summary: Header file for C++ wrapper to PCRE library
f2bc0236 121Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE
405ea4e9
JB
122Group: Development/Libraries
123Requires: %{name}-cxx = %{version}-%{release}
124Requires: %{name}-devel = %{version}-%{release}
125Requires: libstdc++-devel
126
127%description cxx-devel
128Header file for C++ wrapper to PCRE library.
129
e1eb8667
JR
130%description cxx-devel -l pl.UTF-8
131Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
405ea4e9
JB
132
133%package cxx-static
134Summary: Static version of pcrecpp library
f2bc0236 135Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp
405ea4e9
JB
136Group: Development/Libraries
137Requires: %{name}-cxx-devel = %{version}-%{release}
138
139%description cxx-static
140Static version of pcrecpp library.
141
e1eb8667 142%description cxx-static -l pl.UTF-8
405ea4e9
JB
143Statyczna wersja biblioteki pcrecpp.
144
2487be5a
JB
145%package -n pcre16
146Summary: PCRE library with 16-bit character support
147Summary(pl.UTF-8): Biblioteka PCRE z obsługą znaków 16-bitowych
148Group: Libraries
149
150%description -n pcre16
151PCRE (Perl compatible regular expressions) C library with 16-bit
152character support.
153
154%description -n pcre16 -l pl.UTF-8
155Biblioteka C PCRE (perlowych wyrażeń regularnych) z obsługą znaków
15616-bitowych.
157
158%package -n pcre16-devel
159Summary: Development files for PCRE library with 16-bit character support
160Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE z obsługą znaków 16-bitowych
161Group: Development/Libraries
162# base devel required for (common) headers and man page contents;
163# pulling base pcre doesn't hurt, as it's already required by some basic packages
164Requires: %{name}-devel = %{version}-%{release}
165Requires: pcre16 = %{version}-%{release}
166
167%description -n pcre16-devel
168Development files for PCRE library with 16-bit character support.
169
170%description -n pcre16-devel -l pl.UTF-8
171Pliki programistyczne biblioteki PCRE z obsługą znaków 16-bitowych.
172
173%package -n pcre16-static
174Summary: Static PCRE library with 16-bit character support
175Summary(pl.UTF-8): Biblioteka statyczna PCRE z obsługą znaków 16-bitowych
176Group: Development/Libraries
177Requires: pcre16-devel = %{version}-%{release}
178
179%description -n pcre16-static
180Static PCRE library with 16-bit character support.
181
182%description -n pcre16-static -l pl.UTF-8
183Biblioteka statyczna PCRE z obsługą znaków 16-bitowych.
184
185%package -n pcre32
186Summary: PCRE library with 32-bit character support
187Summary(pl.UTF-8): Biblioteka PCRE z obsługą znaków 32-bitowych
188Group: Libraries
189
190%description -n pcre32
191PCRE (Perl compatible regular expressions) C library with 32-bit
192character support.
193
194%description -n pcre32 -l pl.UTF-8
195Biblioteka C PCRE (perlowych wyrażeń regularnych) z obsługą znaków
19632-bitowych.
197
198%package -n pcre32-devel
199Summary: Development files for PCRE library with 32-bit character support
200Summary(pl.UTF-8): Pliki programistyczne biblioteki PCRE z obsługą znaków 32-bitowych
201Group: Development/Libraries
202# base devel required for (common) headers and man page contents;
203# pulling base pcre doesn't hurt, as it's already required by some basic packages
204Requires: %{name}-devel = %{version}-%{release}
205Requires: pcre32 = %{version}-%{release}
206
207%description -n pcre32-devel
208Development files for PCRE library with 32-bit character support.
209
210%description -n pcre32-devel -l pl.UTF-8
211Pliki programistyczne biblioteki PCRE z obsługą znaków 32-bitowych.
212
213%package -n pcre32-static
214Summary: Static PCRE library with 32-bit character support
215Summary(pl.UTF-8): Biblioteka statyczna PCRE z obsługą znaków 32-bitowych
216Group: Development/Libraries
217Requires: pcre32-devel = %{version}-%{release}
218
219%description -n pcre32-static
220Static PCRE library with 32-bit character support.
221
222%description -n pcre32-static -l pl.UTF-8
223Biblioteka statyczna PCRE z obsługą znaków 32-bitowych.
224
8a5a0606 225%package -n pcregrep
74bd1d6b 226Summary: Grep using Perl Compatible Regular Expressions
f2bc0236 227Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
552a6252 228Group: Applications/Text
2487be5a 229Requires: %{name} = %{version}-%{release}
8a5a0606 230Obsoletes: pgrep
74bd1d6b 231
8a5a0606 232%description -n pcregrep
74bd1d6b 233pgrep is a grep workalike which uses perl-style regular expressions
234instead of POSIX regular expressions.
235
e1eb8667
JR
236%description -n pcregrep -l pl.UTF-8
237pgrep jest programem działającym podobnie do grepa, ale używających
238perlowych wyrażeń regularnych, a nie posiksowych.
fc95eac7 239
006d0fe7 240%package -n pcretest
2487be5a 241Summary: A program for testing Perl-compatible regular expressions
5bcd73ce 242Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regularnych
006d0fe7 243Group: Applications/Text
2487be5a
JB
244Requires: %{name} = %{version}-%{release}
245%{?with_pcre16:Requires: pcre16 = %{version}-%{release}}
246%{?with_pcre32:Requires: pcre32 = %{version}-%{release}}
006d0fe7
AG
247
248%description -n pcretest
5bcd73ce 249pcretest is a program which you can use to test regular expression.
006d0fe7 250
e1eb8667 251%description -n pcretest -l pl.UTF-8
5bcd73ce
JB
252pcretest jest programem, za pomocą którego można sprawdzić poprawność
253wyrażenia regularnego.
006d0fe7 254
3db59d4f 255%package doc-html
d2b5d592 256Summary: Documentation for PCRE in HTML format
f2bc0236 257Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML
3db59d4f 258Group: Applications/Text
259
260%description doc-html
d2b5d592 261Documentation for PCRE in HTML format.
3db59d4f 262
e1eb8667 263%description doc-html -l pl.UTF-8
d2b5d592 264Dokumentacja dla PCRE w formacie HTML.
3db59d4f 265
74bd1d6b 266%prep
267%setup -q
7454b850 268%patch0 -p1
15f97430 269
270%build
2f21abf2 271%{__libtoolize}
f40a4819 272%{__aclocal} -I m4
cef579c6 273%{__autoconf}
f759fb19
JB
274%{__autoheader}
275%{__automake}
74bd1d6b 276%configure \
53bcd14b 277 CXXLDFLAGS="%{rpmldflags}" \
d053ddf7 278 --disable-silent-rules \
f7c024bd 279 %{!?with_static_libs:--disable-static} \
11e092cd 280%ifnarch x32
c5e559a4 281 --enable-jit \
11e092cd 282%endif
9e38bcbc 283 %{?with_pcre16:--enable-pcre16} \
2487be5a 284 %{?with_pcre32:--enable-pcre32} \
da07eef6 285 --enable-pcregrep-libz \
286 --enable-pcregrep-libbz2 \
1a105e6c 287 --enable-pcretest-libreadline \
14f80290
JB
288 --enable-unicode-properties \
289 --enable-utf8
e11fd783 290
dc40b652 291%{__make}
15f97430 292
be58c0b9 293%if %{with tests}
aa8b242d
AM
294# tests need big stack
295ulimit -s 32768
edfd91c3 296%{__make} -j1 check
be58c0b9
JB
297%endif
298
15f97430 299%install
74bd1d6b 300rm -rf $RPM_BUILD_ROOT
1f0d4992 301install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
74bd1d6b 302
d2b5d592
JB
303%{__make} install \
304 DESTDIR=$RPM_BUILD_ROOT
74bd1d6b 305
f9955a89
JB
306mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.* $RPM_BUILD_ROOT/%{_lib}
307mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.* $RPM_BUILD_ROOT/%{_lib}
ceb8d073 308
f9955a89
JB
309ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcre.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcre.so
310ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcreposix.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so
518d2d3e 311
f272ff1a 312cp -p pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
2a888af0 313
f759fb19
JB
314rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
315
15f97430 316%clean
317rm -rf $RPM_BUILD_ROOT
318
fc95eac7
JB
319%post -p /sbin/ldconfig
320%postun -p /sbin/ldconfig
321
405ea4e9
JB
322%post cxx -p /sbin/ldconfig
323%postun cxx -p /sbin/ldconfig
324
187b24cd
JB
325%post -n pcre16 -p /sbin/ldconfig
326%postun -n pcre16 -p /sbin/ldconfig
2487be5a 327
187b24cd
JB
328%post -n pcre32 -p /sbin/ldconfig
329%postun -n pcre32 -p /sbin/ldconfig
2487be5a 330
15f97430 331%files
74bd1d6b 332%defattr(644,root,root,755)
2487be5a 333%doc AUTHORS ChangeLog LICENCE NEWS README
f9955a89 334%attr(755,root,root) /%{_lib}/libpcre.so.*.*.*
9e38bcbc 335%attr(755,root,root) %ghost /%{_lib}/libpcre.so.1
f9955a89
JB
336%attr(755,root,root) /%{_lib}/libpcreposix.so.*.*.*
337%attr(755,root,root) %ghost /%{_lib}/libpcreposix.so.0
74bd1d6b 338
339%files devel
340%defattr(644,root,root,755)
74bd1d6b 341%attr(755,root,root) %{_bindir}/pcre-config
405ea4e9
JB
342%attr(755,root,root) %{_libdir}/libpcre.so
343%attr(755,root,root) %{_libdir}/libpcreposix.so
344%{_libdir}/libpcre.la
345%{_libdir}/libpcreposix.la
346%{_includedir}/pcre.h
347%{_includedir}/pcreposix.h
a0c12252 348%{_pkgconfigdir}/libpcre.pc
f7c024bd 349%{_pkgconfigdir}/libpcreposix.pc
f759fb19 350%{_mandir}/man1/pcre-config.1*
2487be5a
JB
351%{_mandir}/man3/pcre.3*
352%{_mandir}/man3/pcre_*.3*
353%{_mandir}/man3/pcreapi.3*
354%{_mandir}/man3/pcrebuild.3*
355%{_mandir}/man3/pcrecallout.3*
187b24cd 356%{_mandir}/man3/pcrecompat.3*
2487be5a
JB
357%{_mandir}/man3/pcredemo.3*
358%{_mandir}/man3/pcrejit.3*
359%{_mandir}/man3/pcrelimits.3*
360%{_mandir}/man3/pcrematching.3*
361%{_mandir}/man3/pcrepartial.3*
362%{_mandir}/man3/pcrepattern.3*
363%{_mandir}/man3/pcreperform.3*
364%{_mandir}/man3/pcreposix.3*
365%{_mandir}/man3/pcreprecompile.3*
366%{_mandir}/man3/pcresample.3*
367%{_mandir}/man3/pcrestack.3*
368%{_mandir}/man3/pcresyntax.3*
369%{_mandir}/man3/pcreunicode.3*
405ea4e9 370%{_examplesdir}/%{name}-%{version}
74bd1d6b 371
3f8f4247 372%if %{with static_libs}
74bd1d6b 373%files static
7e9222c8 374%defattr(644,root,root,755)
405ea4e9
JB
375%{_libdir}/libpcre.a
376%{_libdir}/libpcreposix.a
3f8f4247 377%endif
405ea4e9
JB
378
379%files cxx
380%defattr(644,root,root,755)
381%attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
f9955a89 382%attr(755,root,root) %ghost %{_libdir}/libpcrecpp.so.0
405ea4e9
JB
383
384%files cxx-devel
385%defattr(644,root,root,755)
386%attr(755,root,root) %{_libdir}/libpcrecpp.so
387%{_libdir}/libpcrecpp.la
388%{_includedir}/pcrecpp.h
389%{_includedir}/pcre_scanner.h
390%{_includedir}/pcre_stringpiece.h
387ec8b9 391%{_includedir}/pcrecpparg.h
45516b28 392%{_pkgconfigdir}/libpcrecpp.pc
405ea4e9
JB
393%{_mandir}/man3/pcrecpp.3*
394
3f8f4247 395%if %{with static_libs}
405ea4e9
JB
396%files cxx-static
397%defattr(644,root,root,755)
398%{_libdir}/libpcrecpp.a
3f8f4247 399%endif
15f97430 400
2487be5a
JB
401%if %{with pcre16}
402%files -n pcre16
403%defattr(644,root,root,755)
404%attr(755,root,root) %{_libdir}/libpcre16.so.*.*.*
405%attr(755,root,root) %ghost %{_libdir}/libpcre16.so.0
406
407%files -n pcre16-devel
408%defattr(644,root,root,755)
409%attr(755,root,root) %{_libdir}/libpcre16.so
410%{_libdir}/libpcre16.la
411%{_pkgconfigdir}/libpcre16.pc
412%{_mandir}/man3/pcre16.3*
413%{_mandir}/man3/pcre16_*.3*
414
415%if %{with static_libs}
416%files -n pcre16-static
417%defattr(644,root,root,755)
418%{_libdir}/libpcre16.a
419%endif
420%endif
421
422%if %{with pcre32}
423%files -n pcre32
424%defattr(644,root,root,755)
425%attr(755,root,root) %{_libdir}/libpcre32.so.*.*.*
426%attr(755,root,root) %ghost %{_libdir}/libpcre32.so.0
427
428%files -n pcre32-devel
429%defattr(644,root,root,755)
430%attr(755,root,root) %{_libdir}/libpcre32.so
431%{_libdir}/libpcre32.la
432%{_pkgconfigdir}/libpcre32.pc
433%{_mandir}/man3/pcre32.3*
434%{_mandir}/man3/pcre32_*.3*
435
436%if %{with static_libs}
437%files -n pcre32-static
438%defattr(644,root,root,755)
439%{_libdir}/libpcre32.a
440%endif
441%endif
442
8a5a0606 443%files -n pcregrep
74bd1d6b 444%defattr(644,root,root,755)
8a5a0606 445%attr(755,root,root) %{_bindir}/pcregrep
446%{_mandir}/man1/pcregrep.1*
006d0fe7
AG
447
448%files -n pcretest
449%defattr(644,root,root,755)
450%attr(755,root,root) %{_bindir}/pcretest
451%{_mandir}/man1/pcretest.1*
3db59d4f 452
453%files doc-html
454%defattr(644,root,root,755)
455%doc doc/html/*
This page took 0.106547 seconds and 4 git commands to generate.