8 |
%define libnameposix %mklibname pcreposix %{pcreposix_major} |
%define libnameposix %mklibname pcreposix %{pcreposix_major} |
9 |
%define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major} |
%define libnameposix_compat %mklibname pcreposix %{pcreposix_compat_major} |
10 |
%define develname %mklibname -d pcre |
%define develname %mklibname -d pcre |
11 |
|
%define develcpp %mklibname -d pcrecpp |
12 |
|
%define develposix %mklibname -d pcreposix |
13 |
|
|
14 |
%define build_pcreposix_compat 1 |
%define build_pcreposix_compat 1 |
15 |
|
|
16 |
Summary: Perl-compatible regular expression library |
Summary: Perl-compatible regular expression library |
17 |
Name: pcre |
Name: pcre |
18 |
Version: 8.31 |
Version: 8.32 |
19 |
Release: %mkrel 1 |
Release: %mkrel 5 |
20 |
License: BSD-Style |
License: BSD-Style |
21 |
Group: File tools |
Group: File tools |
22 |
URL: http://www.pcre.org/ |
URL: http://www.pcre.org/ |
77 |
Group: Development/C |
Group: Development/C |
78 |
Summary: Headers and static lib for pcre development |
Summary: Headers and static lib for pcre development |
79 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
|
Requires: %{libnamecpp} = %{version}-%{release} |
|
|
Requires: %{libnameposix} = %{version}-%{release} |
|
|
Requires: %{libnameposix_compat} = %{version}-%{release} |
|
80 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
Provides: %{libname_orig}-devel = %{version}-%{release} |
81 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
82 |
Obsoletes: %mklibname pcre 0 -d |
Obsoletes: %mklibname pcre 0 -d |
85 |
Install this package if you want do compile applications using the pcre |
Install this package if you want do compile applications using the pcre |
86 |
library. |
library. |
87 |
|
|
88 |
|
%package -n %{develcpp} |
89 |
|
Group: Development/C++ |
90 |
|
Summary: Headers and static lib for pcrecpp development |
91 |
|
Provides: pcrecpp-devel = %{version}-%{release} |
92 |
|
Requires: %{libnamecpp} = %{version}-%{release} |
93 |
|
Requires: %{develname} = %{version}-%{release} |
94 |
|
Conflicts: pcre-devel < 8.32-4 |
95 |
|
|
96 |
|
%description -n %{develcpp} |
97 |
|
Install this package if you want do compile applications using the pcrecpp |
98 |
|
library. |
99 |
|
|
100 |
|
%package -n %{develposix} |
101 |
|
Group: Development/C |
102 |
|
Summary: Headers and static lib for pcreposix development |
103 |
|
Provides: pcreposix-devel = %{version}-%{release} |
104 |
|
Requires: %{libnameposix} = %{version}-%{release} |
105 |
|
Requires: %{develname} = %{version}-%{release} |
106 |
|
Conflicts: pcre-devel < 8.32-4 |
107 |
|
|
108 |
|
%description -n %{develposix} |
109 |
|
Install this package if you want do compile applications using the pcre |
110 |
|
library. |
111 |
|
|
112 |
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 |
113 |
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 |
114 |
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 |
139 |
autoreconf -fi |
autoreconf -fi |
140 |
%configure2_5x \ |
%configure2_5x \ |
141 |
--disable-static \ |
--disable-static \ |
142 |
--enable-utf8 \ |
--enable-utf \ |
143 |
--enable-unicode-properties \ |
--enable-unicode-properties \ |
144 |
--enable-jit |
--enable-jit |
145 |
%make |
%make |
194 |
%files -n %{develname} |
%files -n %{develname} |
195 |
%doc doc/html |
%doc doc/html |
196 |
%doc ChangeLog |
%doc ChangeLog |
197 |
%{_libdir}/lib*.so |
%{_libdir}/libpcre.so |
198 |
%{_includedir}/*.h |
%{_includedir}/pcre.h |
199 |
|
%{_includedir}/pcre_*.h |
200 |
%{_libdir}/pkgconfig/libpcre.pc |
%{_libdir}/pkgconfig/libpcre.pc |
|
%{_libdir}/pkgconfig/libpcrecpp.pc |
|
|
%{_libdir}/pkgconfig/libpcreposix.pc |
|
201 |
%{_bindir}/pcre-config |
%{_bindir}/pcre-config |
202 |
%multiarch %{multiarch_bindir}/pcre-config |
%multiarch %{multiarch_bindir}/pcre-config |
203 |
%{_mandir}/man1/pcre-config.1* |
%{_mandir}/man1/pcre-config.1* |
204 |
%{_mandir}/man3/*.3* |
%{_mandir}/man3/*.3* |
205 |
|
%exclude %{_libdir}/libpcreposix.so |
206 |
|
%exclude %{_mandir}/man3/pcreposix.3* |
207 |
|
|
208 |
|
%files -n %{develcpp} |
209 |
|
%{_includedir}/pcrecpp*.h |
210 |
|
%{_libdir}/libpcrecpp.so |
211 |
|
%{_libdir}/pkgconfig/libpcrecpp.pc |
212 |
|
%{_mandir}/man3/pcrecpp.3* |
213 |
|
|
214 |
|
%files -n %{develposix} |
215 |
|
%{_includedir}/pcreposix.h |
216 |
|
%{_libdir}/libpcreposix.so |
217 |
|
%{_libdir}/pkgconfig/libpcreposix.pc |
218 |
|
%{_mandir}/man3/pcreposix.3* |