Use %global instead of %define.
This commit is contained in:
parent
cfe963dee0
commit
d827611a2d
@ -1,6 +1,7 @@
|
|||||||
%define srcname Markdown
|
%global srcname Markdown
|
||||||
|
%global pkgname markdown
|
||||||
|
|
||||||
Name: python-markdown
|
Name: python-%{pkgname}
|
||||||
Version: 2.6.5
|
Version: 2.6.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Markdown implementation in Python
|
Summary: Markdown implementation in Python
|
||||||
@ -22,21 +23,21 @@ almost completely compliant with the reference implementation, though
|
|||||||
there are a few known issues.
|
there are a few known issues.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-markdown
|
%package -n python2-%{pkgname}
|
||||||
Summary: Markdown implementation in Python
|
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
|
This is a Python implementation of John Gruber's Markdown. It is
|
||||||
almost completely compliant with the reference implementation, though
|
almost completely compliant with the reference implementation, though
|
||||||
there are a few known issues.
|
there are a few known issues.
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-markdown
|
%package -n python3-%{pkgname}
|
||||||
Summary: Markdown implementation in Python
|
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
|
This is a Python implementation of John Gruber's Markdown. It is
|
||||||
almost completely compliant with the reference implementation, though
|
almost completely compliant with the reference implementation, though
|
||||||
there are a few known issues.
|
there are a few known issues.
|
||||||
@ -110,7 +111,7 @@ pushd python3
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-markdown
|
%files -n python2-%{pkgname}
|
||||||
%doc python2/build/docs/*
|
%doc python2/build/docs/*
|
||||||
%license python2/LICENSE.*
|
%license python2/LICENSE.*
|
||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
@ -119,7 +120,7 @@ popd
|
|||||||
%{_bindir}/markdown_py-%{python2_version}
|
%{_bindir}/markdown_py-%{python2_version}
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-markdown
|
%files -n python3-%{pkgname}
|
||||||
%doc python3/build/docs/*
|
%doc python3/build/docs/*
|
||||||
%license python3/LICENSE.*
|
%license python3/LICENSE.*
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user