]>
Commit | Line | Data |
---|---|---|
3f8f4247 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
15f97430 | 5 | Summary: Perl-Compatible Regular Expression library |
f2bc0236 ER |
6 | Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych |
7 | Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão | |
74bd1d6b | 8 | Name: pcre |
f759fb19 JB |
9 | Version: 7.1 |
10 | Release: 1 | |
c5944087 | 11 | License: BSD (see LICENCE) |
74bd1d6b | 12 | Group: Libraries |
d5cbbdbb | 13 | Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2 |
f759fb19 | 14 | # Source0-md5: c678550aaf064a17bb4bb6ea36dd6d88 |
cba62653 | 15 | URL: http://www.pcre.org/ |
405ea4e9 | 16 | BuildRequires: autoconf >= 2.57 |
fc95eac7 | 17 | BuildRequires: automake |
405ea4e9 JB |
18 | BuildRequires: libstdc++-devel |
19 | BuildRequires: libtool >= 2:1.5 | |
a3907a5b | 20 | Obsoletes: libpcre0 |
405ea4e9 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15f97430 | 22 | |
23 | %description | |
74bd1d6b | 24 | PCRE stands for the Perl Compatible Regular Expression library. It |
15f97430 | 25 | contains routines to match text against regular expressions similar to |
c2e412f4 | 26 | Perl's. It also contains a POSIX compatibility library. |
15f97430 | 27 | |
e1eb8667 JR |
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. | |
5689bc32 | 33 | |
e1eb8667 JR |
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. | |
fc95eac7 | 39 | |
e1eb8667 JR |
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. | |
5689bc32 | 45 | |
74bd1d6b | 46 | %package devel |
47 | Summary: Perl-Compatible Regular Expression header files and development documentation | |
f2bc0236 ER |
48 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre |
49 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre | |
74bd1d6b | 50 | Group: Development/Libraries |
405ea4e9 | 51 | Requires: %{name} = %{version}-%{release} |
a3907a5b | 52 | Obsoletes: libpcre0-devel |
15f97430 | 53 | |
74bd1d6b | 54 | %description devel |
55 | Perl-Compatible Regular Expression header files and development | |
56 | documentation. | |
15f97430 | 57 | |
e1eb8667 JR |
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. | |
5689bc32 | 63 | |
e1eb8667 JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe i dokumentacja do bibliotek pcre. | |
74bd1d6b | 66 | |
e1eb8667 JR |
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. | |
5689bc32 | 72 | |
74bd1d6b | 73 | %package static |
74 | Summary: Perl-Compatible Regular Expression static libraries | |
f2bc0236 ER |
75 | Summary(pl.UTF-8): Biblioteki statyczne pcre |
76 | Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre | |
74bd1d6b | 77 | Group: Development/Libraries |
405ea4e9 | 78 | Requires: %{name}-devel = %{version}-%{release} |
74bd1d6b | 79 | |
80 | %description static | |
c2e412f4 | 81 | Perl-Compatible Regular Expression library static libraries. |
15f97430 | 82 | |
e1eb8667 JR |
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. | |
5689bc32 | 88 | |
e1eb8667 | 89 | %description static -l pl.UTF-8 |
74bd1d6b | 90 | Biblioteki statyczne pcre. |
15f97430 | 91 | |
e1eb8667 JR |
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. | |
5689bc32 | 97 | |
405ea4e9 JB |
98 | %package cxx |
99 | Summary: C++ wrapper to PCRE library | |
f2bc0236 | 100 | Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE |
405ea4e9 JB |
101 | Group: Libraries |
102 | Requires: %{name} = %{version}-%{release} | |
103 | ||
104 | %description cxx | |
105 | C++ wrapper to PCRE library. | |
106 | ||
e1eb8667 | 107 | %description cxx -l pl.UTF-8 |
405ea4e9 JB |
108 | Interfejs C++ do biblioteki PCRE. |
109 | ||
110 | %package cxx-devel | |
111 | Summary: Header file for C++ wrapper to PCRE library | |
f2bc0236 | 112 | Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE |
405ea4e9 JB |
113 | Group: Development/Libraries |
114 | Requires: %{name}-cxx = %{version}-%{release} | |
115 | Requires: %{name}-devel = %{version}-%{release} | |
116 | Requires: libstdc++-devel | |
117 | ||
118 | %description cxx-devel | |
119 | Header file for C++ wrapper to PCRE library. | |
120 | ||
e1eb8667 JR |
121 | %description cxx-devel -l pl.UTF-8 |
122 | Plik nagłówkowy interfejsu C++ do biblioteki PCRE. | |
405ea4e9 JB |
123 | |
124 | %package cxx-static | |
125 | Summary: Static version of pcrecpp library | |
f2bc0236 | 126 | Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp |
405ea4e9 JB |
127 | Group: Development/Libraries |
128 | Requires: %{name}-cxx-devel = %{version}-%{release} | |
129 | ||
130 | %description cxx-static | |
131 | Static version of pcrecpp library. | |
132 | ||
e1eb8667 | 133 | %description cxx-static -l pl.UTF-8 |
405ea4e9 JB |
134 | Statyczna wersja biblioteki pcrecpp. |
135 | ||
8a5a0606 | 136 | %package -n pcregrep |
74bd1d6b | 137 | Summary: Grep using Perl Compatible Regular Expressions |
f2bc0236 | 138 | Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych |
552a6252 | 139 | Group: Applications/Text |
8a5a0606 | 140 | Obsoletes: pgrep |
74bd1d6b | 141 | |
8a5a0606 | 142 | %description -n pcregrep |
74bd1d6b | 143 | pgrep is a grep workalike which uses perl-style regular expressions |
144 | instead of POSIX regular expressions. | |
145 | ||
e1eb8667 JR |
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. | |
fc95eac7 | 149 | |
006d0fe7 AG |
150 | %package -n pcretest |
151 | Summary: A program for testing Perl-comaptible regular expressions | |
f2bc0236 | 152 | Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regualarnych |
006d0fe7 AG |
153 | Group: Applications/Text |
154 | ||
155 | %description -n pcretest | |
156 | pcretest is a program which you can use to test regular expression | |
157 | ||
e1eb8667 JR |
158 | %description -n pcretest -l pl.UTF-8 |
159 | pcretest jest programem za pomocą można sprawdzić poprawność wyrażenia regularnego | |
006d0fe7 | 160 | |
3db59d4f | 161 | %package doc-html |
d2b5d592 | 162 | Summary: Documentation for PCRE in HTML format |
f2bc0236 | 163 | Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML |
3db59d4f | 164 | Group: Applications/Text |
165 | ||
166 | %description doc-html | |
d2b5d592 | 167 | Documentation for PCRE in HTML format. |
3db59d4f | 168 | |
e1eb8667 | 169 | %description doc-html -l pl.UTF-8 |
d2b5d592 | 170 | Dokumentacja dla PCRE w formacie HTML. |
3db59d4f | 171 | |
74bd1d6b | 172 | %prep |
173 | %setup -q | |
15f97430 | 174 | |
175 | %build | |
2f21abf2 | 176 | %{__libtoolize} |
8c070545 | 177 | %{__aclocal} |
cef579c6 | 178 | %{__autoconf} |
f759fb19 JB |
179 | %{__autoheader} |
180 | %{__automake} | |
74bd1d6b | 181 | %configure \ |
53bcd14b | 182 | CXXLDFLAGS="%{rpmldflags}" \ |
3f8f4247 | 183 | %{!?with_static_libs:--enable-static=no} \ |
a59c7a4e ER |
184 | --enable-utf8 \ |
185 | --enable-unicode-properties | |
e11fd783 | 186 | |
dc40b652 | 187 | %{__make} |
15f97430 | 188 | |
189 | %install | |
74bd1d6b | 190 | rm -rf $RPM_BUILD_ROOT |
1f0d4992 | 191 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}} |
74bd1d6b | 192 | |
d2b5d592 JB |
193 | %{__make} install \ |
194 | DESTDIR=$RPM_BUILD_ROOT | |
74bd1d6b | 195 | |
405ea4e9 JB |
196 | mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.*.* $RPM_BUILD_ROOT/%{_lib} |
197 | mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.*.* $RPM_BUILD_ROOT/%{_lib} | |
ceb8d073 | 198 | |
6df2c19c | 199 | cd $RPM_BUILD_ROOT%{_libdir} |
1f0d4992 JK |
200 | ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcre.so.*.*.*` libpcre.so |
201 | ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcreposix.so.*.*.*` libpcreposix.so | |
15f97430 | 202 | |
2a888af0 | 203 | cd - |
204 | install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
205 | ||
f759fb19 JB |
206 | rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre |
207 | ||
15f97430 | 208 | %clean |
209 | rm -rf $RPM_BUILD_ROOT | |
210 | ||
fc95eac7 JB |
211 | %post -p /sbin/ldconfig |
212 | %postun -p /sbin/ldconfig | |
213 | ||
405ea4e9 JB |
214 | %post cxx -p /sbin/ldconfig |
215 | %postun cxx -p /sbin/ldconfig | |
216 | ||
15f97430 | 217 | %files |
74bd1d6b | 218 | %defattr(644,root,root,755) |
c0631443 | 219 | %doc README NEWS LICENCE ChangeLog |
405ea4e9 JB |
220 | %attr(755,root,root) /%{_lib}/libpcre.so.*.* |
221 | %attr(755,root,root) /%{_lib}/libpcreposix.so.*.* | |
74bd1d6b | 222 | |
223 | %files devel | |
224 | %defattr(644,root,root,755) | |
74bd1d6b | 225 | %attr(755,root,root) %{_bindir}/pcre-config |
405ea4e9 JB |
226 | %attr(755,root,root) %{_libdir}/libpcre.so |
227 | %attr(755,root,root) %{_libdir}/libpcreposix.so | |
228 | %{_libdir}/libpcre.la | |
229 | %{_libdir}/libpcreposix.la | |
230 | %{_includedir}/pcre.h | |
231 | %{_includedir}/pcreposix.h | |
a0c12252 | 232 | %{_pkgconfigdir}/libpcre.pc |
f759fb19 | 233 | %{_mandir}/man1/pcre-config.1* |
405ea4e9 JB |
234 | %{_mandir}/man3/* |
235 | %exclude %{_mandir}/man3/pcrecpp.3* | |
236 | %{_examplesdir}/%{name}-%{version} | |
74bd1d6b | 237 | |
3f8f4247 | 238 | %if %{with static_libs} |
74bd1d6b | 239 | %files static |
7e9222c8 | 240 | %defattr(644,root,root,755) |
405ea4e9 JB |
241 | %{_libdir}/libpcre.a |
242 | %{_libdir}/libpcreposix.a | |
3f8f4247 | 243 | %endif |
405ea4e9 JB |
244 | |
245 | %files cxx | |
246 | %defattr(644,root,root,755) | |
247 | %attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.* | |
248 | ||
249 | %files cxx-devel | |
250 | %defattr(644,root,root,755) | |
251 | %attr(755,root,root) %{_libdir}/libpcrecpp.so | |
252 | %{_libdir}/libpcrecpp.la | |
253 | %{_includedir}/pcrecpp.h | |
254 | %{_includedir}/pcre_scanner.h | |
255 | %{_includedir}/pcre_stringpiece.h | |
387ec8b9 | 256 | %{_includedir}/pcrecpparg.h |
45516b28 | 257 | %{_pkgconfigdir}/libpcrecpp.pc |
405ea4e9 JB |
258 | %{_mandir}/man3/pcrecpp.3* |
259 | ||
3f8f4247 | 260 | %if %{with static_libs} |
405ea4e9 JB |
261 | %files cxx-static |
262 | %defattr(644,root,root,755) | |
263 | %{_libdir}/libpcrecpp.a | |
3f8f4247 | 264 | %endif |
15f97430 | 265 | |
8a5a0606 | 266 | %files -n pcregrep |
74bd1d6b | 267 | %defattr(644,root,root,755) |
8a5a0606 | 268 | %attr(755,root,root) %{_bindir}/pcregrep |
269 | %{_mandir}/man1/pcregrep.1* | |
006d0fe7 AG |
270 | |
271 | %files -n pcretest | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_bindir}/pcretest | |
274 | %{_mandir}/man1/pcretest.1* | |
3db59d4f | 275 | |
276 | %files doc-html | |
277 | %defattr(644,root,root,755) | |
278 | %doc doc/html/* |