diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index 446c3fa..0caa31d 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -1,4 +1,4 @@ -%if 0%{?fedora} >= 12 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 %global with_py3 1 %endif @@ -6,7 +6,7 @@ Name: python-%{pkgname} Version: 0.1.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Sphinx theme for readthedocs.org License: MIT @@ -85,15 +85,20 @@ ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \ %endif %files -%doc %{pkgname}-%{version}/LICENSE %{pkgname}-%{version}/README.rst +%doc %{pkgname}-%{version}/README.rst +%license %{pkgname}-%{version}/LICENSE %{python2_sitelib}/%{pkgname}* %if 0%{?with_py3} %files -n python3-%{pkgname} -%doc %{pkgname}-%{version}/LICENSE %{pkgname}-%{version}/README.rst +%doc python3-%{pkgname}-%{version}/README.rst +%license python3-%{pkgname}-%{version}/LICENSE %{python3_sitelib}/%{pkgname}* %endif %changelog +* Sat Feb 21 2015 Jerry James - 0.1.6-2 +- Use license macro + * Thu Jul 3 2014 Jerry James - 0.1.6-1 - Initial RPM