File quazip.spec of Package quazip
#
# spec file for package quazip
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: quazip
Version: 0.3
Release: 1
Summary: C++ wrapper for ZIP/UNZIP
Group: Development/Libraries/C and C++
License: GPL-2.0+ or LGPL-2.1+
URL: http://quazip.sourceforge.net/
# repacked http://sourceforge.net/projects/quazip/files/quazip/%%{version}/quazip-%%{version}.zip/download
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libqt4-devel
BuildRequires: doxygen graphviz graphviz-gnome
BuildRequires: fdupes
%description
A C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package, using Trolltech's Qt toolkit.
Useful to access ZIP archives from the Qt programs.
%package -n libquazip1
Summary: C++ wrapper for ZIP/UNZIP
Group: Development/Libraries/C and C++
%description -n libquazip1
A C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package, using Trolltech's Qt toolkit.
Useful to access ZIP archives from the Qt programs.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libquazip1 = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package doc
Summary: C++ wrapper for ZIP/UNZIP
Group: Development/Libraries/C and C++
%description doc
A C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package, using Trolltech's Qt toolkit.
Useful to access ZIP archives from the Qt programs.
%prep
%setup -q
%build
pushd quazip
qmake PREFIX=%{_prefix} QMAKE_CFLAGS="%optflags" QMAKE_CXXFLAGS="%optflags"
%__make %{?_smp_mflags}
popd
doxygen -u
doxygen
%install
pushd quazip
%__make install INSTALL_ROOT=%{buildroot}
if [ "%{_lib}" != "lib" ]; then
%__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
fi
popd
%fdupes -s doc/html
%clean
%__rm -rf %{buildroot}
%post -n libquazip1 -p /sbin/ldconfig
%postun -n libquazip1 -p /sbin/ldconfig
%files -n libquazip1
%defattr(-,root,root,-)
%doc COPYING* NEWS
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%files doc
%defattr(-,root,root,-)
%doc doc/html
%changelog