|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global with_tests 0%{!?_without_tests:1}
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: libzip
|
|
|
|
|
Version: 1.5.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 1.7.3
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: C library for reading, creating, and modifying zip archives
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -13,6 +13,7 @@ BuildRequires: gcc
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: xz-devel
|
|
|
|
|
BuildRequires: cmake >= 3.0.2
|
|
|
|
|
# Needed to run the test suite
|
|
|
|
|
# find regress/ -type f | /usr/lib/rpm/perl.req
|
|
|
|
@ -63,6 +64,10 @@ The %{name}-tools package provides command line tools split off %{name}:
|
|
|
|
|
# unwanted in package documentation
|
|
|
|
|
rm INSTALL.md
|
|
|
|
|
|
|
|
|
|
# drop skipped test which make test suite fails (cmake issue ?)
|
|
|
|
|
sed -e '/clone-fs-/d' \
|
|
|
|
|
-i regress/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake \
|
|
|
|
@ -72,22 +77,22 @@ rm INSTALL.md
|
|
|
|
|
-DENABLE_OPENSSL:BOOL=ON \
|
|
|
|
|
-DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
|
|
|
|
|
-DENABLE_BZIP2:BOOL=ON \
|
|
|
|
|
-DENABLE_LZMA:BOOL=ON \
|
|
|
|
|
-DBUILD_TOOLS:BOOL=ON \
|
|
|
|
|
-DBUILD_REGRESS:BOOL=ON \
|
|
|
|
|
-DBUILD_EXAMPLES:BOOL=OFF \
|
|
|
|
|
-DBUILD_DOC:BOOL=ON \
|
|
|
|
|
.
|
|
|
|
|
-DBUILD_DOC:BOOL=ON
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL='install -p'
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with_tests}
|
|
|
|
|
make check
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%ctest
|
|
|
|
|
%else
|
|
|
|
|
: Test suite disabled
|
|
|
|
|
%endif
|
|
|
|
@ -112,17 +117,73 @@ make check
|
|
|
|
|
%{_includedir}/zipconf*.h
|
|
|
|
|
%{_libdir}/libzip.so
|
|
|
|
|
%{_libdir}/pkgconfig/libzip.pc
|
|
|
|
|
%{_libdir}/cmake/libzip
|
|
|
|
|
%{_mandir}/man3/libzip*
|
|
|
|
|
%{_mandir}/man3/zip*
|
|
|
|
|
%{_mandir}/man3/ZIP*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue May 7 2019 Remi Collet <rcollet@redhat.com> - 1.5.2-1
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.3-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.3-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.3-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 21 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.7.3-2
|
|
|
|
|
- use %%cmake_build, %%cmake_install, %ctest
|
|
|
|
|
|
|
|
|
|
* 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-1
|
|
|
|
|
- update to 1.7.2
|
|
|
|
|
- fix installation layout using merged patch from
|
|
|
|
|
https://github.com/nih-at/libzip/pull/190
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 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
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 24 2020 Remi Collet <remi@remirepo.net> - 1.6.0-1
|
|
|
|
|
- update to 1.6.0
|
|
|
|
|
- enable lzma support
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|