Use %global instead of %define.

This commit is contained in:
Thomas Moschny 2016-01-04 19:17:01 +01:00
parent cfe963dee0
commit d827611a2d

View File

@ -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}/*