Hello community, here is the log from the commit of package python-djvulibre for openSUSE:Factory checked in at 2018-04-11 14:00:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-djvulibre (Old) and /work/SRC/openSUSE:Factory/.python-djvulibre.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-djvulibre" Wed Apr 11 14:00:17 2018 rev:15 rq:594952 version:0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-djvulibre/python-djvulibre.changes 2016-08-15 10:31:59.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-djvulibre.new/python-djvulibre.changes 2018-04-11 14:02:44.801165161 +0200 @@ -1,0 +2,7 @@ +Mon Apr 9 17:38:04 UTC 2018 - lazy.k...@opensuse.org + +- Convert to singlespec. +- Disable run tests because of a Ghostscript bug. +- Move examples to the -doc subpackage. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-djvulibre.spec ++++++ --- /var/tmp/diff_new_pack.bUFFHs/_old 2018-04-11 14:02:45.769130176 +0200 +++ /var/tmp/diff_new_pack.bUFFHs/_new 2018-04-11 14:02:45.769130176 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-djvulibre # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,39 +16,45 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-djvulibre Version: 0.8 Release: 0 Summary: Python Support for the DjVu Image Format -License: GPL-2.0 +License: GPL-2.0-only Group: Development/Libraries/Python -Url: http://jwilk.net/software/python-djvulibre +URL: http://jwilk.net/software/python-djvulibre Source0: https://files.pythonhosted.org/packages/source/p/python-djvulibre/%{name}-%{version}.tar.gz Source1: https://files.pythonhosted.org/packages/source/p/python-djvulibre/%{name}-%{version}.tar.gz.asc Source2: %{name}.keyring +BuildRequires: %{python_module Cython >= 0.19} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module devel >= 2.6} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: graphviz BuildRequires: graphviz-gnome BuildRequires: pkgconfig -BuildRequires: python-Cython >= 0.19 -BuildRequires: python-Sphinx -BuildRequires: python-devel >= 2.6 +BuildRequires: python-rpm-macros BuildRequires: pkgconfig(ddjvuapi) >= 3.5.21 # Required for tests. +BuildRequires: %{python_module nose} BuildRequires: djvulibre -BuildRequires: python-nose +# Requires: djvulibre >= 3.5.21 -BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%python_subpackages %description python-djvulibre is a set of Python bindings for the DjVuLibre library, an open source implementation of DjVu. -%package doc +%package -n %{name}-doc Summary: Python Support for the DjVu Image Format (Documentation) Group: Documentation/HTML BuildArch: noarch -%description doc +%description -n %{name}-doc python-djvulibre is a set of Python bindings for the DjVuLibre library, an open source implementation of DjVu. @@ -60,34 +66,25 @@ %build export CFLAGS="%{optflags} -fno-strict-aliasing" -python setup.py build -python setup.py build_sphinx +%python_build +%python_build build_sphinx %install -python setup.py install \ - --root=%{buildroot} \ - --prefix=%{_prefix} -install -dm 0755 %{buildroot}%{_defaultdocdir}/%{name}-doc/_images/ -install -dm 0755 %{buildroot}%{_defaultdocdir}/%{name}-doc/_static/ -install -m 0644 build/sphinx/html/{*.html,*.js} \ - %{buildroot}%{_defaultdocdir}/%{name}-doc/ -install -m 0644 build/sphinx/html/_images/* \ - %{buildroot}%{_defaultdocdir}/%{name}-doc/_images/ -install -m 0644 build/sphinx/html/_static/* \ - %{buildroot}%{_defaultdocdir}/%{name}-doc/_static/ - -%check -cd tests/ -ln -sf %{buildroot}%{python_sitearch}/djvu/ djvu -python -m nose --verbose - -%files -%defattr(-,root,root,-) -%doc doc/{changelog,COPYING,credits.txt} examples/ +%python_install +rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv +%fdupes %{buildroot}%{_prefix} + +# %%check +# cd tests/ +# ln -sf %%{buildroot}%%{python_sitearch}/djvu/ djvu +# %%python_exec -m nose --verbose + +%files %{python_files} +%license doc/COPYING +%doc doc/changelog doc/credits.txt %{python_sitearch}/* -%files doc -%defattr(-,root,root,-) -%doc %{_defaultdocdir}/%{name}-doc/ +%files -n %{name}-doc +%doc build/sphinx/html/ examples/ %changelog