From 18e9a046da31bbeffe1eccd1da605ff0ac2fca847cc8b013fcd13336b61b2ea7 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 12 Apr 2017 17:32:17 +0000 Subject: [PATCH] Accepting request 487668 from devel:languages:python:singlespec Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/487668 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cycler?expand=0&rev=5 --- python-Cycler.changes | 15 +++++++++++++++ python-Cycler.spec | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/python-Cycler.changes b/python-Cycler.changes index 8bbc0d6..5aeb508 100644 --- a/python-Cycler.changes +++ b/python-Cycler.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Apr 12 17:31:02 UTC 2017 - toddrme2178@gmail.com + +- Fix redefinition of %python_module macro. + +------------------------------------------------------------------- +Mon Feb 27 18:45:41 UTC 2017 - toddrme2178@gmail.com + +- Fix macro usage + +------------------------------------------------------------------- +Sat Feb 25 04:12:47 UTC 2017 - toddrme2178@gmail.com + +- Switch to single-spec version + ------------------------------------------------------------------- Fri Jan 20 20:57:54 UTC 2017 - toddrme2178@gmail.com diff --git a/python-Cycler.spec b/python-Cycler.spec index a55c6cf..e747c61 100644 --- a/python-Cycler.spec +++ b/python-Cycler.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Cycler Version: 0.10.0 Release: 0 @@ -23,17 +24,16 @@ Summary: Composable style cycles License: BSD-3-Clause Group: Development/Languages/Python Url: http://github.com/matplotlib/cycler -Source: https://pypi.io/packages/source/C/Cycler/cycler-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six +Source: https://file.pythonhosted.org/packages/source/C/Cycler/cycler-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description When plotting more than one line it is common to want to be able to @@ -49,12 +49,12 @@ kwarg iterator, was developed. %setup -q -n cycler-%{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 README.rst %{python_sitelib}/*