From 0f0059807f36ce36e4f5b26650d4a4efa1623b9cb04cd2443ef3f41d7deb0e79 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 9 Oct 2017 00:45:23 +0000 Subject: [PATCH] Accepting request 532594 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/532594 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-seqdiag?expand=0&rev=2 --- python-seqdiag.changes | 6 ++++++ python-seqdiag.spec | 19 +++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/python-seqdiag.changes b/python-seqdiag.changes index dbbb75f..6056b05 100644 --- a/python-seqdiag.changes +++ b/python-seqdiag.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 8 16:02:56 UTC 2017 - arun@gmx.de + +- convert to singlespec +- update copyright year + ------------------------------------------------------------------- Fri Jul 10 11:17:08 UTC 2015 - tbechtold@suse.com diff --git a/python-seqdiag.spec b/python-seqdiag.spec index 9e66254..f1563aa 100644 --- a/python-seqdiag.spec +++ b/python-seqdiag.spec @@ -1,7 +1,7 @@ # # spec file for package python-seqdiag # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-seqdiag Version: 0.9.5 Release: 0 @@ -24,9 +25,10 @@ License: Apache-2.0 Group: Development/Languages/Python Url: http://blockdiag.com/ Source: https://pypi.python.org/packages/source/s/seqdiag/seqdiag-%{version}.tar.gz -BuildRequires: python-blockdiag >= 1.5.0 -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module blockdiag >= 1.5.0} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-blockdiag >= 1.5.0 Requires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -35,6 +37,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %else BuildArch: noarch %endif +%python_subpackages %description `seqdiag` generate sequence-diagram image file from spec-text file. @@ -46,15 +49,15 @@ BuildArch: noarch %setup -q -n seqdiag-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst LICENSE README.rst -%{_bindir}/seqdiag +%python3_only %{_bindir}/seqdiag %{python_sitelib}/* %changelog