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