Add license file.
This commit is contained in:
parent
aa6be0cc8d
commit
bae52188c5
@ -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@gmx.de> - 2.6.1-2
|
||||
- Add license file.
|
||||
|
||||
* Sat Mar 14 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-1
|
||||
- Update to 2.6.1.
|
||||
- Apply updated Python packaging guidelines.
|
||||
|
Loading…
Reference in New Issue
Block a user