]> git.pld-linux.org Git - packages/pcre.git/blame - pcre.spec
- Up to 8.11
[packages/pcre.git] / pcre.spec
CommitLineData
3f8f4247 1#
2# Conditional build:
be58c0b9
JB
3%bcond_without static_libs # don't build static libraries
4%bcond_without tests # don't perform "make check"
884e4ac3 5
15f97430 6Summary: Perl-Compatible Regular Expression library
f2bc0236
ER
7Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
8Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
74bd1d6b 9Name: pcre
0b5a5af0 10Version: 8.11
884e4ac3 11Release: 1
c5944087 12License: BSD (see LICENCE)
74bd1d6b 13Group: Libraries
d5cbbdbb 14Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
0b5a5af0 15# Source0-md5: ef907b8792ec7f90f0dcd773848f0b3b
7454b850 16Patch0: %{name}-pcreposix-glibc-conflict.patch
cba62653 17URL: http://www.pcre.org/
405ea4e9 18BuildRequires: autoconf >= 2.57
fc95eac7 19BuildRequires: automake
884e4ac3 20BuildRequires: bzip2-devel
405ea4e9
JB
21BuildRequires: libstdc++-devel
22BuildRequires: libtool >= 2:1.5
884e4ac3
ER
23BuildRequires: readline-devel
24BuildRequires: zlib-devel
a3907a5b 25Obsoletes: libpcre0
405ea4e9 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15f97430 27
28%description
74bd1d6b 29PCRE stands for the Perl Compatible Regular Expression library. It
15f97430 30contains routines to match text against regular expressions similar to
c2e412f4 31Perl's. It also contains a POSIX compatibility library.
15f97430 32
e1eb8667
JR
33%description -l es.UTF-8
34A biblioteca PCRE é um set de funções que implementam expressões
35regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
36sua própria API nativa, bem como um set de funções wrapper para
37corresponder ao padrão POSIX de expressões regulares.
5689bc32 38
e1eb8667
JR
39%description -l pl.UTF-8
40PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
41regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
42tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
43Zawiera także bibliotekę kompatybilną z POSIX.
fc95eac7 44
e1eb8667
JR
45%description -l pt_BR.UTF-8
46A biblioteca PCRE é um conjunto de funções que implementam expressões
47regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
48sua própria API nativa, bem como um conjuntos de funções wrapper para
49corresponder ao padrão POSIX de expressões regulares.
5689bc32 50
74bd1d6b 51%package devel
52Summary: Perl-Compatible Regular Expression header files and development documentation
f2bc0236
ER
53Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre
54Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre
74bd1d6b 55Group: Development/Libraries
405ea4e9 56Requires: %{name} = %{version}-%{release}
a3907a5b 57Obsoletes: libpcre0-devel
15f97430 58
74bd1d6b 59%description devel
60Perl-Compatible Regular Expression header files and development
61documentation.
15f97430 62
e1eb8667
JR
63%description devel -l es.UTF-8
64A biblioteca PCRE é um set de funções que implementam expressões
65regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
66sua própria API nativa, bem como um set de funções wrapper para
67corresponder ao padrão POSIX de expressões regulares.
5689bc32 68
e1eb8667
JR
69%description devel -l pl.UTF-8
70Pliki nagłówkowe i dokumentacja do bibliotek pcre.
74bd1d6b 71
e1eb8667
JR
72%description devel -l pt_BR.UTF-8
73A biblioteca PCRE é um conjunto de funções que implementam expressões
74regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
75sua própria API nativa, bem como um conjunto de funções wrapper para
76corresponder ao padrão POSIX de expressões regulares.
5689bc32 77
74bd1d6b 78%package static
79Summary: Perl-Compatible Regular Expression static libraries
f2bc0236
ER
80Summary(pl.UTF-8): Biblioteki statyczne pcre
81Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre
74bd1d6b 82Group: Development/Libraries
405ea4e9 83Requires: %{name}-devel = %{version}-%{release}
74bd1d6b 84
85%description static
c2e412f4 86Perl-Compatible Regular Expression library static libraries.
15f97430 87
e1eb8667
JR
88%description static -l es.UTF-8
89A biblioteca PCRE é um set de funções que implementam expressões
90regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
91sua própria API nativa, bem como um set de funções wrapper para
92corresponder ao padrão POSIX de expressões regulares.
5689bc32 93
e1eb8667 94%description static -l pl.UTF-8
74bd1d6b 95Biblioteki statyczne pcre.
15f97430 96
e1eb8667
JR
97%description static -l pt_BR.UTF-8
98A biblioteca PCRE é um conjunto de funções que implementam expressões
99regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
100sua própria API nativa, bem como um conjunto de funções wrapper para
101corresponder ao padrão POSIX de expressões regulares.
5689bc32 102
405ea4e9
JB
103%package cxx
104Summary: C++ wrapper to PCRE library
f2bc0236 105Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE
405ea4e9
JB
106Group: Libraries
107Requires: %{name} = %{version}-%{release}
108
109%description cxx
110C++ wrapper to PCRE library.
111
e1eb8667 112%description cxx -l pl.UTF-8
405ea4e9
JB
113Interfejs C++ do biblioteki PCRE.
114
115%package cxx-devel
116Summary: Header file for C++ wrapper to PCRE library
f2bc0236 117Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE
405ea4e9
JB
118Group: Development/Libraries
119Requires: %{name}-cxx = %{version}-%{release}
120Requires: %{name}-devel = %{version}-%{release}
121Requires: libstdc++-devel
122
123%description cxx-devel
124Header file for C++ wrapper to PCRE library.
125
e1eb8667
JR
126%description cxx-devel -l pl.UTF-8
127Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
405ea4e9
JB
128
129%package cxx-static
130Summary: Static version of pcrecpp library
f2bc0236 131Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp
405ea4e9
JB
132Group: Development/Libraries
133Requires: %{name}-cxx-devel = %{version}-%{release}
134
135%description cxx-static
136Static version of pcrecpp library.
137
e1eb8667 138%description cxx-static -l pl.UTF-8
405ea4e9
JB
139Statyczna wersja biblioteki pcrecpp.
140
8a5a0606 141%package -n pcregrep
74bd1d6b 142Summary: Grep using Perl Compatible Regular Expressions
f2bc0236 143Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
552a6252 144Group: Applications/Text
8a5a0606 145Obsoletes: pgrep
74bd1d6b 146
8a5a0606 147%description -n pcregrep
74bd1d6b 148pgrep is a grep workalike which uses perl-style regular expressions
149instead of POSIX regular expressions.
150
e1eb8667
JR
151%description -n pcregrep -l pl.UTF-8
152pgrep jest programem działającym podobnie do grepa, ale używających
153perlowych wyrażeń regularnych, a nie posiksowych.
fc95eac7 154
006d0fe7
AG
155%package -n pcretest
156Summary: A program for testing Perl-comaptible regular expressions
5bcd73ce 157Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regularnych
006d0fe7
AG
158Group: Applications/Text
159
160%description -n pcretest
5bcd73ce 161pcretest is a program which you can use to test regular expression.
006d0fe7 162
e1eb8667 163%description -n pcretest -l pl.UTF-8
5bcd73ce
JB
164pcretest jest programem, za pomocą którego można sprawdzić poprawność
165wyrażenia regularnego.
006d0fe7 166
3db59d4f 167%package doc-html
d2b5d592 168Summary: Documentation for PCRE in HTML format
f2bc0236 169Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML
3db59d4f 170Group: Applications/Text
171
172%description doc-html
d2b5d592 173Documentation for PCRE in HTML format.
3db59d4f 174
e1eb8667 175%description doc-html -l pl.UTF-8
d2b5d592 176Dokumentacja dla PCRE w formacie HTML.
3db59d4f 177
74bd1d6b 178%prep
179%setup -q
7454b850 180%patch0 -p1
15f97430 181
182%build
2f21abf2 183%{__libtoolize}
8c070545 184%{__aclocal}
cef579c6 185%{__autoconf}
f759fb19
JB
186%{__autoheader}
187%{__automake}
74bd1d6b 188%configure \
53bcd14b 189 CXXLDFLAGS="%{rpmldflags}" \
f7c024bd 190 %{!?with_static_libs:--disable-static} \
a59c7a4e 191 --enable-utf8 \
da07eef6 192 --enable-unicode-properties \
193 --enable-pcregrep-libz \
194 --enable-pcregrep-libbz2 \
195 --enable-pcretest-libreadline
e11fd783 196
dc40b652 197%{__make}
15f97430 198
be58c0b9 199%if %{with tests}
aa8b242d
AM
200# tests need big stack
201ulimit -s 32768
be58c0b9
JB
202%{__make} check
203%endif
204
15f97430 205%install
74bd1d6b 206rm -rf $RPM_BUILD_ROOT
1f0d4992 207install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
74bd1d6b 208
d2b5d592
JB
209%{__make} install \
210 DESTDIR=$RPM_BUILD_ROOT
74bd1d6b 211
f9955a89
JB
212mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.* $RPM_BUILD_ROOT/%{_lib}
213mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.* $RPM_BUILD_ROOT/%{_lib}
ceb8d073 214
f9955a89
JB
215ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcre.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcre.so
216ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcreposix.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so
518d2d3e 217
884e4ac3 218cp -a pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
2a888af0 219
f759fb19
JB
220rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
221
15f97430 222%clean
223rm -rf $RPM_BUILD_ROOT
224
fc95eac7
JB
225%post -p /sbin/ldconfig
226%postun -p /sbin/ldconfig
227
405ea4e9
JB
228%post cxx -p /sbin/ldconfig
229%postun cxx -p /sbin/ldconfig
230
15f97430 231%files
74bd1d6b 232%defattr(644,root,root,755)
c0631443 233%doc README NEWS LICENCE ChangeLog
f9955a89
JB
234%attr(755,root,root) /%{_lib}/libpcre.so.*.*.*
235%attr(755,root,root) %ghost /%{_lib}/libpcre.so.0
236%attr(755,root,root) /%{_lib}/libpcreposix.so.*.*.*
237%attr(755,root,root) %ghost /%{_lib}/libpcreposix.so.0
74bd1d6b 238
239%files devel
240%defattr(644,root,root,755)
74bd1d6b 241%attr(755,root,root) %{_bindir}/pcre-config
405ea4e9
JB
242%attr(755,root,root) %{_libdir}/libpcre.so
243%attr(755,root,root) %{_libdir}/libpcreposix.so
244%{_libdir}/libpcre.la
245%{_libdir}/libpcreposix.la
246%{_includedir}/pcre.h
247%{_includedir}/pcreposix.h
a0c12252 248%{_pkgconfigdir}/libpcre.pc
f7c024bd 249%{_pkgconfigdir}/libpcreposix.pc
f759fb19 250%{_mandir}/man1/pcre-config.1*
f9955a89 251%{_mandir}/man3/pcre*.3*
405ea4e9
JB
252%exclude %{_mandir}/man3/pcrecpp.3*
253%{_examplesdir}/%{name}-%{version}
74bd1d6b 254
3f8f4247 255%if %{with static_libs}
74bd1d6b 256%files static
7e9222c8 257%defattr(644,root,root,755)
405ea4e9
JB
258%{_libdir}/libpcre.a
259%{_libdir}/libpcreposix.a
3f8f4247 260%endif
405ea4e9
JB
261
262%files cxx
263%defattr(644,root,root,755)
264%attr(755,root,root) %{_libdir}/libpcrecpp.so.*.*.*
f9955a89 265%attr(755,root,root) %ghost %{_libdir}/libpcrecpp.so.0
405ea4e9
JB
266
267%files cxx-devel
268%defattr(644,root,root,755)
269%attr(755,root,root) %{_libdir}/libpcrecpp.so
270%{_libdir}/libpcrecpp.la
271%{_includedir}/pcrecpp.h
272%{_includedir}/pcre_scanner.h
273%{_includedir}/pcre_stringpiece.h
387ec8b9 274%{_includedir}/pcrecpparg.h
45516b28 275%{_pkgconfigdir}/libpcrecpp.pc
405ea4e9
JB
276%{_mandir}/man3/pcrecpp.3*
277
3f8f4247 278%if %{with static_libs}
405ea4e9
JB
279%files cxx-static
280%defattr(644,root,root,755)
281%{_libdir}/libpcrecpp.a
3f8f4247 282%endif
15f97430 283
8a5a0606 284%files -n pcregrep
74bd1d6b 285%defattr(644,root,root,755)
8a5a0606 286%attr(755,root,root) %{_bindir}/pcregrep
287%{_mandir}/man1/pcregrep.1*
006d0fe7
AG
288
289%files -n pcretest
290%defattr(644,root,root,755)
291%attr(755,root,root) %{_bindir}/pcretest
292%{_mandir}/man1/pcretest.1*
3db59d4f 293
294%files doc-html
295%defattr(644,root,root,755)
296%doc doc/html/*
This page took 0.06803 seconds and 4 git commands to generate.