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
This commit is contained in:
Todd R 2017-04-19 14:09:14 +00:00 committed by Git OBS Bridge
parent ca6ad27e19
commit c2bb1e46cd
2 changed files with 19 additions and 9 deletions

View File

@ -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

View File

@ -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}/*