Use license macro.

This commit is contained in:
Jerry James 2015-02-21 17:13:50 -07:00
parent 7727b2c93f
commit f20194157e

View File

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