3 %bcond_without static_libs # don't build static libraries
4 %bcond_without tests # don't perform "make check"
6 Summary: Perl-Compatible Regular Expression library
7 Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
8 Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
12 License: BSD (see LICENCE)
14 Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
15 # Source0-md5: 141132d6af14dccc7b08fa797e4fd441
16 Patch0: %{name}-pcreposix-glibc-conflict.patch
17 Patch1: %{name}-link.patch
18 URL: http://www.pcre.org/
19 BuildRequires: autoconf >= 2.57
20 BuildRequires: automake
21 BuildRequires: bzip2-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:1.5
24 BuildRequires: readline-devel
25 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 PCRE stands for the Perl Compatible Regular Expression library. It
31 contains routines to match text against regular expressions similar to
32 Perl's. It also contains a POSIX compatibility library.
34 %description -l es.UTF-8
35 A biblioteca PCRE é um set de funções que implementam expressões
36 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
37 sua própria API nativa, bem como um set de funções wrapper para
38 corresponder ao padrão POSIX de expressões regulares.
40 %description -l pl.UTF-8
41 PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
42 regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
43 tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
44 Zawiera także bibliotekę kompatybilną z POSIX.
46 %description -l pt_BR.UTF-8
47 A biblioteca PCRE é um conjunto de funções que implementam expressões
48 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
49 sua própria API nativa, bem como um conjuntos de funções wrapper para
50 corresponder ao padrão POSIX de expressões regulares.
53 Summary: Perl-Compatible Regular Expression header files and development documentation
54 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre
55 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Obsoletes: libpcre0-devel
61 Perl-Compatible Regular Expression header files and development
64 %description devel -l es.UTF-8
65 A biblioteca PCRE é um set de funções que implementam expressões
66 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
67 sua própria API nativa, bem como um set de funções wrapper para
68 corresponder ao padrão POSIX de expressões regulares.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe i dokumentacja do bibliotek pcre.
73 %description devel -l pt_BR.UTF-8
74 A biblioteca PCRE é um conjunto de funções que implementam expressões
75 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
76 sua própria API nativa, bem como um conjunto de funções wrapper para
77 corresponder ao padrão POSIX de expressões regulares.
80 Summary: Perl-Compatible Regular Expression static libraries
81 Summary(pl.UTF-8): Biblioteki statyczne pcre
82 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 Perl-Compatible Regular Expression library static libraries.
89 %description static -l es.UTF-8
90 A biblioteca PCRE é um set de funções que implementam expressões
91 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
92 sua própria API nativa, bem como um set de funções wrapper para
93 corresponder ao padrão POSIX de expressões regulares.
95 %description static -l pl.UTF-8
96 Biblioteki statyczne pcre.
98 %description static -l pt_BR.UTF-8
99 A biblioteca PCRE é um conjunto de funções que implementam expressões
100 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
101 sua própria API nativa, bem como um conjunto de funções wrapper para
102 corresponder ao padrão POSIX de expressões regulares.
105 Summary: C++ wrapper to PCRE library
106 Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE
108 Requires: %{name} = %{version}-%{release}
111 C++ wrapper to PCRE library.
113 %description cxx -l pl.UTF-8
114 Interfejs C++ do biblioteki PCRE.
117 Summary: Header file for C++ wrapper to PCRE library
118 Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE
119 Group: Development/Libraries
120 Requires: %{name}-cxx = %{version}-%{release}
121 Requires: %{name}-devel = %{version}-%{release}
122 Requires: libstdc++-devel
124 %description cxx-devel
125 Header file for C++ wrapper to PCRE library.
127 %description cxx-devel -l pl.UTF-8
128 Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
131 Summary: Static version of pcrecpp library
132 Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp
133 Group: Development/Libraries
134 Requires: %{name}-cxx-devel = %{version}-%{release}
136 %description cxx-static
137 Static version of pcrecpp library.
139 %description cxx-static -l pl.UTF-8
140 Statyczna wersja biblioteki pcrecpp.
143 Summary: Grep using Perl Compatible Regular Expressions
144 Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
145 Group: Applications/Text
148 %description -n pcregrep
149 pgrep is a grep workalike which uses perl-style regular expressions
150 instead of POSIX regular expressions.
152 %description -n pcregrep -l pl.UTF-8
153 pgrep jest programem działającym podobnie do grepa, ale używających
154 perlowych wyrażeń regularnych, a nie posiksowych.
157 Summary: A program for testing Perl-comaptible regular expressions
158 Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regualarnych
159 Group: Applications/Text
161 %description -n pcretest
162 pcretest is a program which you can use to test regular expression
164 %description -n pcretest -l pl.UTF-8
165 pcretest jest programem za pomocą można sprawdzić poprawność wyrażenia regularnego
168 Summary: Documentation for PCRE in HTML format
169 Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML
170 Group: Applications/Text
172 %description doc-html
173 Documentation for PCRE in HTML format.
175 %description doc-html -l pl.UTF-8
176 Dokumentacja dla PCRE w formacie HTML.
190 CXXLDFLAGS="%{rpmldflags}" \
191 %{!?with_static_libs:--enable-static=no} \
193 --enable-unicode-properties \
194 --enable-pcregrep-libz \
195 --enable-pcregrep-libbz2 \
196 --enable-pcretest-libreadline
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
209 DESTDIR=$RPM_BUILD_ROOT
211 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.* $RPM_BUILD_ROOT/%{_lib}
212 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.* $RPM_BUILD_ROOT/%{_lib}
214 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcre.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcre.so
215 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcreposix.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so
217 install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
219 rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
222 rm -rf $RPM_BUILD_ROOT
224 %post -p /sbin/ldconfig
225 %postun -p /sbin/ldconfig
227 %post cxx -p /sbin/ldconfig
228 %postun cxx -p /sbin/ldconfig
231 %defattr(644,root,root,755)
232 %doc README NEWS LICENCE ChangeLog
233 %attr(755,root,root) /%{_lib}/libpcre.so.*.*.*
234 %attr(755,root,root) %ghost /%{_lib}/libpcre.so.0
235 %attr(755,root,root) /%{_lib}/libpcreposix.so.*.*.*
236 %attr(755,root,root) %ghost /%{_lib}/libpcreposix.so.0
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/pcre-config
241 %attr(755,root,root) %{_libdir}/libpcre.so
242 %attr(755,root,root) %{_libdir}/libpcreposix.so
243 %{_libdir}/libpcre.la
244 %{_libdir}/libpcreposix.la
245 %{_includedir}/pcre.h
246 %{_includedir}/pcreposix.h
247 %{_pkgconfigdir}/libpcre.pc
248 %{_mandir}/man1/pcre-config.1*
249 %{_mandir}/man3/pcre*.3*
250 %exclude %{_mandir}/man3/pcrecpp.3*
251 %{_examplesdir}/%{name}-%{version}
253 %if %{with static_libs}
255 %defattr(644,root,root,755)
257 %{_libdir}/libpcreposix.a
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
263 %attr(755,root,root) %ghost %{_libdir}/libpcrecpp.so.0
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libpcrecpp.so
268 %{_libdir}/libpcrecpp.la
269 %{_includedir}/pcrecpp.h
270 %{_includedir}/pcre_scanner.h
271 %{_includedir}/pcre_stringpiece.h
272 %{_includedir}/pcrecpparg.h
273 %{_pkgconfigdir}/libpcrecpp.pc
274 %{_mandir}/man3/pcrecpp.3*
276 %if %{with static_libs}
278 %defattr(644,root,root,755)
279 %{_libdir}/libpcrecpp.a
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_bindir}/pcregrep
285 %{_mandir}/man1/pcregrep.1*
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_bindir}/pcretest
290 %{_mandir}/man1/pcretest.1*
293 %defattr(644,root,root,755)