forked from pool/python-djvulibre
Accepting request 594950 from home:Lazy_Kent:devel
convert to singlespec OBS-URL: https://build.opensuse.org/request/show/594950 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-djvulibre?expand=0&rev=29
This commit is contained in:
parent
2c869375b9
commit
3659bfa0ed
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 9 17:38:04 UTC 2018 - lazy.kent@opensuse.org
|
||||||
|
|
||||||
|
- Convert to singlespec.
|
||||||
|
- Disable run tests because of a Ghostscript bug.
|
||||||
|
- Move examples to the -doc subpackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 11 11:05:04 UTC 2016 - lazy.kent@opensuse.org
|
Thu Aug 11 11:05:04 UTC 2016 - lazy.kent@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-djvulibre
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,39 +16,45 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-djvulibre
|
Name: python-djvulibre
|
||||||
Version: 0.8
|
Version: 0.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Support for the DjVu Image Format
|
Summary: Python Support for the DjVu Image Format
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Libraries/Python
|
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
|
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
|
Source1: https://files.pythonhosted.org/packages/source/p/python-djvulibre/%{name}-%{version}.tar.gz.asc
|
||||||
Source2: %{name}.keyring
|
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
|
||||||
BuildRequires: graphviz-gnome
|
BuildRequires: graphviz-gnome
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-Cython >= 0.19
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-Sphinx
|
|
||||||
BuildRequires: python-devel >= 2.6
|
|
||||||
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.21
|
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.21
|
||||||
# Required for tests.
|
# Required for tests.
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: djvulibre
|
BuildRequires: djvulibre
|
||||||
BuildRequires: python-nose
|
#
|
||||||
Requires: djvulibre >= 3.5.21
|
Requires: djvulibre >= 3.5.21
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
||||||
an open source implementation of DjVu.
|
an open source implementation of DjVu.
|
||||||
|
|
||||||
%package doc
|
%package -n %{name}-doc
|
||||||
Summary: Python Support for the DjVu Image Format (Documentation)
|
Summary: Python Support for the DjVu Image Format (Documentation)
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description -n %{name}-doc
|
||||||
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
||||||
an open source implementation of DjVu.
|
an open source implementation of DjVu.
|
||||||
|
|
||||||
@ -60,34 +66,25 @@ chmod -x examples/*
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
python setup.py build
|
%python_build
|
||||||
python setup.py build_sphinx
|
%python_build build_sphinx
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install \
|
%python_install
|
||||||
--root=%{buildroot} \
|
rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv
|
||||||
--prefix=%{_prefix}
|
%fdupes %{buildroot}%{_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
|
# %%check
|
||||||
cd tests/
|
# cd tests/
|
||||||
ln -sf %{buildroot}%{python_sitearch}/djvu/ djvu
|
# ln -sf %%{buildroot}%%{python_sitearch}/djvu/ djvu
|
||||||
python -m nose --verbose
|
# %%python_exec -m nose --verbose
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license doc/COPYING
|
||||||
%doc doc/{changelog,COPYING,credits.txt} examples/
|
%doc doc/changelog doc/credits.txt
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%files doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root,-)
|
%doc build/sphinx/html/ examples/
|
||||||
%doc %{_defaultdocdir}/%{name}-doc/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user