Hello community, here is the log from the commit of package rubygem-coderay for openSUSE:Factory checked in at 2013-10-06 14:57:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-coderay (Old) and /work/SRC/openSUSE:Factory/.rubygem-coderay.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-coderay" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-coderay/rubygem-coderay.changes 2013-03-14 15:36:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-coderay.new/rubygem-coderay.changes 2013-10-06 14:57:50.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Sep 3 08:10:13 UTC 2013 - co...@suse.com + +- updated to version 1.1.0, no changelog + +------------------------------------------------------------------- Old: ---- coderay-1.0.9.gem New: ---- coderay-1.1.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-coderay.spec ++++++ --- /var/tmp/diff_new_pack.olIvC4/_old 2013-10-06 14:57:50.000000000 +0200 +++ /var/tmp/diff_new_pack.olIvC4/_new 2013-10-06 14:57:50.000000000 +0200 @@ -17,21 +17,25 @@ Name: rubygem-coderay -Version: 1.0.9 +Version: 1.1.0 Release: 0 %define mod_name coderay %define mod_full_name %{mod_name}-%{version} +%define mod_branch -%{version} +%define mod_weight 10100 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 Requires: ruby >= 1.8.6 BuildRequires: ruby-devel >= 1.8.6 +BuildRequires: update-alternatives BuildRequires: rubygem(rdoc) > 3.10 Url: http://coderay.rubychan.de -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: Fast syntax highlighting for selected languages License: MIT Group: Development/Languages/Ruby +PreReq: update-alternatives %description Fast and easy syntax highlighting for selected languages, written in Ruby. @@ -63,10 +67,25 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/coderay{,%{mod_branch}} +touch %{buildroot}%{_sysconfdir}/alternatives/coderay +ln -s %{_sysconfdir}/alternatives/coderay %{buildroot}%{_bindir}/coderay + +%post +/usr/sbin/update-alternatives --install \ + %{_bindir}/coderay coderay %{_bindir}/coderay%{mod_branch} %{mod_weight} + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove coderay %{_bindir}/coderay%{mod_branch} +fi %files %defattr(-,root,root,-) +%{_bindir}/coderay%{mod_branch} %{_bindir}/coderay +%ghost %{_sysconfdir}/alternatives/coderay %{_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 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org