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 1 |
24 |
License: BSD-Style |
License: BSD-Style |
25 |
Group: File tools |
Group: File tools |
26 |
URL: http://www.pcre.org/ |
URL: http://www.pcre.org/ |
49 |
%description -n %{libname} |
%description -n %{libname} |
50 |
This package contains the shared library libpcre. |
This package contains the shared library libpcre. |
51 |
|
|
52 |
|
%package -n %{libname16} |
53 |
|
Group: System/Libraries |
54 |
|
Summary: Perl-compatible regular expression library |
55 |
|
Requires(pre): filesystem >= 2.1.9-18 |
56 |
|
Provides: %{libname16_orig} = %{version}-%{release} |
57 |
|
Obsoletes: %{_lib}pcre16_1 < %{version}-%{release} |
58 |
|
|
59 |
|
%description -n %{libname16} |
60 |
|
This package contains the shared library libpcre. |
61 |
|
|
62 |
|
%package -n %{libname32} |
63 |
|
Group: System/Libraries |
64 |
|
Summary: Perl-compatible regular expression library |
65 |
|
Requires(pre): filesystem >= 2.1.9-18 |
66 |
|
Provides: %{libname32_orig} = %{version}-%{release} |
67 |
|
Obsoletes: %{_lib}pcre32_1 < %{version}-%{release} |
68 |
|
|
69 |
|
%description -n %{libname32} |
70 |
|
This package contains the shared library libpcre. |
71 |
|
|
72 |
%package -n %{libnamecpp} |
%package -n %{libnamecpp} |
73 |
Group: System/Libraries |
Group: System/Libraries |
100 |
Group: Development/C |
Group: Development/C |
101 |
Summary: Headers and static lib for pcre development |
Summary: Headers and static lib for pcre development |
102 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
103 |
Requires: %{libnamecpp} = %{version}-%{release} |
Requires: %{libname16} = %{version}-%{release} |
104 |
Requires: %{libnameposix} = %{version}-%{release} |
Requires: %{libname32} = %{version}-%{release} |
|
Requires: %{libnameposix_compat} = %{version}-%{release} |
|
105 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
Provides: %{libname_orig}-devel = %{version}-%{release} |
106 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
107 |
Obsoletes: %mklibname pcre 0 -d |
Obsoletes: %mklibname pcre 0 -d |
110 |
Install this package if you want do compile applications using the pcre |
Install this package if you want do compile applications using the pcre |
111 |
library. |
library. |
112 |
|
|
113 |
|
%package -n %{develcpp} |
114 |
|
Group: Development/C++ |
115 |
|
Summary: Headers and static lib for pcrecpp development |
116 |
|
Provides: pcrecpp-devel = %{version}-%{release} |
117 |
|
Requires: %{libnamecpp} = %{version}-%{release} |
118 |
|
Requires: %{develname} = %{version}-%{release} |
119 |
|
Conflicts: pcre-devel < 8.32-4 |
120 |
|
|
121 |
|
%description -n %{develcpp} |
122 |
|
Install this package if you want do compile applications using the pcrecpp |
123 |
|
library. |
124 |
|
|
125 |
|
%package -n %{develposix} |
126 |
|
Group: Development/C |
127 |
|
Summary: Headers and static lib for pcreposix development |
128 |
|
Provides: pcreposix-devel = %{version}-%{release} |
129 |
|
Requires: %{libnameposix} = %{version}-%{release} |
130 |
|
Requires: %{develname} = %{version}-%{release} |
131 |
|
Conflicts: pcre-devel < 8.32-4 |
132 |
|
|
133 |
|
%description -n %{develposix} |
134 |
|
Install this package if you want do compile applications using the pcre |
135 |
|
library. |
136 |
|
|
137 |
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 |
138 |
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 |
139 |
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 |
166 |
--disable-static \ |
--disable-static \ |
167 |
--enable-utf \ |
--enable-utf \ |
168 |
--enable-unicode-properties \ |
--enable-unicode-properties \ |
169 |
|
--enable-pcre8 \ |
170 |
|
--enable-pcre16 \ |
171 |
|
--enable-pcre32 \ |
172 |
--enable-jit |
--enable-jit |
173 |
%make |
%make |
174 |
cd - |
cd - |
197 |
rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README} |
rm -f %{buildroot}%{_docdir}/pcre/{pcretest.txt,README} |
198 |
rm -rf %{buildroot}%{_docdir}/pcre/html |
rm -rf %{buildroot}%{_docdir}/pcre/html |
199 |
rm -f %{buildroot}%{_libdir}/*.la |
rm -f %{buildroot}%{_libdir}/*.la |
|
rm -f %{buildroot}%{_bindir}/pcretest |
|
200 |
|
|
201 |
%files |
%files |
202 |
%doc AUTHORS COPYING LICENCE NEWS README |
%doc AUTHORS COPYING LICENCE NEWS README |
203 |
%{_mandir}/man1/pcregrep.1* |
%{_mandir}/man1/pcregrep.1* |
204 |
%{_mandir}/man1/pcretest.1* |
%{_mandir}/man1/pcretest.1* |
205 |
%{_bindir}/pcregrep |
%{_bindir}/pcregrep |
206 |
#%{_bindir}/pcretest |
%{_bindir}/pcretest |
207 |
|
|
208 |
%files -n %{libname} |
%files -n %{libname} |
209 |
%{_libdir}/libpcre.so.%{pcre_major}* |
%{_libdir}/libpcre.so.%{pcre_major}* |
210 |
|
|
211 |
|
%files -n %{libname16} |
212 |
|
%{_libdir}/libpcre16.so.%{pcrecpp_major}* |
213 |
|
|
214 |
|
%files -n %{libname32} |
215 |
|
%{_libdir}/libpcre32.so.%{pcrecpp_major}* |
216 |
|
|
217 |
%files -n %{libnamecpp} |
%files -n %{libnamecpp} |
218 |
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}* |
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}* |
219 |
|
|
228 |
%files -n %{develname} |
%files -n %{develname} |
229 |
%doc doc/html |
%doc doc/html |
230 |
%doc ChangeLog |
%doc ChangeLog |
231 |
%{_libdir}/lib*.so |
%{_libdir}/libpcre.so |
232 |
%{_includedir}/*.h |
%{_libdir}/libpcre16.so |
233 |
|
%{_libdir}/libpcre32.so |
234 |
|
%{_includedir}/pcre.h |
235 |
|
%{_includedir}/pcre_*.h |
236 |
%{_libdir}/pkgconfig/libpcre.pc |
%{_libdir}/pkgconfig/libpcre.pc |
237 |
%{_libdir}/pkgconfig/libpcrecpp.pc |
%{_libdir}/pkgconfig/libpcre16.pc |
238 |
%{_libdir}/pkgconfig/libpcreposix.pc |
%{_libdir}/pkgconfig/libpcre32.pc |
239 |
%{_bindir}/pcre-config |
%{_bindir}/pcre-config |
240 |
%multiarch %{multiarch_bindir}/pcre-config |
%multiarch %{multiarch_bindir}/pcre-config |
241 |
%{_mandir}/man1/pcre-config.1* |
%{_mandir}/man1/pcre-config.1* |
242 |
%{_mandir}/man3/*.3* |
%{_mandir}/man3/*.3* |
243 |
|
%exclude %{_libdir}/libpcreposix.so |
244 |
|
%exclude %{_mandir}/man3/pcreposix.3* |
245 |
|
|
246 |
|
%files -n %{develcpp} |
247 |
|
%{_includedir}/pcrecpp*.h |
248 |
|
%{_libdir}/libpcrecpp.so |
249 |
|
%{_libdir}/pkgconfig/libpcrecpp.pc |
250 |
|
%{_mandir}/man3/pcrecpp.3* |
251 |
|
|
252 |
|
%files -n %{develposix} |
253 |
|
%{_includedir}/pcreposix.h |
254 |
|
%{_libdir}/libpcreposix.so |
255 |
|
%{_libdir}/pkgconfig/libpcreposix.pc |
256 |
|
%{_mandir}/man3/pcreposix.3* |