f2fe90
f2fe90
%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
f2fe90
f2fe90
Name:    libzip
f2fe90
Version: 0.10.1
f2fe90
Release: 8%{?dist}
f2fe90
Summary: C library for reading, creating, and modifying zip archives
f2fe90
f2fe90
License: BSD
f2fe90
URL:     http://www.nih.at/libzip/index.html
f2fe90
Source0: http://www.nih.at/libzip/libzip-%{version}.tar.bz2
f2fe90
f2fe90
#BuildRequires:  automake libtool
f2fe90
BuildRequires:  zlib-devel
f2fe90
f2fe90
# to handle multiarch headers, ex from mysql-devel package
f2fe90
Source1: zipconf.h
f2fe90
f2fe90
# fonctionnal changes from php bundled library
f2fe90
Patch0: libzip-0.10-php.patch
f2fe90
f2fe90
f2fe90
%description
f2fe90
libzip is a C library for reading, creating, and modifying zip archives. Files
f2fe90
can be added from data buffers, files, or compressed data copied directly from 
f2fe90
other zip archives. Changes made without closing the archive can be reverted. 
f2fe90
The API is documented by man pages.
f2fe90
f2fe90
%package devel
f2fe90
Summary: Development files for %{name}
f2fe90
Requires: %{name}%{?_isa} = %{version}-%{release}
f2fe90
%description devel
f2fe90
The %{name}-devel package contains libraries and header files for
f2fe90
developing applications that use %{name}.
f2fe90
f2fe90
f2fe90
%prep
f2fe90
%setup -q
f2fe90
f2fe90
%patch0 -p1 -b .forphp
f2fe90
f2fe90
# Avoid lib64 rpaths (FIXME: recheck this on newer releases)
f2fe90
%if "%{_libdir}" != "/usr/lib"
f2fe90
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
f2fe90
#autoreconf -f -i
f2fe90
%endif
f2fe90
f2fe90
f2fe90
%build
f2fe90
%configure \
f2fe90
  --disable-static
f2fe90
f2fe90
make %{?_smp_mflags}
f2fe90
f2fe90
f2fe90
%install
f2fe90
f2fe90
make install DESTDIR=%{buildroot} INSTALL='install -p'
f2fe90
f2fe90
## unpackaged files
f2fe90
rm -fv %{buildroot}%{_libdir}/lib*.la
f2fe90
f2fe90
## FIXME: someday fix consumers of libzip to properly handle
f2fe90
## header @ %%{_libdir}/libzip/include/zipconf.h -- rex
f2fe90
%ifarch %{multilib_archs}
f2fe90
ln -s ../%{_lib}/libzip/include/zipconf.h \
f2fe90
      %{buildroot}%{_includedir}/zipconf-%{__isa_bits}.h
f2fe90
install -D -m644 -p %{SOURCE1} %{buildroot}%{_includedir}/zipconf.h
f2fe90
%else
f2fe90
ln -s ../%{_lib}/libzip/include/zipconf.h \
f2fe90
      %{buildroot}%{_includedir}/zipconf.h
f2fe90
%endif
f2fe90
f2fe90
f2fe90
%post -p /sbin/ldconfig
f2fe90
%postun -p /sbin/ldconfig
f2fe90
f2fe90
%files
f2fe90
%doc AUTHORS NEWS README THANKS TODO
f2fe90
%{_bindir}/zipcmp
f2fe90
%{_bindir}/zipmerge
f2fe90
%{_bindir}/ziptorrent
f2fe90
%{_libdir}/libzip.so.2*
f2fe90
%{_mandir}/man1/*zip*
f2fe90
f2fe90
%files devel
f2fe90
%{_includedir}/zip.h
f2fe90
%{_includedir}/zipconf*.h
f2fe90
%dir %{_libdir}/libzip
f2fe90
%{_libdir}/libzip/include
f2fe90
%{_libdir}/libzip.so
f2fe90
%{_libdir}/pkgconfig/libzip.pc
f2fe90
%{_mandir}/man3/*zip*
f2fe90
f2fe90
f2fe90
%changelog
f2fe90
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.10.1-8
f2fe90
- Mass rebuild 2014-01-24
f2fe90
f2fe90
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.10.1-7
f2fe90
- Mass rebuild 2013-12-27
f2fe90
f2fe90
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-6
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f2fe90
f2fe90
* Mon Oct 15 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-5
f2fe90
- fix typo in multiarch (#866171)
f2fe90
f2fe90
* Wed Sep 05 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-4
f2fe90
- Warning about conflicting contexts for /usr/lib64/libzip/include/zipconf.h versus /usr/include/zipconf-64.h (#853954)
f2fe90
f2fe90
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f2fe90
f2fe90
* Tue Jul 10 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.1-2
f2fe90
- spec cleanup, better multilib fix
f2fe90
f2fe90
* Wed Mar 21 2012 Remi Collet <remi@fedoraproject.org> - 0.10.1-1
f2fe90
- update to 0.10.1 (security fix only)
f2fe90
- fixes for CVE-2012-1162 and CVE-2012-1163
f2fe90
f2fe90
* Sun Mar 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-2
f2fe90
- try to fix ARM issue (#799684)
f2fe90
f2fe90
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> - 0.10-1
f2fe90
- update to 0.10
f2fe90
- apply patch with changes from php bundled lib (thanks spot)
f2fe90
- handle multiarch headers (ex from MySQL)
f2fe90
f2fe90
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f2fe90
f2fe90
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f2fe90
f2fe90
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-2
f2fe90
- Cleaned up pkgconfig deps which are now automatically handled by RPM.
f2fe90
f2fe90
* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-1
f2fe90
- Updated to libzip 0.9.3
f2fe90
f2fe90
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.9-4
f2fe90
- Use bzipped upstream tarball.
f2fe90
f2fe90
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f2fe90
f2fe90
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
f2fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f2fe90
f2fe90
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1
f2fe90
- libzip-0.9
f2fe90
f2fe90
* Sat Feb 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.8-5
f2fe90
- rebuild for new gcc-4.3
f2fe90
f2fe90
* Fri Jan 11 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8-4
f2fe90
- use better workaround for removing rpaths
f2fe90
f2fe90
* Wed Nov 20 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-3
f2fe90
- require pkgconfig in devel subpkg
f2fe90
- move api description to devel subpkg
f2fe90
- keep timestamps in %%install
f2fe90
- avoid lib64 rpaths 
f2fe90
f2fe90
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-2
f2fe90
- Change License to BSD
f2fe90
f2fe90
* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-1
f2fe90
- Initial version for Fedora