You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quazip/quazip.spec

115 lines
3.0 KiB

15 years ago
Name: quazip
13 years ago
Version: 0.4.3
14 years ago
Release: 1%{?dist}
15 years ago
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
14 years ago
BuildRequires: qt4-devel
BuildRequires: doxygen graphviz
15 years ago
%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}%{?_isa} = %{version}-%{release}
Requires: qt4-devel%{?_isa}
15 years ago
%description devel
15 years ago
The %{name}-devel package contains libraries, header files and documentation
for developing applications that use %{name}.
15 years ago
%prep
%setup -q
13 years ago
# Fix EOL encoding
sed -i -e 's/\r//g' COPYING NEWS README.txt
15 years ago
15 years ago
# Fixes build and install
sed -i 's\PREFIX/lib\PREFIX/%{_lib}\' %{name}/%{name}.pro
13 years ago
sed -i -e 's/test\/unzip//' quazip.pro
sed -i -e 's/test\/zip//' quazip.pro
sed -i -e 's/test\/jlcompress//' quazip.pro
sed -i -e 's/test\/checksum//' quazip.pro
15 years ago
14 years ago
15 years ago
%build
export PATH=%{_qt4_bindir}:$PATH
14 years ago
%{_qt4_qmake} PREFIX=%{_prefix}
15 years ago
#do not build in parallel - there are race conditions in
#qmake-generated makefiles
make
15 years ago
doxygen Doxyfile
for file in doc/html/*; do
touch -r Doxyfile $file
done
15 years ago
%install
make INSTALL="install -p" INSTALL_ROOT=%{buildroot} install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
13 years ago
%doc COPYING NEWS README.txt
15 years ago
%{_libdir}/*.so.*
15 years ago
%files devel
%defattr(-,root,root,-)
%doc doc/html
%{_includedir}/%{name}
15 years ago
%{_libdir}/*.so
15 years ago
%changelog
13 years ago
* Sat Dec 17 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.3-1
- Update to 0.4.3
14 years ago
* Fri Aug 19 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.2-1
- Update to 0.4.2
14 years ago
- Rebase ld patch
14 years ago
14 years ago
* Mon Jul 25 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.1-1
- Update to 0.4.1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Jul 24 2010 Chen Lei <supercyper@163.com> - 0.3-2
- add BR:graphviz for building apidocs
15 years ago
* Sat Jul 24 2010 Chen Lei <supercyper@163.com> - 0.3-1
- update to 0.3
* Wed Feb 3 2010 Chen Lei <supercyper@163.com> - 0.2.3-5
- quazip-devel must Requires minizip-devel
* Sun Jan 31 2010 Chen Lei <supercyper@163.com> - 0.2.3-4
15 years ago
- change license to GPLv2+ or LGPLv2+
* Sun Jan 31 2010 Chen Lei <supercyper@163.com> - 0.2.3-3
15 years ago
- use %%doc for packaging documentations
* Sun Jan 31 2010 Chen Lei <supercyper@163.com> - 0.2.3-2
15 years ago
- use system-wide minizip library
* Sun Jan 31 2010 Chen Lei <supercyper@163.com> - 0.2.3-1
15 years ago
- initial rpm build