From 61947c7b23a7bf9c3b89d1156f7e8d175e7f4f43 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Dec 10 2018 11:17:09 +0000 Subject: Fix Python 2 installation --- diff --git a/python-sphinx-theme-flask.spec b/python-sphinx-theme-flask.spec index 3101aed..2661b32 100644 --- a/python-sphinx-theme-flask.spec +++ b/python-sphinx-theme-flask.spec @@ -1,5 +1,3 @@ -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} - %global upname flask-sphinx-themes %global commitdate 20130715 %global commit 1cc44686f0f9dad27cce2c9d16cf42f97bc87dbd @@ -7,21 +5,14 @@ Name: python-sphinx-theme-flask Version: git%{commitdate}.%{shortcommit} -Release: 15%{?dist} +Release: 16%{?dist} Summary: Sphinx Themes for Flask related projects and Flask itself -%{?el5:Group: Applications/Publishing} License: BSD URL: https://github.com/mitsuhiko/%{upname} Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz -%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)} BuildArch: noarch -BuildRequires: python2-devel - -%if 0%{?fedora} || 0%{?rhel} >= 7 -BuildRequires: python3-devel -%endif %global _description\ %{name} contains\ @@ -38,14 +29,15 @@ addon libraries for flask.\ %package -n python2-sphinx-theme-flask Summary: %summary +BuildRequires: python2-devel Requires: python2-sphinx %{?python_provide:%python_provide python2-sphinx-theme-flask} %description -n python2-sphinx-theme-flask %_description -%if 0%{?fedora} || 0%{?rhel} >= 7 %package -n python3-sphinx-theme-flask -Summary: Sphinx Themes for Flask related projects and Flask itself +Summary: %summary +BuildRequires: python3-devel Requires: python3-sphinx %description -n python3-sphinx-theme-flask @@ -57,7 +49,6 @@ The following themes exist: * flask - the standard flask documentation theme for large projects * flask_small - small one-page theme. Intended to be used by very small addon libraries for flask. -%endif %prep @@ -69,29 +60,30 @@ addon libraries for flask. %install -%{?el5:rm -rf %{buildroot}} -mkdir -p %{buildroot}%{python_sitelib}/sphinx/themes -cp -pr flask* %{buildroot}%{python_sitelib}/sphinx/themes +mkdir -p %{buildroot}%{python2_sitelib}/sphinx/themes +cp -pr flask* %{buildroot}%{python2_sitelib}/sphinx/themes -%if 0%{?fedora} || 0%{?rhel} >= 7 mkdir -p %{buildroot}%{python3_sitelib}/sphinx/themes cp -pr flask* %{buildroot}%{python3_sitelib}/sphinx/themes -%endif + %files -n python2-sphinx-theme-flask +%license LICENSE %doc LICENSE README %{python2_sitelib}/sphinx/themes/* -%if 0%{?fedora} || 0%{?rhel} >= 7 %files -n python3-sphinx-theme-flask +%license LICENSE %doc LICENSE README %{python3_sitelib}/sphinx/themes/* -%endif %changelog +* Mon Dec 10 2018 Miro Hrončok - git20130715.1cc4468-16 +- Fix Python 2 installation + * Sat Jul 14 2018 Fedora Release Engineering - git20130715.1cc4468-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild