File cpanspec.yml of Package perl-Text-Markdown

---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
preamble: |-
 %post
 update-alternatives \
        --install %{_bindir}/markdown markdown %{_bindir}/Markdown.pl 30

 %postun
 if [ $1 -eq 0 ] ; then
        update-alternatives --remove markdown %{_bindir}/Markdown.pl
 fi
post_prep: |-
 sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
post_install: |-
 # update-alternatives
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 touch %{buildroot}%{_sysconfdir}/alternatives/markdown
 ln -sf %{_sysconfdir}/alternatives/markdown %{buildroot}%{_bindir}/markdown

 echo "%ghost %{_sysconfdir}/alternatives/markdown" >> %{name}.files
 echo "%{_bindir}/markdown" >> %{name}.files

#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module