]> git.pld-linux.org Git - packages/pcre.git/blob - pcre.spec
- tabs in preamble
[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.UTF-8):      Biblioteka perlowych wyrażeń regularnych
7 Summary(pt_BR.UTF-8):   Biblioteca de expressões regulares versão
8 Name:           pcre
9 Version:        7.0
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:  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
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.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.
33
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.
39
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.
45
46 %package devel
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
53
54 %description devel
55 Perl-Compatible Regular Expression header files and development
56 documentation.
57
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.
63
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe i dokumentacja do bibliotek pcre.
66
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.
72
73 %package static
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}
79
80 %description static
81 Perl-Compatible Regular Expression library static libraries.
82
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.
88
89 %description static -l pl.UTF-8
90 Biblioteki statyczne pcre.
91
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.
97
98 %package cxx
99 Summary:        C++ wrapper to PCRE library
100 Summary(pl.UTF-8):      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.UTF-8
108 Interfejs C++ do biblioteki PCRE.
109
110 %package cxx-devel
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
117
118 %description cxx-devel
119 Header file for C++ wrapper to PCRE library.
120
121 %description cxx-devel -l pl.UTF-8
122 Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
123
124 %package cxx-static
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}
129
130 %description cxx-static
131 Static version of pcrecpp library.
132
133 %description cxx-static -l pl.UTF-8
134 Statyczna wersja biblioteki pcrecpp.
135
136 %package -n pcregrep
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
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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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         CXXLDFLAGS="%{rpmldflags}" \
181         %{!?with_static_libs:--enable-static=no} \
182         --enable-utf8 \
183         --enable-unicode-properties
184
185 %{__make}
186
187 %install
188 rm -rf $RPM_BUILD_ROOT
189 install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
190
191 %{__make} install \
192         DESTDIR=$RPM_BUILD_ROOT
193
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}
196
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
200
201 cd -
202 install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
203
204 %clean
205 rm -rf $RPM_BUILD_ROOT
206
207 %post   -p /sbin/ldconfig
208 %postun -p /sbin/ldconfig
209
210 %post   cxx -p /sbin/ldconfig
211 %postun cxx -p /sbin/ldconfig
212
213 %files
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.*.*
218
219 %files devel
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
229 %{_mandir}/man3/*
230 %exclude %{_mandir}/man3/pcrecpp.3*
231 %{_examplesdir}/%{name}-%{version}
232
233 %if %{with static_libs}
234 %files static
235 %defattr(644,root,root,755)
236 %{_libdir}/libpcre.a
237 %{_libdir}/libpcreposix.a
238 %endif
239
240 %files cxx
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
243
244 %files cxx-devel
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*
254
255 %if %{with static_libs}
256 %files cxx-static
257 %defattr(644,root,root,755)
258 %{_libdir}/libpcrecpp.a
259 %endif
260
261 %files -n pcregrep
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_bindir}/pcregrep
264 %{_mandir}/man1/pcregrep.1*
265
266 %files -n pcretest
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/pcretest
269 %{_mandir}/man1/pcretest.1*
270
271 %files doc-html
272 %defattr(644,root,root,755)
273 %doc doc/html/*
This page took 0.084056 seconds and 4 git commands to generate.