blob: 74613caecdc1cb98cf7682aaf628113efac3b635 (
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
|
# remirepo spec file for libzip and remi-libzip
# renamed for parallel installation, from:
#
# Fedora spec file for libzip
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
## FOR EL-8
## 1st build --with move_to_opt for SCL
## 2nd build --without move_to_opt for module
%global libname libzip
%global soname 5
%bcond_without tests
%if 0%{?vendeur:1} && 0%{?rhel} >= 7
%bcond_without move_to_opt
%else
%bcond_with move_to_opt
%endif
%if %{with move_to_opt}
%global _prefix /opt/%{?vendeur:%{vendeur}/}%{libname}
%global __arch_install_post /bin/true
Name: %{?vendeur:%{vendeur}-}%{libname}
%else
Name: %{libname}
%endif
Version: 1.9.2
Release: 1%{?dist}
Summary: C library for reading, creating, and modifying zip archives
License: BSD
URL: https://libzip.org/
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: zlib-devel >= 1.1.2
BuildRequires: bzip2-devel
BuildRequires: openssl-devel
BuildRequires: xz-devel >= 5.2
# for ZSTD_minCLevel
BuildRequires: libzstd-devel >= 1.3.6
Requires: libzstd%{?_isa} >= 1.3.6
%if 0%{?rhel} == 7
BuildRequires: cmake3 >= 3.0.2
%else
BuildRequires: cmake >= 3.0.2
%endif
# Needed to run the test suite
# find regress/ -type f | /usr/lib/rpm/perl.req
# find regress/ -type f | /usr/lib/rpm/perl.prov
BuildRequires: perl
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Path)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Storable)
BuildRequires: perl(Symbol)
BuildRequires: perl(UNIVERSAL)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
%if %{with move_to_opt}
%if 0%{?rhel} == 7
Obsoletes: libzip5 < %{version}
%endif
%if 0%{?rhel} == 8
Obsoletes: php56-libzip < %{version}
Obsoletes: php70-libzip < %{version}
Obsoletes: php71-libzip < %{version}
Obsoletes: php72-libzip < %{version}
Obsoletes: php73-libzip < %{version}
Obsoletes: php74-libzip < %{version}
Obsoletes: php80-libzip < %{version}
Obsoletes: php81-libzip < %{version}
Obsoletes: php82-libzip < %{version}
%endif
# Filter in the /opt installation
%{?filter_from_provides: %filter_from_provides /libzip/d}
%{?filter_from_requires: %filter_from_requires /libzip/d}
%{?filter_setup}
%global __provides_exclude ^(libzip\\.so|cmake|pkgconfig).*$
%global __requires_exclude ^libzip\\.so.*$
%endif
%description
libzip is a C library for reading, creating, and modifying zip archives. Files
can be added from data buffers, files, or compressed data copied directly from
other zip archives. Changes made without closing the archive can be reverted.
The API is documented by man pages.
%if "%{name}" != "%{libname}"
%{name} is designed to be installed beside %{libname}.
%endif
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%if %{with move_to_opt}
%if 0%{?rhel} == 7
Obsoletes: libzip5-devel < %{version}
%endif
%if 0%{?rhel} == 8
Obsoletes: php56-libzip-devel < %{version}
Obsoletes: php70-libzip-devel < %{version}
Obsoletes: php71-libzip-devel < %{version}
Obsoletes: php72-libzip-devel < %{version}
Obsoletes: php73-libzip-devel < %{version}
Obsoletes: php74-libzip-devel < %{version}
Obsoletes: php80-libzip-devel < %{version}
Obsoletes: php81-libzip-devel < %{version}
Obsoletes: php82-libzip-devel < %{version}
%endif
%endif
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package tools
Summary: Command line tools from %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%if %{with move_to_opt}
%if 0%{?rhel} == 7
Obsoletes: libzip5-tools < %{version}
%endif
%if 0%{?rhel} == 8
Obsoletes: php56-libzip-tools < %{version}
Obsoletes: php70-libzip-tools < %{version}
Obsoletes: php71-libzip-tools < %{version}
Obsoletes: php72-libzip-tools < %{version}
Obsoletes: php73-libzip-tools < %{version}
Obsoletes: php74-libzip-tools < %{version}
Obsoletes: php80-libzip-tools < %{version}
Obsoletes: php81-libzip-tools < %{version}
Obsoletes: php82-libzip-tools < %{version}
%endif
%endif
%description tools
The %{name}-tools package provides command line tools split off %{name}:
- zipcmp
- zipmerge
- ziptool
%prep
%setup -q -n %{libname}-%{version}
: ========== BUILD in %{_prefix} ==========
# unwanted in package documentation
rm INSTALL.md
# drop skipped test which make test suite fails (cmake issue ?)
sed -e '/clone-fs-/d' \
%if 0%{?rhel} == 7
-e '/add_from_stdin/d' \
%endif
-i regress/CMakeLists.txt
%build
%if 0%{?rhel} == 7
sed -e 's/COMMAND cmake /COMMAND cmake3 /' -i CMakeLists.txt regress/CMakeLists.txt
%cmake3 \
%else
%cmake . \
%endif
-DENABLE_COMMONCRYPTO:BOOL=OFF \
-DENABLE_GNUTLS:BOOL=OFF \
-DENABLE_MBEDTLS:BOOL=OFF \
-DENABLE_OPENSSL:BOOL=ON \
-DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
-DENABLE_BZIP2:BOOL=ON \
-DENABLE_LZMA:BOOL=ON \
-DENABLE_ZSTD:BOOL=ON \
-DBUILD_TOOLS:BOOL=ON \
-DBUILD_REGRESS:BOOL=ON \
-DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_DOC:BOOL=ON \
.
%if 0%{?cmake_build:1}
%cmake_build
%else
make %{?_smp_mflags}
%endif
%install
mkdir -p %{buildroot}%{_licensedir}
%if 0%{?cmake_install:1}
%cmake_install
%else
make install DESTDIR=%{buildroot} INSTALL='install -p'
%endif
%if %{with move_to_opt}
mkdir -p %{buildroot}%{_datadir}/licenses
mkdir -p %{buildroot}%{_datadir}/doc
%endif
%check
%if %{with tests}
%if 0%{?ctest:1}
%ctest
%else
make check
%endif
%else
: Test suite disabled
%endif
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%license LICENSE
%{_libdir}/libzip.so.%{soname}*
%if %{with move_to_opt}
%dir %{_prefix}
%dir %{_mandir}
%dir %{_libdir}
%dir %{_libdir}
%dir %{_datadir}
%dir %{_datadir}/licenses
%endif
%files tools
%{_bindir}/zipcmp
%{_bindir}/zipmerge
%{_bindir}/ziptool
%{_mandir}/man1/zip*
%if %{with move_to_opt}
%dir %{_bindir}
%dir %{_mandir}/man1
%endif
%files devel
%doc AUTHORS THANKS *.md
%{_includedir}/zip.h
%{_includedir}/zipconf*.h
%{_libdir}/libzip.so
%{_libdir}/pkgconfig/libzip.pc
%{_libdir}/cmake/libzip
%{_mandir}/man3/libzip*
%{_mandir}/man3/zip*
%{_mandir}/man3/ZIP*
%if %{with move_to_opt}
%dir %{_includedir}
%dir %{_mandir}/man3
%dir %{_libdir}/pkgconfig
%dir %{_libdir}/cmake
%dir %{_datadir}/doc
%endif
%changelog
* Tue Jun 28 2022 Remi Collet <remi@remirepo.net> - 1.9.2-1
- update to 1.9.1
- also build as remi-libzip for EL-7 and EL-8
* Tue Jun 28 2022 Remi Collet <remi@remirepo.net> - 1.9.1-1
- update to 1.9.1
* Tue Jun 28 2022 Remi Collet <remi@remirepo.net> - 1.9.0-2
- add upstream patch for zip_file_is_seekable reported as
https://github.com/nih-at/libzip/issues/297
https://github.com/nih-at/libzip/issues/301
* Tue Jun 14 2022 Remi Collet <remi@remirepo.net> - 1.9.0-1
- update to 1.9.0
* Mon Nov 8 2021 Remi Collet <remi@remirepo.net> - 1.8.0-3
- build as remi-libzip for EL-9
* Mon Jun 21 2021 Remi Collet <remi@remirepo.net> - 1.8.0-2
- ensure libzstd >= 1.3.6 is used
* Sat Jun 19 2021 Remi Collet <remi@remirepo.net> - 1.8.0-1
- update to 1.8.0
- enable zstd compression support
* Thu Nov 5 2020 Remi Collet <remi@remirepo.net> - 1.7.3-2
- adapt for SCL build
* Wed Jul 15 2020 Remi Collet <remi@remirepo.net> - 1.7.3-1
- update to 1.7.3
- drop patch merged upstream
* Mon Jul 13 2020 Remi Collet <remi@remirepo.net> - 1.7.2-2
- test build for upstream fix
* Mon Jul 13 2020 Remi Collet <remi@remirepo.net> - 1.7.2-1
- update to 1.7.2
- fix installation layout using patch from
https://github.com/nih-at/libzip/pull/190
- fix pkgconfig usability using patch from
https://github.com/nih-at/libzip/pull/191
* Sun Jun 14 2020 Remi Collet <remi@remirepo.net> - 1.7.1-1
- update to 1.7.1
* Fri Jun 5 2020 Remi Collet <remi@remirepo.net> - 1.7.0-1
- update to 1.7.0
- really enable lzma support (excepted on EL-6)
- patch zipconf.h to re-add missing LIBZIP_VERSION_* macros
* Mon Feb 3 2020 Remi Collet <remi@remirepo.net> - 1.6.1-1
- update to 1.6.1
* Fri Jan 24 2020 Remi Collet <remi@remirepo.net> - 1.6.0-1
- update to 1.6.0
- enable lzma support (excepted on EL-6)
* Tue Mar 12 2019 Remi Collet <remi@remirepo.net> - 1.5.2-1
- update to 1.5.2
- add all explicit cmake options to ensure openssl is used
even in local build with other lilbraries available
* Wed Apr 11 2018 Remi Collet <remi@remirepo.net> - 1.5.1-1
- update to 1.5.1
- drop dependency on zlib-devel and bzip2-devel no more
referenced in libzip.pc
- drop rpath patch merged upstream
* Thu Mar 15 2018 Remi Collet <remi@remirepo.net> - 1.5.0-2
- add dependency on zlib-devel and bzip2-devel #1556068
* Mon Mar 12 2018 Remi Collet <remi@remirepo.net> - 1.5.0-1
- update to 1.5.0
- use openssl for cryptography instead of bundled custom AES implementation
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 1.4.0-5
- missing BR on C compiler
- drop ldconfig scriptlets (F28+)
* Fri Jan 5 2018 Remi Collet <remi@remirepo.net> - 1.4.0-3
- add upstream patch and drop multilib hack
* Tue Jan 2 2018 Remi Collet <remi@remirepo.net> - 1.4.0-2
- re-add multilib hack #1529886
* Sat Dec 30 2017 Remi Collet <remi@remirepo.net> - 1.4.0-1
- update to 1.4.0
- switch to cmake
- add upstream patch for lib64
* Mon Nov 20 2017 Remi Collet <remi@remirepo.net> - 1.3.2-1
- update to 1.3.2
* Mon Nov 20 2017 Remi Collet <remi@remirepo.net> - 1.3.1-2
- add upstream patch for regression in 1.3.1
* Mon Nov 20 2017 Remi Collet <remi@remirepo.net> - 1.3.1-1
- update to 1.3.1
- drop multilib header hack
- change URL to https://libzip.org/
* Fri Oct 6 2017 Remi Collet <remi@fedoraproject.org> - 1.3.0-2
- test build
* Mon Sep 4 2017 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
- update to 1.3.0
- add dependency on bzip2 library
- ignore 3 tests failing on 32-bit
* Sun Feb 19 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
- update to 1.2.0
- rename to libzip5 for new soname
* Sat May 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1.3-1
- update to 1.1.3
* Sat Feb 20 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-1
- update to 1.1.2
* Sat Feb 13 2016 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
- update to 1.1.1
* Thu Jan 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1-1
- update to 1.1
- new ziptool command
- add fix for undefined optopt in ziptool.c (upstream)
* Thu Jan 14 2016 Remi Collet <remi@fedoraproject.org> - 1.0.1-3
- libzip obsoletes libzip-last
* Tue May 5 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
- update to 1.0.1
- soname bump from .2 to .4
- drop ziptorrent
- create "tools" sub package
- rename to libzip-last to allow parallel installation
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-5
- actually apply patch (using %%autosetup)
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-4
- CVE-2015-2331: integer overflow when processing ZIP archives (#1204676,#1204677)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Dec 19 2013 Remi Collet <remi@fedoraproject.org> - 0.11.2-1
- update to 0.11.2
- run test during build
* Thu Oct 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-3
- replace php patch with upstream one
* Fri Aug 23 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-2
- include API-CHANGES and LICENSE in package doc
* Thu Aug 08 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-1
- update to 0.11.1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Oct 15 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-5
- fix typo in multiarch (#866171)
* Wed Sep 05 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-4
- Warning about conflicting contexts for /usr/lib64/libzip/include/zipconf.h versus /usr/include/zipconf-64.h (#853954)
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 10 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-2
- spec cleanup, better multilib fix
* Wed Mar 21 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-1
- update to 0.10.1 (security fix only)
- fixes for CVE-2012-1162 and CVE-2012-1163
* Sun Mar 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-2
- try to fix ARM issue (#799684)
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-1
- update to 0.10
- apply patch with changes from php bundled lib (thanks spot)
- handle multiarch headers (ex from MySQL)
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-2
- Cleaned up pkgconfig deps which are now automatically handled by RPM.
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-1
- Updated to libzip 0.9.3
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.9-4
- Use bzipped upstream tarball.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
- libzip-0.9
* Sat Feb 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.8-5
- rebuild for new gcc-4.3
* Fri Jan 11 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8-4
- use better workaround for removing rpaths
* Tue Nov 20 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-3
- require pkgconfig in devel subpkg
- move api description to devel subpkg
- keep timestamps in %%install
- avoid lib64 rpaths
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-2
- Change License to BSD
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-1
- Initial version for Fedora
|