blob: 45d84bf756d7ad09b2bf18290d713df7768514e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
# remirepo spec file for oniguruma5php
# renamed for parallel installation, from:
#
# Fedora spec file for oniguruma
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
%global libname oniguruma
%global oldsoname 5
%global newsoname 105
%undefine _changelog_trimtime
# Fedora 29 have 6.9, soname 5
# Fedora 28 have 6.8, soname 5
# Fedora 27 have 6.6, soname 4
# EPEL-7 have 5.9, soname 2
# RHEL-6 have 5.9, soname 2
%global mainver 6.9.5
%global postver rev1
Name: %{libname}%{oldsoname}php
Version: %{mainver}%{?postver:+%postver}
Release: 3%{?dist}
Summary: Regular expressions library
License: BSD
URL: https://github.com/kkos/oniguruma/
Source0: https://github.com/kkos/oniguruma/releases/download/v%{mainver}%{?postver:_%postver}/onig-%{mainver}%{?postver:-%postver}.tar.gz
# Bump soname from 5 to 105 to allow parallel installation
Patch0: onig-soname.patch
# https://github.com/kkos/oniguruma/commit/cbe9f8bd9cfc6c3c87a60fbae58fa1a85db59df0
# https://github.com/kkos/oniguruma/issues/207
Patch1: oniguruma-XXX-CVE-2020-26159.patch
BuildRequires: gcc
Obsoletes: %{libname}%{oldsoname} < %{version}-%{release}
%description
Oniguruma is a regular expressions library.
The characteristics of this library is that different character encoding
for every regular expression object can be specified.
(supported APIs: GNU regex, POSIX and Oniguruma native)
%{name} is designed to be installed beside %{libname}
and only used by PHP binaries (mbstring extension).
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?isa} = %{version}-%{release}
Obsoletes: %{libname}%{oldsoname}-devel < %{version}-%{release}
Conflicts: %{libname}-devel < %{version}
Provides: %{libname}-devel = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n onig-%{mainver}
%{__sed} -i.multilib -e 's|-L@libdir@||' onig-config.in
%patch0 -p1 -b .bump
%patch1 -p1 -b .CVE-2020-26159
%if 0
for f in \
README.ja \
doc/API.ja \
doc/FAQ.ja \
doc/RE.ja
do
iconv -f EUC-JP -t UTF-8 $f > $f.tmp && \
( touch -r $f $f.tmp ; %{__mv} -f $f.tmp $f ) || \
%{__rm} -f $f.tmp
done
%endif
%build
# This package fails its testsuite when compiled with LTO, but the real problem
# is that it ends up mixing and matching regexp bits between itself and glibc.
# Disable LTO
%define _lto_cflags %{nil}
%configure \
--enable-posix-api \
--disable-silent-rules \
--disable-static \
--with-rubydir=%{_bindir}
%{__make} %{?_smp_mflags}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL="%{__install} -c -p"
find $RPM_BUILD_ROOT -name '*.la' \
-exec %{__rm} -f {} ';'
%check
%if 0%{?rhel} == 6
sed -e '/^test_regset_LDADD/s/$/ -lrt/' -i test/Makefile
%endif
%{__make} check
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%doc AUTHORS
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc HISTORY
%doc README.md
%doc index.html
%lang(ja) %doc README_japanese
%lang(ja) %doc index_ja.html
%{_libdir}/libonig.so.%{newsoname}*
%files devel
%doc doc/API
%doc doc/CALLOUTS.API
%doc doc/CALLOUTS.BUILTIN
%doc doc/FAQ
%doc doc/RE
%doc doc/SYNTAX.md
%doc doc/UNICODE_PROPERTIES
%lang(ja) %doc doc/API.ja
%lang(ja) %doc doc/CALLOUTS.API.ja
%lang(ja) %doc doc/CALLOUTS.BUILTIN.ja
%lang(ja) %doc doc/FAQ.ja
%lang(ja) %doc doc/RE.ja
%{_bindir}/onig-config
%{_libdir}/libonig.so
%{_includedir}/onig*.h
%{_libdir}/pkgconfig/%{libname}.pc
%changelog
* Thu Oct 1 2020 Remi Collet <remi@remirepo.net> -6.9.5+rev1-3
- From Fedora: Apply upstream fix for CVE-2020-26159
* Thu Oct 1 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.9.5-3.rev1
- Apply upstream fix for CVE-2020-26159
* Tue Jun 9 2020 Remi Collet <remi@remirepo.net> -6.9.5+rev1-2
- osbolete oniguruna5
* Thu May 28 2020 Remi Collet <remi@remirepo.net> -6.9.5+rev1-1
- rename to oniguruna5php and bump soname to 105
* Thu May 14 2020 Remi Collet <remi@remirepo.net> -6.9.5+rev1-1
- update to 6.9.5-rev1 (from Fedora)
* Fri Nov 29 2019 Remi Collet <remi@remirepo.net> -6.9.4-1
- update to 6.9.4 (from Fedora)
- report build failure on EL-6
https://github.com/kkos/oniguruma/issues/166
* Tue Oct 8 2019 Remi Collet <remi@remirepo.net> -6.9.3-3
- fix heap-buffer-overflow using upstream patch
* Thu Sep 26 2019 Remi Collet <remi@remirepo.net> -6.9.3-2
- fix heap-buffer-overflow using upstream patch
https://bugzilla.redhat.com/1755880
* Tue Aug 27 2019 Remi Collet <remi@remirepo.net> -6.9.3-1
- update to 6.9.3 (from Fedora)
* Mon Jul 15 2019 Remi Collet <remi@remirepo.net> -6.9.2-2
- add security fixes from Fedora
* Fri Jul 12 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.9.2-2
- Upstream patch for CVE-2019-13225 (#1728966)
- NON-upstream patch for CVE-2019-13224 (#1728971)
* Mon May 13 2019 Remi Collet <remi@remirepo.net> -6.9.2-1
- update to 6.9.2
* Mon Apr 1 2019 Remi Collet <remi@remirepo.net> -6.9.1-1
- rename to oniguruma5 to allow parallel installation
beside old oniguruma version
* Wed Dec 12 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.9.1-1
- 6.9.1
* Wed Sep 12 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.9.0-2
- 6.9.0
* Sat Sep 8 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.8.2-3
- Bump release
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Apr 23 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.8.2-1
- 6.8.2
* Sun Apr 1 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.8.1-1
- 6.8.1
* Fri Feb 9 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.7.1-1
- 6.7.1
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Dec 31 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.7.0-1
- 6.7.0
* Tue Sep 5 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.6.1-1
- 6.6.1
* Sun Aug 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.5.0-1
- 6.5.0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jul 5 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.4.0-1
- 6.4.0
* Tue May 30 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.3.0-1
- 6.3.0
- CVEs 2017-9226 CVE-2017-9225 CVE-2017-9224 CVE-2017-9227 CVE-2017-9229 CVE-2017-9228
* Wed Apr 26 2017 Nils Philippsen <nils@redhat.com> - 6.2.0-2
- remove unnecessary BR: ruby
* Fri Apr 21 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.2.0-1
- 6.2.0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Dec 28 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.1.3-1
- 6.1.3
* Fri Nov 11 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.1.2-1
- 6.1.2
* Sun Oct 30 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.1.1-1
- 6.1.1
* Mon Jul 11 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.0.0-1
- 6.0.0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Jan 2 2015 <mtasaka@fedoraproject.org> - 5.9.6-1
- 5.9.6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Nov 11 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.9.5-1
- 5.9.5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Apr 29 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.9.4-1
- 5.9.4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jan 4 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.9.3-1
- 5.9.3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jan 5 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 5.9.2-3
- F-17: rebuild against gcc47
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Jan 15 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 5.9.2-1
- 5.9.2
* Sat Jul 25 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 5.9.1-3
- F-12: Mass rebuild
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 5.9.1-2
- F-11: Mass rebuild
* Sat Feb 9 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
- Rebuild against gcc43
* Thu Dec 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 5.9.1-1
- 5.9.1
* Wed Dec 5 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 5.9.0-1
- Initial packaging
|