[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: meson
|
||||
BuildRequires: ninja >= 1.7
|
||||
BuildRequires: perl-Text-Markdown
|
||||
BuildRequires: discount
|
||||
BuildRequires: python3-base >= 3.6
|
||||
BuildRequires: python3-setuptools
|
||||
%if %{kvm_available}
|
||||
@@ -787,7 +787,7 @@ for f in *.md
|
||||
do
|
||||
b="${f%.md}"
|
||||
# Ensure the correct media type
|
||||
Markdown.pl "${f}" >"${b}.html"
|
||||
markdown "${f}" >"${b}.html"
|
||||
# Links to b.md will be rendered as to b
|
||||
ln -Ts "${b}.html" "${b}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user