From c2bb1e46cde137c968e2b5450bcf78e6ddc4423acd8e442c2ddbfbb4fa3accbc Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 19 Apr 2017 14:09:14 +0000 Subject: [PATCH] Accepting request 487682 from devel:languages:python:singlespec 1 OBS-URL: https://build.opensuse.org/request/show/487682 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx_rtd_theme?expand=0&rev=8 --- python-sphinx_rtd_theme.changes | 10 ++++++++++ python-sphinx_rtd_theme.spec | 18 +++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/python-sphinx_rtd_theme.changes b/python-sphinx_rtd_theme.changes index 530061f..c2f07e1 100644 --- a/python-sphinx_rtd_theme.changes +++ b/python-sphinx_rtd_theme.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Apr 12 18:18:26 UTC 2017 - toddrme2178@gmail.com + +- Fix python_module macro definition. + +------------------------------------------------------------------- +Mon Dec 19 18:41:21 UTC 2016 - jmatejek@suse.com + +- update for multipython build + ------------------------------------------------------------------- Mon Jul 18 12:50:06 UTC 2016 - dmueller@suse.com diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index 7f370ce..f6f206c 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sphinx_rtd_theme Version: 0.1.8 Release: 0 @@ -24,14 +25,13 @@ License: MIT and Apache-2.0 and OFL-1.1 Group: Development/Languages/Python Url: https://github.com/snide/sphinx_rtd_theme/ Source: https://pypi.io/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros 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 This is a prototype mobile-friendly sphinx theme I made for readthedocs.org. It's @@ -42,12 +42,12 @@ if you're just trying to use it on your project outside of that site. %setup -q -n sphinx_rtd_theme-%{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 LICENSE OFL-License.txt Apache-License-2.0.txt README.rst %{python_sitelib}/*