[mingw-libzip: 2/10] Initial import

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 15:53:18 UTC 2012


commit 3a3038329181bd9996c0403ffde6b744be6aa28b
Author: Dave Ludlow <adsllc at fedoraproject.org>
Date:   Wed Dec 23 20:46:57 2009 +0000

    Initial import

 .cvsignore          |    1 +
 import.log          |    1 +
 mingw32-libzip.spec |   68 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 4 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..c788948 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+libzip-0.9.tar.gz
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..661439b
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+mingw32-libzip-0_9-2_fc12:HEAD:mingw32-libzip-0.9-2.fc12.src.rpm:1261601186
diff --git a/mingw32-libzip.spec b/mingw32-libzip.spec
new file mode 100644
index 0000000..a155042
--- /dev/null
+++ b/mingw32-libzip.spec
@@ -0,0 +1,68 @@
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_mingw32_findrequires}
+%global __find_provides %{_mingw32_findprovides}
+
+%global nativename libzip
+
+Name:           mingw32-%{nativename}
+Version:        0.9
+Release:        2%{?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/%{nativename}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  libtool
+BuildRequires:  mingw32-filesystem >= 35
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+BuildRequires:  mingw32-zlib >= 1.1.2
+
+%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.
+
+%prep
+%setup -q -n %{nativename}-%{version}
+
+%build
+%{_mingw32_configure} --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
+
+#Remove files we don't need
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+rm -R $RPM_BUILD_ROOT%{_mingw32_datadir}/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS NEWS README THANKS TODO
+%{_mingw32_bindir}/zipcmp.exe
+%{_mingw32_bindir}/zipmerge.exe
+%{_mingw32_bindir}/ziptorrent.exe
+%{_mingw32_bindir}/*.dll
+%{_mingw32_libdir}/libzip.dll.a
+%{_mingw32_libdir}/pkgconfig/libzip.pc
+%{_mingw32_includedir}/*.h
+
+%changelog
+* Tue Dec 22 2009 David Ludlow <dave at adsllc.com> - 0.9-2
+- Prevent owning a directory that is not mine to own
+
+* Tue Dec 22 2009 David Ludlow <dave at adsllc.com> - 0.9-1
+- Initial creation of mingw32 package
diff --git a/sources b/sources
index e69de29..86917b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5b753dfe336f6fe87b0e698b382c3071  libzip-0.9.tar.gz


More information about the scm-commits mailing list