Hello community,
here is the log from the commit of package perl-Text-Markdown for
openSUSE:Factory checked in at 2015-05-27 12:48:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Markdown (Old)
and /work/SRC/openSUSE:Factory/.perl-Text-Markdown.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Markdown"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Text-Markdown/perl-Text-Markdown.changes
2011-12-12 17:03:34.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Text-Markdown.new/perl-Text-Markdown.changes
2015-05-27 12:48:58.000000000 +0200
@@ -1,0 +2,10 @@
+Thu May 21 11:09:35 UTC 2015 - [email protected]
+
+- translate previous change into cpanspec.yml
+
+-------------------------------------------------------------------
+Thu May 21 09:40:02 UTC 2015 - [email protected]
+
+- add a Debian compatible symlink with update-alternatives
+
+-------------------------------------------------------------------
New:
----
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Text-Markdown.spec ++++++
--- /var/tmp/diff_new_pack.PwsH19/_old 2015-05-27 12:48:59.000000000 +0200
+++ /var/tmp/diff_new_pack.PwsH19/_new 2015-05-27 12:48:59.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Text-Markdown
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,18 +24,26 @@
License: BSD-3-Clause
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Text-Markdown/
-Source:
http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
+Source0:
http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
-BuildRequires: perl(LWP::Simple)
+BuildRequires: perl-macros
BuildRequires: perl(List::MoreUtils)
-BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
-BuildRequires: perl(Text::Diff)
-BuildRequires: perl-macros
%{perl_requires}
+# MANUAL BEGIN
+%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
+# MANUAL END
%description
Markdown is a text-to-HTML filter; it translates an easy-to-read /
@@ -61,11 +69,17 @@
%install
%perl_make_install
%perl_process_packlist
+# MANUAL BEGIN
+# 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
+# MANUAL END
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes License.text README Readme.text Todo
++++++ cpanspec.yml ++++++
---
#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: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t 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