07091b9
# Fedora Review Request #393041
07091b9
# https://bugzilla.redhat.com/show_bug.cgi?id=393041
07091b9
07091b9
Name:           libzip
b0d844f
Version:        0.9
aa30c1e
Release:        4%{?dist}
07091b9
Summary:        C library for reading, creating, and modifying zip archives
07091b9
07091b9
Group:          System Environment/Libraries
07091b9
License:        BSD
07091b9
URL:            http://www.nih.at/libzip/index.html
aa30c1e
Source0:        http://www.nih.at/libzip/%{name}-%{version}.tar.bz2
07091b9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
07091b9
6147457
BuildRequires:  automake libtool
b0d844f
BuildRequires:  pkgconfig
07091b9
BuildRequires:  zlib-devel >= 1.2.2
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
07091b9
%package devel
07091b9
Summary: Development files for %{name}
07091b9
Group: Development/Libraries
07091b9
Requires: %{name} = %{version}-%{release}
07091b9
Requires: pkgconfig
07091b9
07091b9
%description devel
07091b9
The %{name}-devel package contains libraries and header files for
07091b9
developing applications that use %{name}.
07091b9
07091b9
07091b9
%prep
07091b9
%setup -q
07091b9
6147457
# Avoid lib64 rpaths (FIXME: recheck this on newer releases)
6147457
#if "%{_libdir}" != "/usr/lib"
6147457
#sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
b0d844f
autoreconf -f -i
6147457
#endif
07091b9
07091b9
07091b9
%build
07091b9
%configure --disable-static
07091b9
make %{?_smp_mflags}
07091b9
07091b9
07091b9
%install
07091b9
rm -rf $RPM_BUILD_ROOT
07091b9
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
07091b9
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
07091b9
07091b9
07091b9
%clean
07091b9
rm -rf $RPM_BUILD_ROOT
07091b9
07091b9
07091b9
%post -p /sbin/ldconfig
07091b9
07091b9
%postun -p /sbin/ldconfig
07091b9
07091b9
07091b9
%files
07091b9
%defattr(-,root,root,-)
07091b9
%doc AUTHORS NEWS README THANKS TODO
b0d844f
%{_bindir}/zipcmp
b0d844f
%{_bindir}/zipmerge
b0d844f
%{_bindir}/ziptorrent
b0d844f
%{_libdir}/libzip.so.1*
07091b9
%{_mandir}/man1/*zip*
07091b9
07091b9
%files devel
07091b9
%defattr(-,root,root,-)
b0d844f
%{_includedir}/zip.h
b0d844f
%{_libdir}/libzip.so
b0d844f
%{_libdir}/pkgconfig/libzip.pc
07091b9
%{_mandir}/man3/*zip*
07091b9
07091b9
07091b9
%changelog
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
07091b9
* Wed 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