Hello community,

here is the log from the commit of package rubygem-sprockets-2_2 for 
openSUSE:Factory checked in at 2013-04-20 18:01:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sprockets-2_2 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sprockets-2_2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sprockets-2_2", Maintainer is "[email protected]"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-sprockets-2_2/rubygem-sprockets-2_2.changes  
    2013-01-01 12:04:28.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sprockets-2_2.new/rubygem-sprockets-2_2.changes
 2013-04-20 18:02:01.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Apr 19 13:10:40 UTC 2013 - [email protected]
+
+- use update-alternatives
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sprockets-2_2.spec ++++++
--- /var/tmp/diff_new_pack.BxQVGd/_old  2013-04-20 18:02:05.000000000 +0200
+++ /var/tmp/diff_new_pack.BxQVGd/_new  2013-04-20 18:02:05.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-sprockets-2_2
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,13 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ruby-macros >= 1
 Url:            http://getsprockets.org/
-Source:         %{mod_full_name}.gem
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Summary:        Rack-based asset packaging system
 License:        MIT
 Group:          Development/Languages/Ruby
+%define mod_branch -2.2.2
+%define mod_weight 2
+PreReq:         update-alternatives
 
 %description
 Sprockets is a Rack-based asset packaging system that concatenates and serves
@@ -52,10 +55,22 @@
 
 %install
 %gem_install -f
+mv %{buildroot}%{_bindir}/sprockets{,%{mod_branch}}
+ln -s sprockets%{mod_branch} %{buildroot}%{_bindir}/sprockets
+
+%post
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/sprockets sprockets %{_bindir}/sprockets%{mod_branch} 
%{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove sprockets 
%{_bindir}/sprockets%{mod_branch}
+fi
 
 %files
 %defattr(-,root,root,-)
-%{_bindir}/sprockets
+%{_bindir}/sprockets%{mod_branch}
+%ghost %{_bindir}/sprockets
 %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
 %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
 %{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to