]> git.pld-linux.org Git - packages/pcre.git/blob - pcre.spec
- up to 6.6 (two bugs introduced in 6.5 fixed)
[packages/pcre.git] / pcre.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs # don't build static libraries
4 #
5 Summary:        Perl-Compatible Regular Expression library
6 Summary(pl):    Biblioteka perlowych wyra¿eñ regularnych
7 Summary(pt_BR): Biblioteca de expressões regulares versão
8 Name:           pcre
9 Version:        6.6
10 Release:        1
11 License:        BSD (see LICENCE)
12 Group:          Libraries
13 Source0:        ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
14 # Source0-md5:  61067f730c46cf6bdd0f8efe3f4f51b6
15 URL:            http://www.pcre.org/
16 BuildRequires:  autoconf >= 2.57
17 BuildRequires:  automake
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool >= 2:1.5
20 Obsoletes:      libpcre0
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
27
28 %description -l es
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.
33
34 %description -l pl
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.
39
40 %description -l pt_BR
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.
45
46 %package devel
47 Summary:        Perl-Compatible Regular Expression header files and development documentation
48 Summary(pl):    Pliki nag³ówkowe i dokumentacja do bibliotek pcre
49 Summary(pt_BR): Arquivos para desenvolvimento com pcre
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52 Obsoletes:      libpcre0-devel
53
54 %description devel
55 Perl-Compatible Regular Expression header files and development
56 documentation.
57
58 %description devel -l es
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.
63
64 %description devel -l pl
65 Pliki nag³ówkowe i dokumentacja do bibliotek pcre.
66
67 %description devel -l pt_BR
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.
72
73 %package static
74 Summary:        Perl-Compatible Regular Expression static libraries
75 Summary(pl):    Biblioteki statyczne pcre
76 Summary(pt_BR): Arquivos para desenvolvimento estático com pcre
77 Group:          Development/Libraries
78 Requires:       %{name}-devel = %{version}-%{release}
79
80 %description static
81 Perl-Compatible Regular Expression library static libraries.
82
83 %description static -l es
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.
88
89 %description static -l pl
90 Biblioteki statyczne pcre.
91
92 %description static -l pt_BR
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.
97
98 %package cxx
99 Summary:        C++ wrapper to PCRE library
100 Summary(pl):    Interfejs C++ do biblioteki PCRE
101 Group:          Libraries
102 Requires:       %{name} = %{version}-%{release}
103
104 %description cxx
105 C++ wrapper to PCRE library.
106
107 %description cxx -l pl
108 Interfejs C++ do biblioteki PCRE.
109
110 %package cxx-devel
111 Summary:        Header file for C++ wrapper to PCRE library
112 Summary(pl):    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
117
118 %description cxx-devel
119 Header file for C++ wrapper to PCRE library.
120
121 %description cxx-devel -l pl
122 Plik nag³ówkowy interfejsu C++ do biblioteki PCRE.
123
124 %package cxx-static
125 Summary:        Static version of pcrecpp library
126 Summary(pl):    Statyczna wersja biblioteki pcrecpp
127 Group:          Development/Libraries
128 Requires:       %{name}-cxx-devel = %{version}-%{release}
129
130 %description cxx-static
131 Static version of pcrecpp library.
132
133 %description cxx-static -l pl
134 Statyczna wersja biblioteki pcrecpp.
135
136 %package -n pcregrep
137 Summary:        Grep using Perl Compatible Regular Expressions
138 Summary(pl):    Grep u¿ywaj±cy perlowych wyra¿eñ regularnych
139 Group:          Applications/Text
140 Obsoletes:      pgrep
141
142 %description -n pcregrep
143 pgrep is a grep workalike which uses perl-style regular expressions
144 instead of POSIX regular expressions.
145
146 %description -n pcregrep -l pl
147 pgrep jest programem dzia³aj±cym podobnie do grepa, ale u¿ywaj±cych
148 perlowych wyra¿eñ regularnych, a nie posiksowych.
149
150 %package -n pcretest
151 Summary:        A program for testing Perl-comaptible regular expressions
152 Summary(pl):    Program do testowania kompatybilnych z perlem wyra¿eñ regualarnych
153 Group:          Applications/Text
154
155 %description -n pcretest
156 pcretest is a program which you can use to test regular expression
157
158 %description -n pcretest -l pl
159 pcretest jest programem za pomoc± mo¿na sprawdziæ poprawno¶æ wyra¿enia regularnego
160
161 %package doc-html
162 Summary:        Documentation for PCRE in HTML format
163 Summary(pl):    Dokumentacja dla PCRE w formacie HTML
164 Group:          Applications/Text
165
166 %description doc-html
167 Documentation for PCRE in HTML format.
168
169 %description doc-html -l pl
170 Dokumentacja dla PCRE w formacie HTML.
171
172 %prep
173 %setup -q
174
175 %build
176 %{__libtoolize}
177 %{__aclocal}
178 %{__autoconf}
179 %configure \
180         %{!?with_static_libs:--enable-static=no} \
181         --enable-utf8
182
183 %{__make}
184
185 %install
186 rm -rf $RPM_BUILD_ROOT
187 install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
188
189 %{__make} install \
190         DESTDIR=$RPM_BUILD_ROOT
191
192 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.*.* $RPM_BUILD_ROOT/%{_lib}
193 mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.*.* $RPM_BUILD_ROOT/%{_lib}
194
195 cd $RPM_BUILD_ROOT%{_libdir}
196 ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcre.so.*.*.*` libpcre.so
197 ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcreposix.so.*.*.*` libpcreposix.so
198
199 cd -
200 install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %post   cxx -p /sbin/ldconfig
209 %postun cxx -p /sbin/ldconfig
210
211 %files
212 %defattr(644,root,root,755)
213 %doc README NEWS LICENCE
214 %attr(755,root,root) /%{_lib}/libpcre.so.*.*
215 %attr(755,root,root) /%{_lib}/libpcreposix.so.*.*
216
217 %files devel
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/pcre-config
220 %attr(755,root,root) %{_libdir}/libpcre.so
221 %attr(755,root,root) %{_libdir}/libpcreposix.so
222 %{_libdir}/libpcre.la
223 %{_libdir}/libpcreposix.la
224 %{_includedir}/pcre.h
225 %{_includedir}/pcreposix.h
226 %{_pkgconfigdir}/libpcre.pc
227 %{_mandir}/man3/*
228 %exclude %{_mandir}/man3/pcrecpp.3*
229 %{_examplesdir}/%{name}-%{version}
230
231 %if %{with static_libs}
232 %files static
233 %defattr(644,root,root,755)
234 %{_libdir}/libpcre.a
235 %{_libdir}/libpcreposix.a
236 %endif
237
238 %files cxx
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
241
242 %files cxx-devel
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libpcrecpp.so
245 %{_libdir}/libpcrecpp.la
246 %{_includedir}/pcrecpp.h
247 %{_includedir}/pcre_scanner.h
248 %{_includedir}/pcre_stringpiece.h
249 %{_includedir}/pcrecpparg.h
250 %{_mandir}/man3/pcrecpp.3*
251
252 %if %{with static_libs}
253 %files cxx-static
254 %defattr(644,root,root,755)
255 %{_libdir}/libpcrecpp.a
256 %endif
257
258 %files -n pcregrep
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_bindir}/pcregrep
261 %{_mandir}/man1/pcregrep.1*
262
263 %files -n pcretest
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_bindir}/pcretest
266 %{_mandir}/man1/pcretest.1*
267
268 %files doc-html
269 %defattr(644,root,root,755)
270 %doc doc/html/*
This page took 0.047194 seconds and 4 git commands to generate.