%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} Name: python-alabaster Version: 0.7.11 Release: 1%{?dist} Summary: A configurable sidebar-enabled Sphinx theme License: BSD Group: Development/Languages/Python Url: https://github.com/bitprophet/alabaster/ Vendor: VMware, Inc. Distribution: Photon Source0: https://pypi.python.org/packages/d0/a5/e3a9ad3ee86aceeff71908ae562580643b955ea1b1d4f08ed6f7e8396bd7/alabaster-%{version}.tar.gz %define sha1 alabaster=3596a252d54c70d1214370b1cefdec3df203bb4e BuildRequires: python2 BuildRequires: python2-devel BuildRequires: python2-libs BuildRequires: python-setuptools Requires: python2 Requires: python2-libs BuildArch: noarch %description Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx documentation system. It is Python 2+3 compatible. %package -n python3-alabaster Summary: A configurable sidebar-enabled Sphinx theme BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-xml Requires: python3 Requires: python3-libs %description -n python3-alabaster Python 3 version. %prep %setup -n alabaster-%{version} rm -rf ../p3dir cp -a . ../p3dir %build python2 setup.py build pushd ../p3dir python3 setup.py build popd %install python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} pushd ../p3dir python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} popd %check make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} %files %defattr(-,root,root,-) %{python2_sitelib}/* %files -n python3-alabaster %defattr(-,root,root,-) %{python3_sitelib}/* %changelog * Sun Sep 09 2018 Tapas Kundu 0.7.11-1 - Update to version 0.7.11 * Wed Jun 07 2017 Xiaolin Li 0.7.10-3 - Add python3-setuptools and python3-xml to python3 sub package Buildrequires. * Thu Jun 01 2017 Dheeraj Shetty 0.7.10-2 - Changed python to python2 * Tue Apr 25 2017 Dheeraj Shetty 0.7.10-1 - Initial