From 760438b0bdf318e3636a0d11ad7a03dc1538df43f26dbda2db3530522d9801d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 18 Sep 2019 05:35:00 +0000 Subject: [PATCH] Accepting request 731595 from home:guoyunhe:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Version update to 1.16.2 * Fix memory leak with getText(“rawDICT”) - Add %check step - Change category to Development/Libraries/Python - python-PyMuPDF-doc should be noarch OBS-URL: https://build.opensuse.org/request/show/731595 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=16 --- PyMuPDF-1.16.1.tar.gz | 3 --- PyMuPDF-1.16.2.tar.gz | 3 +++ python-PyMuPDF.changes | 13 +++++++++++++ python-PyMuPDF.spec | 16 ++++++++-------- 4 files changed, 24 insertions(+), 11 deletions(-) delete mode 100644 PyMuPDF-1.16.1.tar.gz create mode 100644 PyMuPDF-1.16.2.tar.gz diff --git a/PyMuPDF-1.16.1.tar.gz b/PyMuPDF-1.16.1.tar.gz deleted file mode 100644 index 2252041..0000000 --- a/PyMuPDF-1.16.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4be930142127d38817a553c43100d35c19b09b6a33dc87c25fb89fe6a8a40b4 -size 6994708 diff --git a/PyMuPDF-1.16.2.tar.gz b/PyMuPDF-1.16.2.tar.gz new file mode 100644 index 0000000..996f214 --- /dev/null +++ b/PyMuPDF-1.16.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5070304b1b391d070fea0e2f731ee85dd858cab556fb949762ed0e05c888b97c +size 6990644 diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 8989fcb..d132229 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Sep 17 21:26:39 UTC 2019 - Yunhe Guo + +- Version update to 1.16.2 + * Fix memory leak with getText(“rawDICT”) + +------------------------------------------------------------------- +Sat Sep 7 14:06:18 UTC 2019 - Yunhe Guo + +- Add %check step +- Change category to Development/Libraries/Python +- python-PyMuPDF-doc should be noarch + ------------------------------------------------------------------- Fri Sep 6 09:07:26 UTC 2019 - Yunhe Guo diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 4da773e..2b4423f 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -21,11 +21,11 @@ %define skip_python2 1 %define pypi_name PyMuPDF Name: python-%{pypi_name} -Version: 1.16.1 +Version: 1.16.2 Release: 0 Summary: Python binding for MuPDF, a PDF and XPS viewer License: GPL-3.0-only AND AGPL-3.0-only -Group: Development/Languages/Python +Group: Development/Libraries/Python URL: https://github.com/rk700/PyMuPDF Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz Patch1: fix-library-linking.patch @@ -52,11 +52,12 @@ MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction book formats. PyMuPDF can also access files with extensions *.pdf, *.xps, *.oxps, *.epub, *.cbz or *.fb2 from Python scripts. -%package -n python-%{pypi_name}-doc +%package doc Summary: Documentation for PyMuPDF -Group: Development/Languages/Python +Group: Development/Libraries/Python +BuildArch: noarch -%description -n python-%{pypi_name}-doc +%description doc This is the documentation for PyMuPDF. %prep @@ -64,7 +65,6 @@ This is the documentation for PyMuPDF. %patch1 -p1 %build -export CFLAGS="%{optflags}" %python_build %install @@ -72,14 +72,14 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# no upstream tests +%python_expand PYTHONPATH=%{buildroot}%{python_sitearch} $python -c 'import sys; sys.path.remove(""); import fitz' %files %{python_files} %license COPYING %doc README.md %{python_sitearch}/* -%files -n python-%{pypi_name}-doc +%files doc %doc doc/PyMuPDF.pdf %changelog