File libquazip-qt5.spec of Package libquazip-qt5
#
# spec file for package libquazip-qt5
#
# Copyright (c) 2015 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/
#
%define _sov 1
Name: libquazip-qt5
Version: 0.7+20150206
Release: 0
Summary: C++ wrapper for ZIP/UNZIP
License: GPL-2.0+ or LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://quazip.sourceforge.net/
#Source0: http://sourceforge.net/projects/quazip/files/quazip/%{version}/quazip-%{version}.tar.gz
Source0: quazip-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: graphviz-gnome
BuildRequires: zlib-devel
BuildRequires: pkgconfig(Qt5Core)
%description
A C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package, using Qt5 toolkit.
Useful to access ZIP archives from the Qt5 programs.
%package -n libquazip5-%_sov
Summary: C++ wrapper for ZIP/UNZIP
Group: Development/Libraries/C and C++
%description -n libquazip5-%_sov
A C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package, using Qt5 toolkit.
Useful to access ZIP archives from the Qt5 programs.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libquazip5-%_sov = %{version}-%{release}
Requires: pkgconfig(Qt5Core)
%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 Qt5 toolkit.
Useful to access ZIP archives from the Qt5 programs.
%prep
%setup -q -n quazip-%{version}
%build
%cmake -DCMAKE_CXX_FLAGS="-fPIC"
%make_jobs
cd ..
echo 'HTML_TIMESTAMP=NO' >> Doxyfile
doxygen -u
doxygen
%install
cd build
%make_install
rm %{buildroot}/%{_libdir}/libquazip.a
%post -n libquazip5-%_sov -p /sbin/ldconfig
%postun -n libquazip5-%_sov -p /sbin/ldconfig
%files -n libquazip5-%_sov
%defattr(-,root,root,-)
%doc COPYING* NEWS.txt README.txt
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/quazip5/
%{_libdir}/*.so
%{_datadir}/cmake/Modules/FindQuaZip5.cmake
%files doc
%defattr(-,root,root,-)
%doc doc/html
%changelog