Add license file.

This commit is contained in:
Thomas Moschny 2015-03-14 16:45:43 +01:00
parent aa6be0cc8d
commit bae52188c5

View File

@ -6,7 +6,7 @@
Name: python-markdown Name: python-markdown
Version: 2.6.1 Version: 2.6.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Markdown implementation in Python Summary: Markdown implementation in Python
Group: Development/Languages Group: Development/Languages
License: BSD License: BSD
@ -82,7 +82,12 @@ pushd python2
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} %{__python2} setup.py install -O1 --skip-build --root %{buildroot}
# rename binary # rename binary
mv %{buildroot}%{_bindir}/markdown_py{,-%{python_version}} mv %{buildroot}%{_bindir}/markdown_py{,-%{python2_version}}
# process license file
PYTHONPATH=%{buildroot}%{python2_sitelib} \
%{buildroot}%{_bindir}/markdown_py-%{python2_version} \
LICENSE.md > LICENSE.html
popd popd
%if 0%{?with_python3} %if 0%{?with_python3}
@ -91,6 +96,11 @@ pushd python3
# rename binary # rename binary
mv %{buildroot}%{_bindir}/markdown_py{,-%{python3_version}} mv %{buildroot}%{_bindir}/markdown_py{,-%{python3_version}}
# process license file
PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{buildroot}%{_bindir}/markdown_py-%{python3_version} \
LICENSE.md > LICENSE.html
popd popd
%endif # with_python3 %endif # with_python3
@ -112,6 +122,7 @@ popd
%files %files
%doc python2/build/docs/* %doc python2/build/docs/*
%license python2/LICENSE.*
%{python2_sitelib}/* %{python2_sitelib}/*
%{_bindir}/markdown_py %{_bindir}/markdown_py
%{_bindir}/markdown_py-%{python2_version} %{_bindir}/markdown_py-%{python2_version}
@ -120,12 +131,16 @@ popd
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-markdown %files -n python3-markdown
%doc python3/build/docs/* %doc python3/build/docs/*
%license python3/LICENSE.*
%{python3_sitelib}/* %{python3_sitelib}/*
%{_bindir}/markdown_py-%{python3_version} %{_bindir}/markdown_py-%{python3_version}
%endif # with_python3 %endif # with_python3
%changelog %changelog
* Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-2
- Add license file.
* Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-1 * Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-1
- Update to 2.6.1. - Update to 2.6.1.
- Apply updated Python packaging guidelines. - Apply updated Python packaging guidelines.