3 |
%define pcreposix_major 1 |
%define pcreposix_major 1 |
4 |
%define pcreposix_compat_major 0 |
%define pcreposix_compat_major 0 |
5 |
%define libname_orig lib%{name} |
%define libname_orig lib%{name} |
6 |
|
%define libname16_orig lib%{name}16 |
7 |
|
%define libname32_orig lib%{name}32 |
8 |
%define libname %mklibname pcre %{pcre_major} |
%define libname %mklibname pcre %{pcre_major} |
9 |
|
%define libname16 %mklibname pcre 16 %{pcrecpp_major} |
10 |
|
%define libname32 %mklibname pcre 32 %{pcrecpp_major} |
11 |
%define libnamecpp %mklibname pcrecpp %{pcrecpp_major} |
%define libnamecpp %mklibname pcrecpp %{pcrecpp_major} |
12 |
%define libnameposix %mklibname pcreposix %{pcreposix_major} |
%define libnameposix %mklibname pcreposix %{pcreposix_major} |
13 |
%define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major} |
%define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major} |
14 |
%define develname %mklibname -d pcre |
%define develname %mklibname -d pcre |
15 |
|
%define develcpp %mklibname -d pcrecpp |
16 |
|
%define develposix %mklibname -d pcreposix |
17 |
|
|
18 |
%define build_pcreposix_compat 1 |
%define build_pcreposix_compat 1 |
19 |
|
|
20 |
Summary: Perl-compatible regular expression library |
Summary: Perl-compatible regular expression library |
21 |
Name: pcre |
Name: pcre |
22 |
Version: 8.32 |
Version: 8.34 |
23 |
Release: %mkrel 2 |
Release: %mkrel 2 |
24 |
License: BSD-Style |
License: BSD-Style |
25 |
Group: File tools |
Group: File tools |
28 |
Source1: http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2.sig |
Source1: http://downloads.sourceforge.net/pcre/%{name}-%{version}.tar.bz2.sig |
29 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
30 |
BuildRequires: automake |
BuildRequires: automake |
31 |
Patch1: pcre-0.6.5-fix-detect-into-kdelibs.patch |
Patch0: pcre-0.6.5-fix-detect-into-kdelibs.patch |
32 |
Patch2: pcre-linkage_fix.diff |
Patch1: pcre-linkage_fix.diff |
33 |
|
Patch2: pcre-8.34-stack_guard.diff |
34 |
# from debian: |
# from debian: |
35 |
Patch4: pcre-pcreposix-glibc-conflict.patch |
Patch4: pcre-pcreposix-glibc-conflict.patch |
36 |
|
|
50 |
%description -n %{libname} |
%description -n %{libname} |
51 |
This package contains the shared library libpcre. |
This package contains the shared library libpcre. |
52 |
|
|
53 |
|
%package -n %{libname16} |
54 |
|
Group: System/Libraries |
55 |
|
Summary: Perl-compatible regular expression library |
56 |
|
Requires(pre): filesystem >= 2.1.9-18 |
57 |
|
Provides: %{libname16_orig} = %{version}-%{release} |
58 |
|
Obsoletes: %{_lib}pcre16_1 < %{version}-%{release} |
59 |
|
|
60 |
|
%description -n %{libname16} |
61 |
|
This package contains the shared library libpcre. |
62 |
|
|
63 |
|
%package -n %{libname32} |
64 |
|
Group: System/Libraries |
65 |
|
Summary: Perl-compatible regular expression library |
66 |
|
Requires(pre): filesystem >= 2.1.9-18 |
67 |
|
Provides: %{libname32_orig} = %{version}-%{release} |
68 |
|
Obsoletes: %{_lib}pcre32_1 < %{version}-%{release} |
69 |
|
|
70 |
|
%description -n %{libname32} |
71 |
|
This package contains the shared library libpcre. |
72 |
|
|
73 |
%package -n %{libnamecpp} |
%package -n %{libnamecpp} |
74 |
Group: System/Libraries |
Group: System/Libraries |
101 |
Group: Development/C |
Group: Development/C |
102 |
Summary: Headers and static lib for pcre development |
Summary: Headers and static lib for pcre development |
103 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
104 |
Requires: %{libnamecpp} = %{version}-%{release} |
Requires: %{libname16} = %{version}-%{release} |
105 |
Requires: %{libnameposix} = %{version}-%{release} |
Requires: %{libname32} = %{version}-%{release} |
|
Requires: %{libnameposix_compat} = %{version}-%{release} |
|
106 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
Provides: %{libname_orig}-devel = %{version}-%{release} |
107 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
108 |
Obsoletes: %mklibname pcre 0 -d |
Obsoletes: %mklibname pcre 0 -d |
111 |
Install this package if you want do compile applications using the pcre |
Install this package if you want do compile applications using the pcre |
112 |
library. |
library. |
113 |
|
|
114 |
|
%package -n %{develcpp} |
115 |
|
Group: Development/C++ |
116 |
|
Summary: Headers and static lib for pcrecpp development |
117 |
|
Provides: pcrecpp-devel = %{version}-%{release} |
118 |
|
Requires: %{libnamecpp} = %{version}-%{release} |
119 |
|
Requires: %{develname} = %{version}-%{release} |
120 |
|
Conflicts: pcre-devel < 8.32-4 |
121 |
|
|
122 |
|
%description -n %{develcpp} |
123 |
|
Install this package if you want do compile applications using the pcrecpp |
124 |
|
library. |
125 |
|
|
126 |
|
%package -n %{develposix} |
127 |
|
Group: Development/C |
128 |
|
Summary: Headers and static lib for pcreposix development |
129 |
|
Provides: pcreposix-devel = %{version}-%{release} |
130 |
|
Requires: %{libnameposix} = %{version}-%{release} |
131 |
|
Requires: %{develname} = %{version}-%{release} |
132 |
|
Conflicts: pcre-devel < 8.32-4 |
133 |
|
|
134 |
|
%description -n %{develposix} |
135 |
|
Install this package if you want do compile applications using the pcre |
136 |
|
library. |
137 |
|
|
138 |
The header file for the POSIX-style functions is called pcreposix.h. The |
The header file for the POSIX-style functions is called pcreposix.h. The |
139 |
official POSIX name is regex.h, but I didn't want to risk possible problems |
official POSIX name is regex.h, but I didn't want to risk possible problems |
140 |
with existing files of that name by distributing it that way. To use it with an |
with existing files of that name by distributing it that way. To use it with an |
143 |
|
|
144 |
%prep |
%prep |
145 |
%setup -q |
%setup -q |
146 |
%patch1 -p1 -b .detect_into_kdelibs |
%patch0 -p1 -b .detect_into_kdelibs |
147 |
%patch2 -p0 |
%patch1 -p0 |
148 |
|
%patch2 -p1 |
149 |
|
|
150 |
%if %{build_pcreposix_compat} |
%if %{build_pcreposix_compat} |
151 |
# pcre-pcreposix-glibc-conflict patch below breaks compatibility, |
# pcre-pcreposix-glibc-conflict patch below breaks compatibility, |
168 |
--disable-static \ |
--disable-static \ |
169 |
--enable-utf \ |
--enable-utf \ |
170 |
--enable-unicode-properties \ |
--enable-unicode-properties \ |
171 |
|
--enable-pcre8 \ |
172 |
|
--enable-pcre16 \ |
173 |
|
--enable-pcre32 \ |
174 |
--enable-jit |
--enable-jit |
175 |
%make |
%make |
176 |
cd - |
cd - |
199 |
rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README} |
rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README} |
200 |
rm -rf %{buildroot}%{_docdir}/pcre/html |
rm -rf %{buildroot}%{_docdir}/pcre/html |
201 |
rm -f %{buildroot}%{_libdir}/*.la |
rm -f %{buildroot}%{_libdir}/*.la |
|
rm -f %{buildroot}%{_bindir}/pcretest |
|
202 |
|
|
203 |
%files |
%files |
204 |
%doc AUTHORS COPYING LICENCE NEWS README |
%doc AUTHORS COPYING LICENCE NEWS README |
205 |
%{_mandir}/man1/pcregrep.1* |
%{_mandir}/man1/pcregrep.1* |
206 |
%{_mandir}/man1/pcretest.1* |
%{_mandir}/man1/pcretest.1* |
207 |
%{_bindir}/pcregrep |
%{_bindir}/pcregrep |
208 |
#%{_bindir}/pcretest |
%{_bindir}/pcretest |
209 |
|
|
210 |
%files -n %{libname} |
%files -n %{libname} |
211 |
%{_libdir}/libpcre.so.%{pcre_major}* |
%{_libdir}/libpcre.so.%{pcre_major}* |
212 |
|
|
213 |
|
%files -n %{libname16} |
214 |
|
%{_libdir}/libpcre16.so.%{pcrecpp_major}* |
215 |
|
|
216 |
|
%files -n %{libname32} |
217 |
|
%{_libdir}/libpcre32.so.%{pcrecpp_major}* |
218 |
|
|
219 |
%files -n %{libnamecpp} |
%files -n %{libnamecpp} |
220 |
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}* |
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}* |
221 |
|
|
230 |
%files -n %{develname} |
%files -n %{develname} |
231 |
%doc doc/html |
%doc doc/html |
232 |
%doc ChangeLog |
%doc ChangeLog |
233 |
%{_libdir}/lib*.so |
%{_libdir}/libpcre.so |
234 |
%{_includedir}/*.h |
%{_libdir}/libpcre16.so |
235 |
|
%{_libdir}/libpcre32.so |
236 |
|
%{_includedir}/pcre.h |
237 |
|
%{_includedir}/pcre_*.h |
238 |
%{_libdir}/pkgconfig/libpcre.pc |
%{_libdir}/pkgconfig/libpcre.pc |
239 |
%{_libdir}/pkgconfig/libpcrecpp.pc |
%{_libdir}/pkgconfig/libpcre16.pc |
240 |
%{_libdir}/pkgconfig/libpcreposix.pc |
%{_libdir}/pkgconfig/libpcre32.pc |
241 |
%{_bindir}/pcre-config |
%{_bindir}/pcre-config |
242 |
%multiarch %{multiarch_bindir}/pcre-config |
%multiarch %{multiarch_bindir}/pcre-config |
243 |
%{_mandir}/man1/pcre-config.1* |
%{_mandir}/man1/pcre-config.1* |
244 |
%{_mandir}/man3/*.3* |
%{_mandir}/man3/*.3* |
245 |
|
%exclude %{_libdir}/libpcreposix.so |
246 |
|
%exclude %{_mandir}/man3/pcreposix.3* |
247 |
|
|
248 |
|
%files -n %{develcpp} |
249 |
|
%{_includedir}/pcrecpp*.h |
250 |
|
%{_libdir}/libpcrecpp.so |
251 |
|
%{_libdir}/pkgconfig/libpcrecpp.pc |
252 |
|
%{_mandir}/man3/pcrecpp.3* |
253 |
|
|
254 |
|
%files -n %{develposix} |
255 |
|
%{_includedir}/pcreposix.h |
256 |
|
%{_libdir}/libpcreposix.so |
257 |
|
%{_libdir}/pkgconfig/libpcreposix.pc |
258 |
|
%{_mandir}/man3/pcreposix.3* |