rpms/quazip/F-11 quazip-path.patch, NONE, 1.1 quazip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

supercyper supercyper at fedoraproject.org
Wed Feb 3 04:53:14 UTC 2010


Author: supercyper

Update of /cvs/pkgs/rpms/quazip/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5491

Modified Files:
	.cvsignore sources 
Added Files:
	quazip-path.patch quazip.spec 
Log Message:
sync with devel


quazip-path.patch:
 quazip.pro |   19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

--- NEW FILE quazip-path.patch ---
--- quazip-0.2.3/quazip/quazip.pro	2008-01-16 00:39:37.000000000 +0800
+++ quazip-0.2.3.new/quazip/quazip.pro	2010-01-31 02:30:00.319816815 +0800
@@ -10,25 +10,20 @@
 INCLUDEPATH += .
 
 # Input
-HEADERS += crypt.h \
-           ioapi.h \
-           quazip.h \
+HEADERS += quazip.h \
            quazipfile.h \
            quazipfileinfo.h \
-           quazipnewinfo.h \
-           unzip.h \
-           zip.h
+           quazipnewinfo.h
 
-SOURCES += ioapi.c \
-           quazip.cpp \
+SOURCES += quazip.cpp \
            quazipfile.cpp \
-           quazipnewinfo.cpp \
-           unzip.c \
-           zip.c
+           quazipnewinfo.cpp
 
 unix {
   OBJECTS_DIR=.obj
   MOC_DIR=.moc
+  INCLUDEPATH += /usr/include/minizip
+  LIBS += -lminizip
 }
 
 # UNIX installation
@@ -38,6 +33,6 @@
 unix {
   headers.path=$$PREFIX/include/quazip
   headers.files=$$HEADERS
-  target.path=$$PREFIX/lib
+  target.path=$$LIBDIR
   INSTALLS += headers target
 }


--- NEW FILE quazip.spec ---
Name:			quazip
Version:		0.2.3
Release:		4%{?dist}
Summary:		Qt/C++ wrapper for the minizip library
License:		GPLv2+ or LGPLv2+
Group:			System Environment/Libraries
URL:			http://quazip.sourceforge.net/
Source0:		http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# Fixes build and install
Patch0:			quazip-path.patch
BuildRoot:		%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires:		qt4-devel
#BuildRequires:		zlib-devel
BuildRequires:		minizip-devel

%description
QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
can be used to access ZIP archives. It uses Trolltech's Qt toolkit.

QuaZIP allows you to access files inside ZIP archives using QIODevice API,
and - yes! - that means that you can also use QTextStream, QDataStream or
whatever you would like to use on your zipped files.

QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both reading
from and writing to ZIP archives.

%package devel
Summary:		Development files for %{name}
Group:			Development/Libraries
Requires:		%{name} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries, header files and documentations for 
developing applications that use %{name}. 

%prep
%setup -q
%patch0 -p1
#remove bundled minizip library
pushd quazip
rm -rf crypt.h ioapi* unzip* zip*
popd

%build
export PATH=%{_qt4_bindir}:$PATH
%_qt4_qmake PREFIX=%{_prefix} LIBDIR=%{_libdir}
#do not build in parallel - there are race conditions in 
#qmake-generated makefiles
make

%install
rm -rf %{buildroot}
make INSTALL="install -p" INSTALL_ROOT=%{buildroot} install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING* NEWS README
%{_libdir}/libquazip.so.*

%files devel
%defattr(-,root,root,-)
%doc doc/html
%{_includedir}/%{name}
%{_libdir}/libquazip.so

%changelog
* Sun Jan 31 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2.3-4
- change license to GPLv2+ or LGPLv2+

* Sun Jan 31 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2.3-3
- use %%doc for packaging documentations

* Sun Jan 31 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2.3-2
- use system-wide minizip library

* Sun Jan 31 2010 Chen Lei <supercyper AT 163 DOT com> - 0.2.3-1
- initial rpm build


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/quazip/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	3 Feb 2010 04:18:25 -0000	1.1
+++ .cvsignore	3 Feb 2010 04:53:13 -0000	1.2
@@ -0,0 +1 @@
+quazip-0.2.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/quazip/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	3 Feb 2010 04:18:26 -0000	1.1
+++ sources	3 Feb 2010 04:53:14 -0000	1.2
@@ -0,0 +1 @@
+1f2d72e5dc9e79831933197c0c82f974  quazip-0.2.3.tar.gz



More information about the scm-commits mailing list