forked from pool/python-blockdiag
Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=19
This commit is contained in:
@@ -26,7 +26,8 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://blockdiag.com/
|
URL: http://blockdiag.com/
|
||||||
Source: https://files.pythonhosted.org/packages/source/b/blockdiag/blockdiag-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/b/blockdiag/blockdiag-%{version}.tar.gz
|
||||||
# https://github.com/blockdiag/blockdiag/pull/131
|
# PATCH-FIX-UPSTREAM denose.patch gh#blockdiag/blockdiag#131 pgajdos@suse.com
|
||||||
|
# Remove the last silly dependency on nose
|
||||||
Patch0: python-blockdiag-nose-to-pytest.patch
|
Patch0: python-blockdiag-nose-to-pytest.patch
|
||||||
BuildRequires: %{python_module Pillow >= 2.2.1}
|
BuildRequires: %{python_module Pillow >= 2.2.1}
|
||||||
BuildRequires: %{python_module funcparserlib >= 0.3.6}
|
BuildRequires: %{python_module funcparserlib >= 0.3.6}
|
||||||
@@ -47,7 +48,7 @@ BuildRequires: %{python_module pep8 >= 1.3}
|
|||||||
BuildRequires: %{python_module pip >= 1.4.1}
|
BuildRequires: %{python_module pip >= 1.4.1}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||||
Recommends: ghostscript
|
Recommends: ghostscript
|
||||||
Recommends: python-Wand
|
Recommends: python-Wand
|
||||||
Recommends: python-reportlab
|
Recommends: python-reportlab
|
||||||
@@ -59,8 +60,7 @@ The blockdiag package generates block-diagram image files
|
|||||||
from spec-text files.
|
from spec-text files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n blockdiag-%{version}
|
%autosetup -p1 -n blockdiag-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -73,7 +73,7 @@ from spec-text files.
|
|||||||
%post
|
%post
|
||||||
%python_install_alternative blockdiag
|
%python_install_alternative blockdiag
|
||||||
|
|
||||||
%preun
|
%postun
|
||||||
%python_uninstall_alternative blockdiag
|
%python_uninstall_alternative blockdiag
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -89,6 +89,7 @@ popd
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%python_alternative %{_bindir}/blockdiag
|
%python_alternative %{_bindir}/blockdiag
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/blockdiag*
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/blockdiag*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user