forked from pool/python-PyMuPDF
Accepting request 875556 from home:jayvdb:branches:devel:languages:python
- Revised License to be AGPL-3.0-only - Add %doc - Remove COPYING now provided in tarball - Update to v1.18.9 OBS-URL: https://build.opensuse.org/request/show/875556 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=30
This commit is contained in:
@@ -21,21 +21,20 @@
|
||||
%define skip_python2 1
|
||||
%define pypi_name PyMuPDF
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.18.8
|
||||
Version: 1.18.9
|
||||
Release: 0
|
||||
Summary: Python binding for MuPDF, a PDF and XPS viewer
|
||||
License: GPL-3.0-only AND AGPL-3.0-only
|
||||
License: AGPL-3.0-only
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/pymupdf/PyMuPDF
|
||||
Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/pymupdf/PyMuPDF/master/COPYING
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
BuildRequires: jbig2dec-devel
|
||||
BuildRequires: mupdf-devel-static >= 1.18.0
|
||||
BuildRequires: mupdf-devel-static < 1.19.0
|
||||
BuildRequires: mupdf-devel-static >= 1.18.0
|
||||
BuildRequires: openSUSE-release
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -57,15 +56,14 @@ book formats. PyMuPDF can also access files with extensions *.pdf,
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -I/usr/include/freetype2"
|
||||
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
rm %{buildroot}%{_prefix}/{COPYING,README.md,changes.rst}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
@@ -74,6 +72,7 @@ cd /tmp
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc README.md changes.rst
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user