From 9faa5fbcd650ec97b540bee0ffbd307c150bef27c23a7f5fc188363c41aa437b Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 19 Apr 2017 16:16:06 +0000 Subject: [PATCH] Accepting request 489385 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489385 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=10 --- python-pydot.changes | 5 +++++ python-pydot.spec | 21 ++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/python-pydot.changes b/python-pydot.changes index dc7b070..db829e0 100644 --- a/python-pydot.changes +++ b/python-pydot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 19 16:15:07 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + ------------------------------------------------------------------- Tue Nov 1 20:19:09 UTC 2016 - toddrme2178@gmail.com diff --git a/python-pydot.spec b/python-pydot.spec index a0114dc..012f89d 100644 --- a/python-pydot.spec +++ b/python-pydot.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydot # -# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pydot Version: 1.2.3 Release: 0 @@ -25,12 +26,15 @@ License: MIT Group: Development/Libraries/Python Source: https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-pyparsing >= 2.1.4 -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pyparsing >= 2.1.4} Requires: graphviz Requires: python-pyparsing >= 2.1.4 BuildArch: noarch +%python_subpackages %description pydot allows to easily create both directed and non directed graphs from Python. @@ -40,16 +44,19 @@ Currently all attributes implemented in the Dot language are supported (up to Gr %setup -q -n pydot-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.md LICENSE %{python_sitelib}/dot_parser.py* %{python_sitelib}/pydot.py* +%pycache_only %{python_sitelib}/__pycache__/dot_parser.*.py* +%pycache_only %{python_sitelib}/__pycache__/pydot.*.py* %{python_sitelib}/pydot-%{version}-py*.egg-info %changelog