diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-03-20 13:37:56 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-03-20 13:37:56 +0100 |
commit | e5d2743f12f7a92896fd4f05c5ff3b88d826a8a1 (patch) | |
tree | e6649c33469691dde1d3772549df10522e0c917b |
import libzip from rawhide
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | libzip.spec | 119 |
2 files changed, 123 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/libzip.spec b/libzip.spec new file mode 100644 index 0000000..5c0a978 --- /dev/null +++ b/libzip.spec @@ -0,0 +1,119 @@ +# Fedora Review Request #393041 +# https://bugzilla.redhat.com/show_bug.cgi?id=393041 + +Name: libzip +Version: 0.9.3 +Release: 3%{?dist} +Summary: C library for reading, creating, and modifying zip archives + +Group: System Environment/Libraries +License: BSD +URL: http://www.nih.at/libzip/index.html +Source0: http://www.nih.at/libzip/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: automake libtool +BuildRequires: zlib-devel + +%description +libzip is a C library for reading, creating, and modifying zip archives. Files +can be added from data buffers, files, or compressed data copied directly from +other zip archives. Changes made without closing the archive can be reverted. +The API is documented by man pages. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + +# Avoid lib64 rpaths (FIXME: recheck this on newer releases) +#if "%{_libdir}" != "/usr/lib" +#sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure +autoreconf -f -i +#endif + + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS NEWS README THANKS TODO +%{_bindir}/zipcmp +%{_bindir}/zipmerge +%{_bindir}/ziptorrent +%{_libdir}/libzip.so.1* +%{_mandir}/man1/*zip* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/zip.h +%{_libdir}/libzip.so +%{_libdir}/pkgconfig/libzip.pc +%{_mandir}/man3/*zip* + + +%changelog +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-2 +- Cleaned up pkgconfig deps which are now automatically handled by RPM. + +* Thu Feb 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.9.3-1 +- Updated to libzip 0.9.3 + +* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.9-4 +- Use bzipped upstream tarball. + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1 +- libzip-0.9 + +* Sat Feb 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.8-5 +- rebuild for new gcc-4.3 + +* Fri Jan 11 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8-4 +- use better workaround for removing rpaths + +* Wed Nov 20 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-3 +- require pkgconfig in devel subpkg +- move api description to devel subpkg +- keep timestamps in %%install +- avoid lib64 rpaths + +* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-2 +- Change License to BSD + +* Thu Nov 15 2007 Sebastian Vahl <fedora@deadbabylon.de> 0.8-1 +- Initial version for Fedora |