diff --git a/python-markdown.spec b/python-markdown.spec index 2631ea8..1c4b2f7 100644 --- a/python-markdown.spec +++ b/python-markdown.spec @@ -1,6 +1,7 @@ -%define srcname Markdown +%global srcname Markdown +%global pkgname markdown -Name: python-markdown +Name: python-%{pkgname} Version: 2.6.5 Release: 1%{?dist} Summary: Markdown implementation in Python @@ -22,21 +23,21 @@ almost completely compliant with the reference implementation, though there are a few known issues. -%package -n python2-markdown +%package -n python2-%{pkgname} Summary: Markdown implementation in Python -%{?python_provide:%python_provide python2-markdown} +%{?python_provide:%python_provide python2-%{pkgname}} -%description -n python2-markdown +%description -n python2-%{pkgname} This is a Python implementation of John Gruber's Markdown. It is almost completely compliant with the reference implementation, though there are a few known issues. -%package -n python3-markdown +%package -n python3-%{pkgname} Summary: Markdown implementation in Python -%{?python_provide:%python_provide python3-markdown} +%{?python_provide:%python_provide python3-%{pkgname}} -%description -n python3-markdown +%description -n python3-%{pkgname} This is a Python implementation of John Gruber's Markdown. It is almost completely compliant with the reference implementation, though there are a few known issues. @@ -110,7 +111,7 @@ pushd python3 popd -%files -n python2-markdown +%files -n python2-%{pkgname} %doc python2/build/docs/* %license python2/LICENSE.* %{python2_sitelib}/* @@ -119,7 +120,7 @@ popd %{_bindir}/markdown_py-%{python2_version} -%files -n python3-markdown +%files -n python3-%{pkgname} %doc python3/build/docs/* %license python3/LICENSE.* %{python3_sitelib}/*