diff --git a/python-pycha.changes b/python-pycha.changes index 2cec4fd..21524d8 100644 --- a/python-pycha.changes +++ b/python-pycha.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon May 29 07:55:03 UTC 2017 - axel.braun@gmx.de + +- added python-rpm-macros + +------------------------------------------------------------------- +Sun May 28 13:01:00 UTC 2017 - okurz@suse.com + +- Convert to singlespec + ------------------------------------------------------------------- Fri Sep 23 09:38:32 UTC 2016 - jengelh@inai.de diff --git a/python-pycha.spec b/python-pycha.spec index 48a852a..ef7f224 100644 --- a/python-pycha.spec +++ b/python-pycha.spec @@ -1,8 +1,9 @@ # # spec file for package python-pycha # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 Dr. Axel Braun +# Copyright (c) 2017 Oliver Kurz # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +18,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%define mod_name pycha Name: python-pycha Version: 0.7.0 Release: 0 Summary: A library for making charts with Python License: LGPL-3.0+ Group: Development/Languages/Python -Url: http://bitbucket.org/lgs/pycha/ -Source: https://pypi.io/packages/source/p/pycha/pycha-%{version}.tar.gz +Url: http://bitbucket.org/lgs/%{mod_name}/ +Source: https://pypi.io/packages/source/p/%{mod_name}/%{mod_name}-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildArch: noarch +%python_subpackages %description Pycha is a Python package for drawing charts using the Cairo library. @@ -40,22 +44,19 @@ PlotKit, both of which are written in JavaScript and are for client web programming. Pycha was developed for the server side. %prep -%setup -q -n pycha-%{version} +%setup -q -n %{mod_name}-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %fdupes -s %{buildroot} -%check -#python setup.py test - -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING README.txt CHANGES.txt AUTHORS %{python_sitelib}/* -%{_bindir}/chavier +%python3_only %{_bindir}/chavier %changelog