File python-poppler-qt5.spec of Package python-poppler-qt5
#
# spec file for package python-poppler-qt5
#
# Copyright (c) 2011 LISA GmbH, Bingen, Germany.
# Copyright (c) 2017 Johannes Engel <jcnengel@gmail.com>
#
# 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
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-poppler-qt5
Version: 0.24.2
Release: 1
Url: https://github.com/wbsoft/python-poppler-qt5/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: LGPL-3.0
Group: Development/Libraries/Python
Summary: Application development and integration framework
Source0: %{name}-%{version}.tar.gz
Patch0: %{name}-fix-qmake-name.patch
Patch1: %{name}-fix-QtXML.patch
BuildRequires: %{python_module qt5}
BuildRequires: python-qt5-devel
BuildRequires: python3-qt5-devel
BuildRequires: %{python_module sip}
BuildRequires: python-sip-devel
BuildRequires: python3-sip-devel
BuildRequires: libpoppler-qt5-devel >= 0.12.0
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: c++_compiler
BuildRequires: pkg-config
BuildRequires: python-rpm-macros
%python_subpackages
%description
A Python binding to poppler-qt5 that aims for completeness and for being
actively maintained.
Authors:
--------
Wilbert Berendsen <wbsoft@xs4all.nl>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%python_build
%install
%python_install
%clean
rm -rf $RPM_BUILD_ROOT
%files %python_files
%defattr(-,root,root)
%doc ChangeLog LICENSE README.rst TODO
%{python_sitearch}/*
%changelog