2015-05-21 13:09:49 +02:00
|
|
|
---
|
|
|
|
#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
|
2017-10-03 05:35:53 +02:00
|
|
|
post_prep: |-
|
|
|
|
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
|
2015-05-21 13:09:49 +02:00
|
|
|
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
|