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