8 |
|
|
9 |
Summary: Perl-compatible regular expression library |
Summary: Perl-compatible regular expression library |
10 |
Name: pcre |
Name: pcre |
11 |
Version: 8.12 |
Version: 8.20 |
12 |
Release: %mkrel 1 |
Release: %mkrel 2 |
13 |
License: BSD-Style |
License: BSD-Style |
14 |
Group: File tools |
Group: File tools |
15 |
URL: http://www.pcre.org/ |
URL: http://www.pcre.org/ |
22 |
Patch3: pcre-7.8-format_not_a_string_literal_and_no_format_arguments.diff |
Patch3: pcre-7.8-format_not_a_string_literal_and_no_format_arguments.diff |
23 |
# from debian: |
# from debian: |
24 |
Patch4: pcre-pcreposix-glibc-conflict.patch |
Patch4: pcre-pcreposix-glibc-conflict.patch |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|
25 |
|
|
26 |
%description |
%description |
27 |
PCRE has its own native API, but a set of "wrapper" functions that are based on |
PCRE has its own native API, but a set of "wrapper" functions that are based on |
64 |
%setup -q |
%setup -q |
65 |
%patch1 -p1 -b .detect_into_kdelibs |
%patch1 -p1 -b .detect_into_kdelibs |
66 |
%patch2 -p0 |
%patch2 -p0 |
|
#%patch3 -p0 -b .format_not_a_string_literal_and_no_format_arguments |
|
67 |
|
|
68 |
|
|
69 |
%if %{build_pcreposix_compat} |
%if %{build_pcreposix_compat} |
82 |
for i in $dirs; do |
for i in $dirs; do |
83 |
cd $i |
cd $i |
84 |
mkdir -p m4 |
mkdir -p m4 |
85 |
autoreconf -fis |
autoreconf -fi |
86 |
%configure2_5x --enable-utf8 --enable-unicode-properties |
%configure2_5x --enable-utf8 --enable-unicode-properties |
87 |
%make |
%make |
88 |
cd - |
cd - |
98 |
make check |
make check |
99 |
|
|
100 |
%install |
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
101 |
%if %{build_pcreposix_compat} |
%if %{build_pcreposix_compat} |
102 |
%makeinstall_std -C pcre-with-pcreposix_compat |
%makeinstall_std -C pcre-with-pcreposix_compat |
103 |
%endif |
%endif |
104 |
%makeinstall_std |
%makeinstall_std |
105 |
|
|
106 |
%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/pcre-config |
%multiarch_binaries %{buildroot}%{_bindir}/pcre-config |
107 |
|
|
108 |
mkdir -p $RPM_BUILD_ROOT/%_lib |
mkdir -p %{buildroot}/%_lib |
109 |
mv $RPM_BUILD_ROOT/%_libdir/lib%{name}.so.%{major}.* $RPM_BUILD_ROOT/%_lib |
mv %{buildroot}/%_libdir/lib%{name}.so.%{major}.* $RPM_BUILD_ROOT/%_lib |
110 |
cd $RPM_BUILD_ROOT/%_libdir |
cd %{buildroot}/%_libdir |
111 |
ln -s ../../%_lib/lib%{name}.so.%{major}.* . |
ln -s ../../%_lib/lib%{name}.so.%{major}.* . |
112 |
|
|
113 |
# Remove unwanted files |
# Remove unwanted files |
114 |
rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{AUTHORS,ChangeLog,COPYING,LICENCE,NEWS} |
rm -f %{buildroot}/%_docdir/pcre/{AUTHORS,ChangeLog,COPYING,LICENCE,NEWS} |
115 |
rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{pcre-config.txt,pcre.txt,pcregrep.txt} |
rm -f %{buildroot}/%_docdir/pcre/{pcre-config.txt,pcre.txt,pcregrep.txt} |
116 |
rm -f $RPM_BUILD_ROOT/%_docdir/pcre/{pcretest.txt,README} |
rm -f %{buildroot}/%_docdir/pcre/{pcretest.txt,README} |
117 |
rm -rf $RPM_BUILD_ROOT/%_docdir/pcre/html |
rm -rf %{buildroot}/%_docdir/pcre/html |
118 |
|
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a |
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
119 |
|
|
120 |
%files |
%files |
|
%defattr(-,root,root) |
|
|
|
|
121 |
%_mandir/man1/pcregrep.1* |
%_mandir/man1/pcregrep.1* |
122 |
%_mandir/man1/pcretest.1* |
%_mandir/man1/pcretest.1* |
123 |
%_bindir/pcregrep |
%_bindir/pcregrep |
126 |
|
|
127 |
# |
# |
128 |
%files -n %{libname} |
%files -n %{libname} |
|
%defattr(-,root,root) |
|
129 |
%doc AUTHORS COPYING LICENCE NEWS README |
%doc AUTHORS COPYING LICENCE NEWS README |
130 |
|
|
131 |
/%_lib/lib*.so.%{major}* |
/%_lib/lib*.so.%{major}* |
135 |
|
|
136 |
# |
# |
137 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-,root,root) |
|
138 |
%doc doc/html |
%doc doc/html |
139 |
%doc ChangeLog |
%doc ChangeLog |
140 |
|
|
|
%_libdir/lib*.a |
|
|
%_libdir/lib*.la |
|
141 |
%_libdir/lib*.so |
%_libdir/lib*.so |
142 |
%_includedir/*.h |
%_includedir/*.h |
143 |
%_libdir/pkgconfig/libpcre.pc |
%_libdir/pkgconfig/libpcre.pc |
149 |
|
|
150 |
%_mandir/man1/pcre-config.1* |
%_mandir/man1/pcre-config.1* |
151 |
%_mandir/man3/*.3* |
%_mandir/man3/*.3* |
|
|
|
|
|
|