[python-markdown] Add license file.

Thomas Moschny thm at fedoraproject.org
Sat Mar 14 15:46:05 UTC 2015


commit bae52188c549d400c3fb61eca64ac54ab4426725
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Sat Mar 14 16:45:43 2015 +0100

    Add license file.

 python-markdown.spec | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/python-markdown.spec b/python-markdown.spec
index 653ab09..e297c62 100644
--- a/python-markdown.spec
+++ b/python-markdown.spec
@@ -6,7 +6,7 @@
 
 Name:           python-markdown
 Version:        2.6.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Markdown implementation in Python
 Group:          Development/Languages
 License:        BSD
@@ -82,7 +82,12 @@ pushd python2
 %{__python2} setup.py install -O1 --skip-build --root %{buildroot}
 
 # 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
 
 %if 0%{?with_python3}
@@ -91,6 +96,11 @@ pushd python3
 
 # rename binary
 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
 %endif # with_python3
 
@@ -112,6 +122,7 @@ popd
 
 %files
 %doc python2/build/docs/*
+%license python2/LICENSE.*
 %{python2_sitelib}/*
 %{_bindir}/markdown_py
 %{_bindir}/markdown_py-%{python2_version}
@@ -120,12 +131,16 @@ popd
 %if 0%{?with_python3}
 %files -n python3-markdown
 %doc python3/build/docs/*
+%license python3/LICENSE.*
 %{python3_sitelib}/*
 %{_bindir}/markdown_py-%{python3_version}
 %endif # with_python3
 
 
 %changelog
+* Sat Mar 14 2015 Thomas Moschny <thomas.moschny at gmx.de> - 2.6.1-2
+- Add license file.
+
 * Sat Mar 14 2015 Thomas Moschny <thomas.moschny at gmx.de> - 2.6.1-1
 - Update to 2.6.1.
 - Apply updated Python packaging guidelines.


More information about the scm-commits mailing list