[openSUSE][RPM] Use discount instead of perl-Text-Markdown
perl-Text-Markdown is not always available (e.g., in SLE/Leap). Use discount instead, as the provider of the 'markdown' binary. Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
This commit is contained in:
@@ -194,7 +194,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: meson
|
BuildRequires: meson
|
||||||
BuildRequires: ninja >= 1.7
|
BuildRequires: ninja >= 1.7
|
||||||
BuildRequires: perl-Text-Markdown
|
BuildRequires: discount
|
||||||
BuildRequires: python3-base >= 3.6
|
BuildRequires: python3-base >= 3.6
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%if %{kvm_available}
|
%if %{kvm_available}
|
||||||
@@ -787,7 +787,7 @@ for f in *.md
|
|||||||
do
|
do
|
||||||
b="${f%.md}"
|
b="${f%.md}"
|
||||||
# Ensure the correct media type
|
# Ensure the correct media type
|
||||||
Markdown.pl "${f}" >"${b}.html"
|
markdown "${f}" >"${b}.html"
|
||||||
# Links to b.md will be rendered as to b
|
# Links to b.md will be rendered as to b
|
||||||
ln -Ts "${b}.html" "${b}"
|
ln -Ts "${b}.html" "${b}"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user