parent
b170fe5ae1
commit
7d450a4207
@ -0,0 +1,42 @@
|
||||
--- 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
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
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
|
Loading…
Reference in new issue