From 926ca50898345b53edc62d721070c9fa8c58136327cdce31f06617dee154597c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:10:32 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=10 --- python-blockdiag.spec | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/python-blockdiag.spec b/python-blockdiag.spec index babed39..bd387e0 100644 --- a/python-blockdiag.spec +++ b/python-blockdiag.spec @@ -16,17 +16,16 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # tests need network connection %bcond_with tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-blockdiag Version: 1.5.3 Release: 0 Summary: Generates block-diagram image from text License: Apache-2.0 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 BuildRequires: %{python_module Pillow >= 2.2.1} BuildRequires: %{python_module funcparserlib >= 0.3.6} @@ -35,6 +34,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module webcolors} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Pillow >= 2.2.1 +Requires: python-funcparserlib >= 0.3.6 +Requires: python-webcolors +Requires(post): update-alternatives +Requires(preun): update-alternatives +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module docutils} BuildRequires: %{python_module mock} @@ -42,18 +47,11 @@ BuildRequires: %{python_module nose} BuildRequires: %{python_module pep8 >= 1.3} BuildRequires: %{python_module pip >= 1.4.1} %endif -Requires: python-Pillow >= 2.2.1 -Requires: python-funcparserlib >= 0.3.6 -Requires: python-webcolors %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Recommends: ghostscript Recommends: python-Wand Recommends: python-reportlab %endif -Requires(post): update-alternatives -Requires(preun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -83,8 +81,8 @@ from a spec-text file. %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst LICENSE README.rst +%license LICENSE +%doc CHANGES.rst README.rst %python_alternative %{_bindir}/blockdiag %{python_sitelib}/*