From 0a4253696727952f7cf45700e9dc69bb9f44f2ff2c64c2a4c341aa81c179a210 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 18 May 2013 07:43:24 +0000 Subject: [PATCH] - updated to version 2.0.7.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-rdiscount?expand=0&rev=8 --- rdiscount-2.0.7.1.gem | 3 --- rdiscount-2.0.7.3.gem | 3 +++ rubygem-rdiscount.changes | 5 +++++ rubygem-rdiscount.spec | 28 +++++++++++++++++++++++----- 4 files changed, 31 insertions(+), 8 deletions(-) delete mode 100644 rdiscount-2.0.7.1.gem create mode 100644 rdiscount-2.0.7.3.gem diff --git a/rdiscount-2.0.7.1.gem b/rdiscount-2.0.7.1.gem deleted file mode 100644 index c5a7f09..0000000 --- a/rdiscount-2.0.7.1.gem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6d78d961fc846f35cff7ac6fd05aff85a81d74ce04c04c5b1507ac7538a5cf6 -size 59904 diff --git a/rdiscount-2.0.7.3.gem b/rdiscount-2.0.7.3.gem new file mode 100644 index 0000000..d085067 --- /dev/null +++ b/rdiscount-2.0.7.3.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56f07118ce3e49100d6d1c148b4fd58de18d0b8404fd76059e34122e2ec80ac0 +size 59904 diff --git a/rubygem-rdiscount.changes b/rubygem-rdiscount.changes index 7096a5c..1926718 100644 --- a/rubygem-rdiscount.changes +++ b/rubygem-rdiscount.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 18 07:42:18 UTC 2013 - coolo@suse.com + +- updated to version 2.0.7.3 + ------------------------------------------------------------------- Thu Mar 14 17:46:16 UTC 2013 - mrueckert@suse.de diff --git a/rubygem-rdiscount.spec b/rubygem-rdiscount.spec index 405bd4e..43af073 100644 --- a/rubygem-rdiscount.spec +++ b/rubygem-rdiscount.spec @@ -17,18 +17,21 @@ Name: rubygem-rdiscount -Version: 2.0.7.1 +Version: 2.0.7.3 Release: 0 %define mod_name rdiscount %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 -Url: http://github.com/rtomayko/rdiscount -Source: %{mod_full_name}.gem +Url: http://dafoster.net/projects/rdiscount/ +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: Fast Implementation of Gruber's Markdown in C -License: BSD4c +License: BSD-4-Clause Group: Development/Languages/Ruby +%define mod_branch -%{version} +%define mod_weight 2 +PreReq: update-alternatives %description Fast Implementation of Gruber's Markdown in C @@ -60,10 +63,25 @@ Test::Unit or RSpec files, useful for developers. %install %gem_install -f %gem_cleanup +mv %{buildroot}%{_bindir}/rdiscount{,%{mod_branch}} +ln -s rdiscount%{mod_branch} %{buildroot}%{_bindir}/rdiscount +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/COPYING %buildroot/%{_docdir}/%{name}/COPYING + +%post +/usr/sbin/update-alternatives --install \ + %{_bindir}/rdiscount rdiscount %{_bindir}/rdiscount%{mod_branch} %{mod_weight} + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove rdiscount %{_bindir}/rdiscount%{mod_branch} +fi %files %defattr(-,root,root,-) -%{_bindir}/rdiscount +%{_docdir}/%{name} +%{_bindir}/rdiscount%{mod_branch} +%ghost %{_bindir}/rdiscount %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test