diff --git a/python-sphinx-theme-flask.spec b/python-sphinx-theme-flask.spec index 061e4f6..622da61 100644 --- a/python-sphinx-theme-flask.spec +++ b/python-sphinx-theme-flask.spec @@ -7,7 +7,7 @@ Name: python-sphinx-theme-flask Version: git%{commitdate}.%{shortcommit} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Sphinx Themes for Flask related projects and Flask itself %{?el5:Group: Applications/Publishing} @@ -19,6 +19,10 @@ Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel +%if 0%{?fedora} || 0%{?rhel} >= 7 +BuildRequires: python3-devel +%endif + Requires: python-sphinx %description @@ -32,6 +36,23 @@ The following themes exist: addon libraries for flask. +%if 0%{?fedora} || 0%{?rhel} >= 7 +%package -n python3-sphinx-theme-flask +Summary: Sphinx Themes for Flask related projects and Flask itself +Requires: python3-sphinx + +%description -n python3-sphinx-theme-flask +%{name} contains +%{summary}. + +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 %setup -qn %{upname}-%{commit} @@ -45,6 +66,11 @@ addon libraries for flask. mkdir -p %{buildroot}%{python_sitelib}/sphinx/themes cp -pr flask* %{buildroot}%{python_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 + %clean %{?el5:rm -rf %{buildroot}} @@ -54,7 +80,16 @@ cp -pr flask* %{buildroot}%{python_sitelib}/sphinx/themes %doc LICENSE README %{python_sitelib}/sphinx/themes/* +%if 0%{?fedora} || 0%{?rhel} >= 7 +%files -n python3-sphinx-theme-flask +%doc LICENSE README +%{python3_sitelib}/sphinx/themes/* +%endif + %changelog +* Mon Aug 12 2013 Björn Esser - git20130715.1cc4468-2 +- added python3-package + * Mon Aug 12 2013 Björn Esser - git20130715.1cc4468-1 - Initial rpm release (#996061)