3 %bcond_without static_libs # don't build static libraries
5 Summary: Perl-Compatible Regular Expression library
6 Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
7 Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
11 License: BSD (see LICENCE)
13 Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
14 # Source0-md5: b97e3bb84bd665e0fbb7a90344d65a43
15 URL: http://www.pcre.org/
16 BuildRequires: autoconf >= 2.57
17 BuildRequires: automake
18 BuildRequires: libstdc++-devel
19 BuildRequires: libtool >= 2:1.5
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 PCRE stands for the Perl Compatible Regular Expression library. It
25 contains routines to match text against regular expressions similar to
26 Perl's. It also contains a POSIX compatibility library.
28 %description -l es.UTF-8
29 A biblioteca PCRE é um set de funções que implementam expressões
30 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
31 sua própria API nativa, bem como um set de funções wrapper para
32 corresponder ao padrão POSIX de expressões regulares.
34 %description -l pl.UTF-8
35 PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
36 regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
37 tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
38 Zawiera także bibliotekę kompatybilną z POSIX.
40 %description -l pt_BR.UTF-8
41 A biblioteca PCRE é um conjunto de funções que implementam expressões
42 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
43 sua própria API nativa, bem como um conjuntos de funções wrapper para
44 corresponder ao padrão POSIX de expressões regulares.
47 Summary: Perl-Compatible Regular Expression header files and development documentation
48 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre
49 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Obsoletes: libpcre0-devel
55 Perl-Compatible Regular Expression header files and development
58 %description devel -l es.UTF-8
59 A biblioteca PCRE é um set de funções que implementam expressões
60 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
61 sua própria API nativa, bem como um set de funções wrapper para
62 corresponder ao padrão POSIX de expressões regulares.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe i dokumentacja do bibliotek pcre.
67 %description devel -l pt_BR.UTF-8
68 A biblioteca PCRE é um conjunto de funções que implementam expressões
69 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
70 sua própria API nativa, bem como um conjunto de funções wrapper para
71 corresponder ao padrão POSIX de expressões regulares.
74 Summary: Perl-Compatible Regular Expression static libraries
75 Summary(pl.UTF-8): Biblioteki statyczne pcre
76 Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 Perl-Compatible Regular Expression library static libraries.
83 %description static -l es.UTF-8
84 A biblioteca PCRE é um set de funções que implementam expressões
85 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
86 sua própria API nativa, bem como um set de funções wrapper para
87 corresponder ao padrão POSIX de expressões regulares.
89 %description static -l pl.UTF-8
90 Biblioteki statyczne pcre.
92 %description static -l pt_BR.UTF-8
93 A biblioteca PCRE é um conjunto de funções que implementam expressões
94 regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
95 sua própria API nativa, bem como um conjunto de funções wrapper para
96 corresponder ao padrão POSIX de expressões regulares.
99 Summary: C++ wrapper to PCRE library
100 Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE
102 Requires: %{name} = %{version}-%{release}
105 C++ wrapper to PCRE library.
107 %description cxx -l pl.UTF-8
108 Interfejs C++ do biblioteki PCRE.
111 Summary: Header file for C++ wrapper to PCRE library
112 Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE
113 Group: Development/Libraries
114 Requires: %{name}-cxx = %{version}-%{release}
115 Requires: %{name}-devel = %{version}-%{release}
116 Requires: libstdc++-devel
118 %description cxx-devel
119 Header file for C++ wrapper to PCRE library.
121 %description cxx-devel -l pl.UTF-8
122 Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
125 Summary: Static version of pcrecpp library
126 Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp
127 Group: Development/Libraries
128 Requires: %{name}-cxx-devel = %{version}-%{release}
130 %description cxx-static
131 Static version of pcrecpp library.
133 %description cxx-static -l pl.UTF-8
134 Statyczna wersja biblioteki pcrecpp.
137 Summary: Grep using Perl Compatible Regular Expressions
138 Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
139 Group: Applications/Text
142 %description -n pcregrep
143 pgrep is a grep workalike which uses perl-style regular expressions
144 instead of POSIX regular expressions.
146 %description -n pcregrep -l pl.UTF-8
147 pgrep jest programem działającym podobnie do grepa, ale używających
148 perlowych wyrażeń regularnych, a nie posiksowych.
151 Summary: A program for testing Perl-comaptible regular expressions
152 Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regualarnych
153 Group: Applications/Text
155 %description -n pcretest
156 pcretest is a program which you can use to test regular expression
158 %description -n pcretest -l pl.UTF-8
159 pcretest jest programem za pomocą można sprawdzić poprawność wyrażenia regularnego
162 Summary: Documentation for PCRE in HTML format
163 Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML
164 Group: Applications/Text
166 %description doc-html
167 Documentation for PCRE in HTML format.
169 %description doc-html -l pl.UTF-8
170 Dokumentacja dla PCRE w formacie HTML.
180 CXXLDFLAGS="%{rpmldflags}" \
181 %{!?with_static_libs:--enable-static=no} \
183 --enable-unicode-properties
188 rm -rf $RPM_BUILD_ROOT
189 install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
192 DESTDIR=$RPM_BUILD_ROOT
194 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.*.* $RPM_BUILD_ROOT/%{_lib}
195 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.*.* $RPM_BUILD_ROOT/%{_lib}
197 cd $RPM_BUILD_ROOT%{_libdir}
198 ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcre.so.*.*.*` libpcre.so
199 ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcreposix.so.*.*.*` libpcreposix.so
202 install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
205 rm -rf $RPM_BUILD_ROOT
207 %post -p /sbin/ldconfig
208 %postun -p /sbin/ldconfig
210 %post cxx -p /sbin/ldconfig
211 %postun cxx -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %doc README NEWS LICENCE ChangeLog
216 %attr(755,root,root) /%{_lib}/libpcre.so.*.*
217 %attr(755,root,root) /%{_lib}/libpcreposix.so.*.*
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/pcre-config
222 %attr(755,root,root) %{_libdir}/libpcre.so
223 %attr(755,root,root) %{_libdir}/libpcreposix.so
224 %{_libdir}/libpcre.la
225 %{_libdir}/libpcreposix.la
226 %{_includedir}/pcre.h
227 %{_includedir}/pcreposix.h
228 %{_pkgconfigdir}/libpcre.pc
230 %exclude %{_mandir}/man3/pcrecpp.3*
231 %{_examplesdir}/%{name}-%{version}
233 %if %{with static_libs}
235 %defattr(644,root,root,755)
237 %{_libdir}/libpcreposix.a
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libpcrecpp.so
247 %{_libdir}/libpcrecpp.la
248 %{_includedir}/pcrecpp.h
249 %{_includedir}/pcre_scanner.h
250 %{_includedir}/pcre_stringpiece.h
251 %{_includedir}/pcrecpparg.h
252 %{_pkgconfigdir}/libpcrecpp.pc
253 %{_mandir}/man3/pcrecpp.3*
255 %if %{with static_libs}
257 %defattr(644,root,root,755)
258 %{_libdir}/libpcrecpp.a
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_bindir}/pcregrep
264 %{_mandir}/man1/pcregrep.1*
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/pcretest
269 %{_mandir}/man1/pcretest.1*
272 %defattr(644,root,root,755)