c92631f
%global with_tests     0%{!?_without_tests:1}
07091b9
a5a1628
Name:    libzip
9db7c0c
Version: 1.3.2
9db7c0c
Release: 1%{?dist}
a5a1628
Summary: C library for reading, creating, and modifying zip archives
a5a1628
a5a1628
License: BSD
9db7c0c
URL:     https://libzip.org/
9db7c0c
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
07091b9
94a4bd1
# specific AES crypto for WinZip compatibility
94a4bd1
Provides: bundled(gladman-fcrypt)
94a4bd1
24f9322
BuildRequires:  zlib-devel
eb5bc55
BuildRequires:  bzip2-devel
24f9322
# Needed to run the test suite
24f9322
# find regress/ -type f | /usr/lib/rpm/perl.req
d7d6a87
# find regress/ -type f | /usr/lib/rpm/perl.prov
feacd6e
BuildRequires:  perl-interpreter
24f9322
BuildRequires:  perl(Cwd)
24f9322
BuildRequires:  perl(File::Copy)
24f9322
BuildRequires:  perl(File::Path)
9d38fc6
BuildRequires:  perl(Getopt::Long)
24f9322
BuildRequires:  perl(IPC::Open3)
eb5bc55
BuildRequires:  perl(Storable)
24f9322
BuildRequires:  perl(Symbol)
24f9322
BuildRequires:  perl(UNIVERSAL)
24f9322
BuildRequires:  perl(strict)
24f9322
BuildRequires:  perl(warnings)
24f9322
07091b9
07091b9
%description
07091b9
libzip is a C library for reading, creating, and modifying zip archives. Files
07091b9
can be added from data buffers, files, or compressed data copied directly from 
07091b9
other zip archives. Changes made without closing the archive can be reverted. 
07091b9
The API is documented by man pages.
07091b9
24f9322
07091b9
%package devel
24f9322
Summary:  Development files for %{name}
a5a1628
Requires: %{name}%{?_isa} = %{version}-%{release}
24f9322
07091b9
%description devel
07091b9
The %{name}-devel package contains libraries and header files for
07091b9
developing applications that use %{name}.
07091b9
07091b9
24f9322
%package tools
442a180
Summary:  Command line tools from %{name}
24f9322
Requires: %{name}%{?_isa} = %{version}-%{release}
24f9322
24f9322
%description tools
24f9322
The %{name}-tools package provides command line tools split off %{name}:
24f9322
- zipcmp
24f9322
- zipmerge
ba941a7
- ziptool
24f9322
24f9322
07091b9
%prep
Rex Dieter 7eeca0f
%autosetup -p1
07091b9
6147457
# Avoid lib64 rpaths (FIXME: recheck this on newer releases)
a5a1628
%if "%{_libdir}" != "/usr/lib"
a5a1628
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
a5a1628
#autoreconf -f -i
a5a1628
%endif
07091b9
07091b9
07091b9
%build
a5a1628
%configure \
a5a1628
  --disable-static
a5a1628
07091b9
make %{?_smp_mflags}
07091b9
07091b9
07091b9
%install
a5a1628
make install DESTDIR=%{buildroot} INSTALL='install -p'
07091b9
a5a1628
## unpackaged files
a5a1628
rm -fv %{buildroot}%{_libdir}/lib*.la
a5a1628
07091b9
05f1846
%check
24f9322
%if %{with_tests}
05f1846
make check
24f9322
%else
24f9322
: Test suite disabled
24f9322
%endif
05f1846
05f1846
a5a1628
%post -p /sbin/ldconfig
a5a1628
%postun -p /sbin/ldconfig
07091b9
24f9322
07091b9
%files
24f9322
%license LICENSE
94a4bd1
%{_libdir}/libzip.so.5*
24f9322
24f9322
%files tools
b0d844f
%{_bindir}/zipcmp
b0d844f
%{_bindir}/zipmerge
ba941a7
%{_bindir}/ziptool
24f9322
%{_mandir}/man1/zip*
07091b9
07091b9
%files devel
4fdb79c
%doc API-CHANGES AUTHORS THANKS *.md
a5a1628
%{_includedir}/zip.h
a5a1628
%{_includedir}/zipconf*.h
b0d844f
%{_libdir}/libzip.so
b0d844f
%{_libdir}/pkgconfig/libzip.pc
24f9322
%{_mandir}/man3/libzip*
24f9322
%{_mandir}/man3/zip*
24f9322
%{_mandir}/man3/ZIP*
07091b9
07091b9
07091b9
%changelog
9db7c0c
* Mon Nov 20 2017 Remi Collet <remi@remirepo.net> - 1.3.2-1
9db7c0c
- update to 1.3.2
9db7c0c
- drop multilib header hack
9db7c0c
- change URL to https://libzip.org/
9db7c0c
- test suite now ok on all arch
9db7c0c
0e50954
* Wed Sep 06 2017 Pavel Raiskup <praiskup@redhat.com> - 1.3.0-2
0e50954
- use multilib-rpm-config for multilib hacks
0e50954
eb5bc55
* Mon Sep  4 2017 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
eb5bc55
- update to 1.3.0
eb5bc55
- add dependency on bzip2 library
eb5bc55
- ignore 3 tests failing on 32-bit
eb5bc55
e1946b2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
e1946b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e1946b2
fdfe5fb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
fdfe5fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fdfe5fb
d7d6a87
* Tue Feb 28 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
d7d6a87
- update to 1.2.0
d7d6a87
- soname bump to 5
d7d6a87
94a4bd1
* Tue Feb 28 2017 Remi Collet <remi@fedoraproject.org> - 1.2.0-0
94a4bd1
- update to 1.2.0
94a4bd1
- soname bump to 5
94a4bd1
- temporarily keep libzip.so.4
94a4bd1
079248a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
079248a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
079248a
4fdb79c
* Sat May 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1.3-1
4fdb79c
- update to 1.1.3
4fdb79c
c92631f
* Sat Feb 20 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-1
c92631f
- update to 1.1.2
9d38fc6
- add BR on perl(Getopt::Long)
c92631f
2326baf
* Sat Feb 13 2016 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
2326baf
- update to 1.1.1
2326baf
158b481
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
158b481
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
158b481
ba941a7
* Thu Jan 28 2016 Remi Collet <remi@fedoraproject.org> - 1.1-1
ba941a7
- update to 1.1
ba941a7
- new ziptool command
ba941a7
- add fix for undefined optopt in ziptool.c (upstream)
ba941a7
442a180
* Fri Dec  4 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-3
442a180
- fix libzip-tools summary #1288424
442a180
6d863df
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
6d863df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6d863df
24f9322
* Tue May  5 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
24f9322
- update to 1.0.1
24f9322
- soname bump from .2 to .4
24f9322
- drop ziptorrent
24f9322
- create "tools" sub package
24f9322
Rex Dieter 7eeca0f
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-5
Rex Dieter 7eeca0f
- actually apply patch (using %%autosetup)
Rex Dieter 7eeca0f
Rex Dieter 9f9eb8c
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 0.11.2-4
Rex Dieter 9f9eb8c
- CVE-2015-2331: integer overflow when processing ZIP archives (#1204676,#1204677)
Rex Dieter 9f9eb8c
ce44061
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-3
ce44061
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ce44061
5c7934a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
5c7934a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5c7934a
05f1846
* Thu Dec 19 2013 Remi Collet <remi@fedoraproject.org> - 0.11.2-1
05f1846
- update to 0.11.2
05f1846
- run test during build
05f1846
ea0893b
* Thu Oct 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-3
ea0893b
- replace php patch with upstream one
ea0893b
3422a4f
* Fri Aug 23 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-2
3422a4f
- include API-CHANGES and LICENSE in package doc
3422a4f
3b35241
* Wed Aug 21 2013 Remi Collet <remi@fedoraproject.org> - 0.11.1-1
3b35241
- update to 0.11.1
3b35241
ab6b327
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-7
ab6b327
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ab6b327
871adbf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-6
871adbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
871adbf
Remi Collet e3c497a
* Mon Oct 15 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-5
Remi Collet e3c497a
- fix typo in multiarch (#866171)
Remi Collet e3c497a
6a26985
* Wed Sep 05 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-4
6a26985
- Warning about conflicting contexts for /usr/lib64/libzip/include/zipconf.h versus /usr/include/zipconf-64.h (#853954)
6a26985
4c2b7df
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
4c2b7df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4c2b7df
a5a1628
* Tue Jul 10 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-2
a5a1628
- spec cleanup, better multilib fix
a5a1628
63e73d5
* Wed Mar 21 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-1
63e73d5
- update to 0.10.1 (security fix only)
63e73d5
- fixes for CVE-2012-1162 and CVE-2012-1163
63e73d5
a164f46
* Sun Mar 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-2
a164f46
- try to fix ARM issue (#799684)
a164f46
871b847
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-1
871b847
- update to 0.10
871b847
- apply patch with changes from php bundled lib (thanks spot)
871b847
- handle multiarch headers (ex from MySQL)
871b847
c685d3c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
c685d3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c685d3c
2ca6dec
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
2ca6dec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2ca6dec
29fc3a4
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-2
29fc3a4
- Cleaned up pkgconfig deps which are now automatically handled by RPM.
29fc3a4
3d9c0af
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-1
3d9c0af
- Updated to libzip 0.9.3
3d9c0af
aa30c1e
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.9-4
aa30c1e
- Use bzipped upstream tarball.
aa30c1e
03e1676
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
03e1676
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
03e1676
52dda5b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
52dda5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
52dda5b
b0d844f
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
b0d844f
- libzip-0.9
b0d844f
dfa7190
* Sat Feb 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.8-5
dfa7190
- rebuild for new gcc-4.3
dfa7190
6147457
* Fri Jan 11 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8-4
6147457
- use better workaround for removing rpaths
6147457
3b35241
* Tue Nov 20 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-3
07091b9
- require pkgconfig in devel subpkg
07091b9
- move api description to devel subpkg
07091b9
- keep timestamps in %%install
07091b9
- avoid lib64 rpaths 
07091b9
07091b9
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-2
07091b9
- Change License to BSD
07091b9
07091b9
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-1
07091b9
- Initial version for Fedora