]> git.pld-linux.org Git - packages/pcre.git/blame - pcre.spec
- updated to 7.1
[packages/pcre.git] / pcre.spec
CommitLineData
3f8f4247 1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
15f97430 5Summary: Perl-Compatible Regular Expression library
f2bc0236
ER
6Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
7Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
74bd1d6b 8Name: pcre
f759fb19
JB
9Version: 7.1
10Release: 1
c5944087 11License: BSD (see LICENCE)
74bd1d6b 12Group: Libraries
d5cbbdbb 13Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
f759fb19 14# Source0-md5: c678550aaf064a17bb4bb6ea36dd6d88
cba62653 15URL: http://www.pcre.org/
405ea4e9 16BuildRequires: autoconf >= 2.57
fc95eac7 17BuildRequires: automake
405ea4e9
JB
18BuildRequires: libstdc++-devel
19BuildRequires: libtool >= 2:1.5
a3907a5b 20Obsoletes: libpcre0
405ea4e9 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15f97430 22
23%description
74bd1d6b 24PCRE stands for the Perl Compatible Regular Expression library. It
15f97430 25contains routines to match text against regular expressions similar to
c2e412f4 26Perl's. It also contains a POSIX compatibility library.
15f97430 27
e1eb8667
JR
28%description -l es.UTF-8
29A biblioteca PCRE é um set de funções que implementam expressões
30regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
31sua própria API nativa, bem como um set de funções wrapper para
32corresponder ao padrão POSIX de expressões regulares.
5689bc32 33
e1eb8667
JR
34%description -l pl.UTF-8
35PCRE (Perl-Compatible Regular Expression) oznacza bibliotekę wyrażeń
36regularnych kompatybilnych z perlowymi. Zawiera funkcje dopasowujące
37tekst do wyrażeń regularnych podobnych do tych znanych z Perla.
38Zawiera także bibliotekę kompatybilną z POSIX.
fc95eac7 39
e1eb8667
JR
40%description -l pt_BR.UTF-8
41A biblioteca PCRE é um conjunto de funções que implementam expressões
42regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
43sua própria API nativa, bem como um conjuntos de funções wrapper para
44corresponder ao padrão POSIX de expressões regulares.
5689bc32 45
74bd1d6b 46%package devel
47Summary: Perl-Compatible Regular Expression header files and development documentation
f2bc0236
ER
48Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek pcre
49Summary(pt_BR.UTF-8): Arquivos para desenvolvimento com pcre
74bd1d6b 50Group: Development/Libraries
405ea4e9 51Requires: %{name} = %{version}-%{release}
a3907a5b 52Obsoletes: libpcre0-devel
15f97430 53
74bd1d6b 54%description devel
55Perl-Compatible Regular Expression header files and development
56documentation.
15f97430 57
e1eb8667
JR
58%description devel -l es.UTF-8
59A biblioteca PCRE é um set de funções que implementam expressões
60regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
61sua própria API nativa, bem como um set de funções wrapper para
62corresponder ao padrão POSIX de expressões regulares.
5689bc32 63
e1eb8667
JR
64%description devel -l pl.UTF-8
65Pliki nagłówkowe i dokumentacja do bibliotek pcre.
74bd1d6b 66
e1eb8667
JR
67%description devel -l pt_BR.UTF-8
68A biblioteca PCRE é um conjunto de funções que implementam expressões
69regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
70sua própria API nativa, bem como um conjunto de funções wrapper para
71corresponder ao padrão POSIX de expressões regulares.
5689bc32 72
74bd1d6b 73%package static
74Summary: Perl-Compatible Regular Expression static libraries
f2bc0236
ER
75Summary(pl.UTF-8): Biblioteki statyczne pcre
76Summary(pt_BR.UTF-8): Arquivos para desenvolvimento estático com pcre
74bd1d6b 77Group: Development/Libraries
405ea4e9 78Requires: %{name}-devel = %{version}-%{release}
74bd1d6b 79
80%description static
c2e412f4 81Perl-Compatible Regular Expression library static libraries.
15f97430 82
e1eb8667
JR
83%description static -l es.UTF-8
84A biblioteca PCRE é um set de funções que implementam expressões
85regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
86sua própria API nativa, bem como um set de funções wrapper para
87corresponder ao padrão POSIX de expressões regulares.
5689bc32 88
e1eb8667 89%description static -l pl.UTF-8
74bd1d6b 90Biblioteki statyczne pcre.
15f97430 91
e1eb8667
JR
92%description static -l pt_BR.UTF-8
93A biblioteca PCRE é um conjunto de funções que implementam expressões
94regulares utilizando-se da mesma sintaxe e semântica do perl 5. Possui
95sua própria API nativa, bem como um conjunto de funções wrapper para
96corresponder ao padrão POSIX de expressões regulares.
5689bc32 97
405ea4e9
JB
98%package cxx
99Summary: C++ wrapper to PCRE library
f2bc0236 100Summary(pl.UTF-8): Interfejs C++ do biblioteki PCRE
405ea4e9
JB
101Group: Libraries
102Requires: %{name} = %{version}-%{release}
103
104%description cxx
105C++ wrapper to PCRE library.
106
e1eb8667 107%description cxx -l pl.UTF-8
405ea4e9
JB
108Interfejs C++ do biblioteki PCRE.
109
110%package cxx-devel
111Summary: Header file for C++ wrapper to PCRE library
f2bc0236 112Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki PCRE
405ea4e9
JB
113Group: Development/Libraries
114Requires: %{name}-cxx = %{version}-%{release}
115Requires: %{name}-devel = %{version}-%{release}
116Requires: libstdc++-devel
117
118%description cxx-devel
119Header file for C++ wrapper to PCRE library.
120
e1eb8667
JR
121%description cxx-devel -l pl.UTF-8
122Plik nagłówkowy interfejsu C++ do biblioteki PCRE.
405ea4e9
JB
123
124%package cxx-static
125Summary: Static version of pcrecpp library
f2bc0236 126Summary(pl.UTF-8): Statyczna wersja biblioteki pcrecpp
405ea4e9
JB
127Group: Development/Libraries
128Requires: %{name}-cxx-devel = %{version}-%{release}
129
130%description cxx-static
131Static version of pcrecpp library.
132
e1eb8667 133%description cxx-static -l pl.UTF-8
405ea4e9
JB
134Statyczna wersja biblioteki pcrecpp.
135
8a5a0606 136%package -n pcregrep
74bd1d6b 137Summary: Grep using Perl Compatible Regular Expressions
f2bc0236 138Summary(pl.UTF-8): Grep używający perlowych wyrażeń regularnych
552a6252 139Group: Applications/Text
8a5a0606 140Obsoletes: pgrep
74bd1d6b 141
8a5a0606 142%description -n pcregrep
74bd1d6b 143pgrep is a grep workalike which uses perl-style regular expressions
144instead of POSIX regular expressions.
145
e1eb8667
JR
146%description -n pcregrep -l pl.UTF-8
147pgrep jest programem działającym podobnie do grepa, ale używających
148perlowych wyrażeń regularnych, a nie posiksowych.
fc95eac7 149
006d0fe7
AG
150%package -n pcretest
151Summary: A program for testing Perl-comaptible regular expressions
f2bc0236 152Summary(pl.UTF-8): Program do testowania kompatybilnych z perlem wyrażeń regualarnych
006d0fe7
AG
153Group: Applications/Text
154
155%description -n pcretest
156pcretest is a program which you can use to test regular expression
157
e1eb8667
JR
158%description -n pcretest -l pl.UTF-8
159pcretest jest programem za pomocą można sprawdzić poprawność wyrażenia regularnego
006d0fe7 160
3db59d4f 161%package doc-html
d2b5d592 162Summary: Documentation for PCRE in HTML format
f2bc0236 163Summary(pl.UTF-8): Dokumentacja dla PCRE w formacie HTML
3db59d4f 164Group: Applications/Text
165
166%description doc-html
d2b5d592 167Documentation for PCRE in HTML format.
3db59d4f 168
e1eb8667 169%description doc-html -l pl.UTF-8
d2b5d592 170Dokumentacja 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 190rm -rf $RPM_BUILD_ROOT
1f0d4992 191install -d $RPM_BUILD_ROOT{/%{_lib},%{_examplesdir}/%{name}-%{version}}
74bd1d6b 192
d2b5d592
JB
193%{__make} install \
194 DESTDIR=$RPM_BUILD_ROOT
74bd1d6b 195
405ea4e9
JB
196mv -f $RPM_BUILD_ROOT%{_libdir}/libpcre.so.*.* $RPM_BUILD_ROOT/%{_lib}
197mv -f $RPM_BUILD_ROOT%{_libdir}/libpcreposix.so.*.* $RPM_BUILD_ROOT/%{_lib}
ceb8d073 198
6df2c19c 199cd $RPM_BUILD_ROOT%{_libdir}
1f0d4992
JK
200ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcre.so.*.*.*` libpcre.so
201ln -sf /%{_lib}/`cd ../../%{_lib} ; echo libpcreposix.so.*.*.*` libpcreposix.so
15f97430 202
2a888af0 203cd -
204install pcredemo.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
205
f759fb19
JB
206rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
207
15f97430 208%clean
209rm -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/*
This page took 0.580633 seconds and 4 git commands to generate.