2014-12-30 10:27:34 +00:00
|
|
|
#
|
2017-12-28 13:29:01 +00:00
|
|
|
# spec file for package libquazip-qt5
|
2014-12-30 10:27:34 +00:00
|
|
|
#
|
2017-12-28 13:29:01 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2014-12-30 10:27:34 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
|
|
|
|
%define _sov 1
|
2014-12-30 10:27:34 +00:00
|
|
|
Name: libquazip-qt5
|
2017-12-28 13:29:01 +00:00
|
|
|
Version: 0.7+20150206
|
2014-12-30 10:27:34 +00:00
|
|
|
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/
|
2017-12-28 13:29:01 +00:00
|
|
|
#Source0: http://sourceforge.net/projects/quazip/files/quazip/%{version}/quazip-%{version}.tar.gz
|
|
|
|
Source0: quazip-%{version}.tar.gz
|
2014-12-30 10:27:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-12-28 13:29:01 +00:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
2014-12-30 10:27:34 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: graphviz-gnome
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2017-12-28 13:29:01 +00:00
|
|
|
|
2014-12-30 10:27:34 +00:00
|
|
|
%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.
|
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
%package -n libquazip5-%_sov
|
2014-12-30 10:27:34 +00:00
|
|
|
Summary: C++ wrapper for ZIP/UNZIP
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
%description -n libquazip5-%_sov
|
2014-12-30 10:27:34 +00:00
|
|
|
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++
|
2017-12-28 13:29:01 +00:00
|
|
|
Requires: libquazip5-%_sov = %{version}-%{release}
|
2014-12-30 10:27:34 +00:00
|
|
|
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
|
2017-12-28 13:29:01 +00:00
|
|
|
%cmake -DCMAKE_CXX_FLAGS="-fPIC"
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
cd ..
|
2014-12-30 10:27:34 +00:00
|
|
|
echo 'HTML_TIMESTAMP=NO' >> Doxyfile
|
|
|
|
doxygen -u
|
|
|
|
doxygen
|
|
|
|
|
|
|
|
%install
|
2017-12-28 13:29:01 +00:00
|
|
|
cd build
|
|
|
|
%make_install
|
|
|
|
rm %{buildroot}/%{_libdir}/libquazip.a
|
2014-12-30 10:27:34 +00:00
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
%post -n libquazip5-%_sov -p /sbin/ldconfig
|
2014-12-30 10:27:34 +00:00
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
%postun -n libquazip5-%_sov -p /sbin/ldconfig
|
2014-12-30 10:27:34 +00:00
|
|
|
|
2017-12-28 13:29:01 +00:00
|
|
|
%files -n libquazip5-%_sov
|
2014-12-30 10:27:34 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING* NEWS.txt README.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2017-12-28 13:29:01 +00:00
|
|
|
%{_includedir}/quazip5/
|
2014-12-30 10:27:34 +00:00
|
|
|
%{_libdir}/*.so
|
2017-12-28 13:29:01 +00:00
|
|
|
%{_datadir}/cmake/Modules/FindQuaZip5.cmake
|
2014-12-30 10:27:34 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/html
|
|
|
|
|
|
|
|
%changelog
|