726d0a
%global with_tests     0%{!?_without_tests:1}
726d0a
726d0a
Name:    libzip
726d0a
Version: 1.6.1
726d0a
Release: 1%{?dist}
726d0a
Summary: C library for reading, creating, and modifying zip archives
726d0a
726d0a
License: BSD
726d0a
URL:     https://libzip.org/
726d0a
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
726d0a
726d0a
BuildRequires:  gcc
726d0a
BuildRequires:  zlib-devel
726d0a
BuildRequires:  bzip2-devel
726d0a
BuildRequires:  openssl-devel
726d0a
BuildRequires:  xz-devel
726d0a
BuildRequires:  cmake >= 3.0.2
726d0a
# Needed to run the test suite
726d0a
# find regress/ -type f | /usr/lib/rpm/perl.req
726d0a
# find regress/ -type f | /usr/lib/rpm/perl.prov
726d0a
BuildRequires:  perl-interpreter
726d0a
BuildRequires:  perl(Cwd)
726d0a
BuildRequires:  perl(File::Copy)
726d0a
BuildRequires:  perl(File::Path)
726d0a
BuildRequires:  perl(Getopt::Long)
726d0a
BuildRequires:  perl(IPC::Open3)
726d0a
BuildRequires:  perl(Storable)
726d0a
BuildRequires:  perl(Symbol)
726d0a
BuildRequires:  perl(UNIVERSAL)
726d0a
BuildRequires:  perl(strict)
726d0a
BuildRequires:  perl(warnings)
726d0a
726d0a
726d0a
%description
726d0a
libzip is a C library for reading, creating, and modifying zip archives. Files
726d0a
can be added from data buffers, files, or compressed data copied directly from 
726d0a
other zip archives. Changes made without closing the archive can be reverted. 
726d0a
The API is documented by man pages.
726d0a
726d0a
726d0a
%package devel
726d0a
Summary:  Development files for %{name}
726d0a
Requires: %{name}%{?_isa} = %{version}-%{release}
726d0a
726d0a
%description devel
726d0a
The %{name}-devel package contains libraries and header files for
726d0a
developing applications that use %{name}.
726d0a
726d0a
726d0a
%package tools
726d0a
Summary:  Command line tools from %{name}
726d0a
Requires: %{name}%{?_isa} = %{version}-%{release}
726d0a
726d0a
%description tools
726d0a
The %{name}-tools package provides command line tools split off %{name}:
726d0a
- zipcmp
726d0a
- zipmerge
726d0a
- ziptool
726d0a
726d0a
726d0a
%prep
726d0a
%autosetup -p1
726d0a
726d0a
# unwanted in package documentation
726d0a
rm INSTALL.md
726d0a
726d0a
726d0a
%build
726d0a
%cmake \
726d0a
  -DENABLE_COMMONCRYPTO:BOOL=OFF \
726d0a
  -DENABLE_GNUTLS:BOOL=OFF \
726d0a
  -DENABLE_MBEDTLS:BOOL=OFF \
726d0a
  -DENABLE_OPENSSL:BOOL=ON \
726d0a
  -DENABLE_WINDOWS_CRYPTO:BOOL=OFF \
726d0a
  -DENABLE_BZIP2:BOOL=ON \
726d0a
  -DENABLE_LZMA:BOOL=ON \
726d0a
  -DBUILD_TOOLS:BOOL=ON \
726d0a
  -DBUILD_REGRESS:BOOL=ON \
726d0a
  -DBUILD_EXAMPLES:BOOL=OFF \
726d0a
  -DBUILD_DOC:BOOL=ON \
726d0a
  .
726d0a
726d0a
make %{?_smp_mflags}
726d0a
726d0a
726d0a
%install
726d0a
make install DESTDIR=%{buildroot} INSTALL='install -p'
726d0a
726d0a
726d0a
%check
726d0a
%if %{with_tests}
726d0a
make check
726d0a
%else
726d0a
: Test suite disabled
726d0a
%endif
726d0a
726d0a
726d0a
%ldconfig_scriptlets
726d0a
726d0a
726d0a
%files
726d0a
%license LICENSE
726d0a
%{_libdir}/libzip.so.5*
726d0a
726d0a
%files tools
726d0a
%{_bindir}/zipcmp
726d0a
%{_bindir}/zipmerge
726d0a
%{_bindir}/ziptool
726d0a
%{_mandir}/man1/zip*
726d0a
726d0a
%files devel
726d0a
%doc AUTHORS THANKS *.md
726d0a
%{_includedir}/zip.h
726d0a
%{_includedir}/zipconf*.h
726d0a
%{_libdir}/libzip.so
726d0a
%{_libdir}/pkgconfig/libzip.pc
726d0a
%{_mandir}/man3/libzip*
726d0a
%{_mandir}/man3/zip*
726d0a
%{_mandir}/man3/ZIP*
726d0a
726d0a
726d0a
%changelog
726d0a
* Thu May 14 2020 Remi Collet <rcollet@redhat.com> - 1.6.1-1
726d0a
- update to 1.6.1
726d0a
- enable lzma support
726d0a
726d0a
* Tue May  7 2019 Remi Collet <rcollet@redhat.com> - 1.5.2-1
726d0a
- update to 1.5.2
726d0a
- add all explicit cmake options to ensure openssl is used
726d0a
  even in local build with other lilbraries available
726d0a
726d0a
* Wed Apr 11 2018 Remi Collet <remi@remirepo.net> - 1.5.1-1
726d0a
- update to 1.5.1
726d0a
- drop dependency on zlib-devel and bzip2-devel no more
726d0a
  referenced in libzip.pc
726d0a
- drop rpath patch merged upstream
726d0a
726d0a
* Thu Mar 15 2018 Remi Collet <remi@remirepo.net> - 1.5.0-2
726d0a
- add dependency on zlib-devel and bzip2-devel #1556068
726d0a
726d0a
* Mon Mar 12 2018 Remi Collet <remi@remirepo.net> - 1.5.0-1
726d0a
- update to 1.5.0
726d0a
- use openssl for cryptography instead of bundled custom AES implementation
726d0a
726d0a
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 1.4.0-5
726d0a
- missing BR on C compiler
726d0a
- use ldconfig_scriptlets
726d0a
726d0a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
726d0a
726d0a
* Fri Jan  5 2018 Remi Collet <remi@remirepo.net> - 1.4.0-3
726d0a
- add upstream patch and drop multilib hack
726d0a
726d0a
* Tue Jan  2 2018 Remi Collet <remi@remirepo.net> - 1.4.0-2
726d0a
- re-add multilib hack #1529886
726d0a
726d0a
* Sat Dec 30 2017 Remi Collet <remi@remirepo.net> - 1.4.0-1
726d0a
- update to 1.4.0
726d0a
- switch to cmake
726d0a
- add upstream patch for lib64
726d0a
726d0a
* Mon Nov 20 2017 Remi Collet <remi@remirepo.net> - 1.3.2-1
726d0a
- update to 1.3.2
726d0a
- drop multilib header hack
726d0a
- change URL to https://libzip.org/
726d0a
- test suite now ok on all arch
726d0a
726d0a
* Wed Sep 06 2017 Pavel Raiskup <praiskup@redhat.com> - 1.3.0-2
726d0a
- use multilib-rpm-config for multilib hacks
726d0a
726d0a
* Mon Sep  4 2017 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
726d0a
- update to 1.3.0
726d0a
- add dependency on bzip2 library
726d0a
- ignore 3 tests failing on 32-bit
726d0a
726d0a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
726d0a
726d0a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
726d0a
726d0a
* Tue Feb 28 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
726d0a
- update to 1.2.0
726d0a
- soname bump to 5
726d0a
726d0a
* Tue Feb 28 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-0
726d0a
- update to 1.2.0
726d0a
- soname bump to 5
726d0a
- temporarily keep libzip.so.4
726d0a
726d0a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
726d0a
726d0a
* Sat May 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1.3-1
726d0a
- update to 1.1.3
726d0a
726d0a
* Sat Feb 20 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-1
726d0a
- update to 1.1.2
726d0a
- add BR on perl(Getopt::Long)
726d0a
726d0a
* Sat Feb 13 2016 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
726d0a
- update to 1.1.1
726d0a
726d0a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
726d0a
726d0a
* Thu Jan 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1-1
726d0a
- update to 1.1
726d0a
- new ziptool command
726d0a
- add fix for undefined optopt in ziptool.c (upstream)
726d0a
726d0a
* Fri Dec  4 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-3
726d0a
- fix libzip-tools summary #1288424
726d0a
726d0a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
726d0a
726d0a
* Tue May  5 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
726d0a
- update to 1.0.1
726d0a
- soname bump from .2 to .4
726d0a
- drop ziptorrent
726d0a
- create "tools" sub package
726d0a
726d0a
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-5
726d0a
- actually apply patch (using %%autosetup)
726d0a
726d0a
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-4
726d0a
- CVE-2015-2331: integer overflow when processing ZIP archives (#1204676,#1204677)
726d0a
726d0a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-3
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
726d0a
726d0a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
726d0a
726d0a
* Thu Dec 19 2013 Remi Collet <remi@fedoraproject.org> - 0.11.2-1
726d0a
- update to 0.11.2
726d0a
- run test during build
726d0a
726d0a
* Thu Oct 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-3
726d0a
- replace php patch with upstream one
726d0a
726d0a
* Fri Aug 23 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-2
726d0a
- include API-CHANGES and LICENSE in package doc
726d0a
726d0a
* Wed Aug 21 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-1
726d0a
- update to 0.11.1
726d0a
726d0a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-7
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
726d0a
726d0a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-6
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
726d0a
726d0a
* Mon Oct 15 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-5
726d0a
- fix typo in multiarch (#866171)
726d0a
726d0a
* Wed Sep 05 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-4
726d0a
- Warning about conflicting contexts for /usr/lib64/libzip/include/zipconf.h versus /usr/include/zipconf-64.h (#853954)
726d0a
726d0a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
726d0a
726d0a
* Tue Jul 10 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-2
726d0a
- spec cleanup, better multilib fix
726d0a
726d0a
* Wed Mar 21 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-1
726d0a
- update to 0.10.1 (security fix only)
726d0a
- fixes for CVE-2012-1162 and CVE-2012-1163
726d0a
726d0a
* Sun Mar 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-2
726d0a
- try to fix ARM issue (#799684)
726d0a
726d0a
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-1
726d0a
- update to 0.10
726d0a
- apply patch with changes from php bundled lib (thanks spot)
726d0a
- handle multiarch headers (ex from MySQL)
726d0a
726d0a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
726d0a
726d0a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
726d0a
726d0a
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-2
726d0a
- Cleaned up pkgconfig deps which are now automatically handled by RPM.
726d0a
726d0a
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-1
726d0a
- Updated to libzip 0.9.3
726d0a
726d0a
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.9-4
726d0a
- Use bzipped upstream tarball.
726d0a
726d0a
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
726d0a
726d0a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
726d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
726d0a
726d0a
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
726d0a
- libzip-0.9
726d0a
726d0a
* Sat Feb 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.8-5
726d0a
- rebuild for new gcc-4.3
726d0a
726d0a
* Fri Jan 11 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8-4
726d0a
- use better workaround for removing rpaths
726d0a
726d0a
* Tue Nov 20 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-3
726d0a
- require pkgconfig in devel subpkg
726d0a
- move api description to devel subpkg
726d0a
- keep timestamps in %%install
726d0a
- avoid lib64 rpaths 
726d0a
726d0a
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-2
726d0a
- Change License to BSD
726d0a
726d0a
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-1
726d0a
- Initial version for Fedora