Hello community,

here is the log from the commit of package rubygem-ruby_parser for 
openSUSE:Factory checked in at 2013-03-28 13:26:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby_parser (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-ruby_parser", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ruby_parser/rubygem-ruby_parser.changes  
2013-01-01 12:04:06.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new/rubygem-ruby_parser.changes 
    2013-03-28 13:26:27.000000000 +0100
@@ -1,0 +2,8 @@
+Tue Mar 19 19:51:44 UTC 2013 - [email protected]
+
+- updated to version 3.1.2
+ * 1 minor enhancement:
+ 
+   * OMG A SECURITY ISSUE FOR CODE NOBODY USES... EVER
+
+-------------------------------------------------------------------

Old:
----
  ruby_parser-3.1.1.gem

New:
----
  ruby_parser-3.1.2.gem

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

Other differences:
------------------
++++++ rubygem-ruby_parser.spec ++++++
--- /var/tmp/diff_new_pack.7iUDCf/_old  2013-03-28 13:26:28.000000000 +0100
+++ /var/tmp/diff_new_pack.7iUDCf/_new  2013-03-28 13:26:28.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-ruby_parser
 #
-# 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
@@ -17,7 +17,7 @@
 
 
 Name:           rubygem-ruby_parser
-Version:        3.1.1
+Version:        3.1.2
 Release:        0
 %define mod_name ruby_parser
 %define mod_full_name %{mod_name}-%{version}
@@ -26,10 +26,13 @@
 BuildRequires:  ruby-macros >= 1
 BuildRequires:  rubygem(rdoc) > 3.10
 Url:            https://github.com/seattlerb/ruby_parser
-Source:         %{mod_full_name}.gem
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Summary:        ruby_parser (RP) is a ruby parser written in pure ruby 
(utilizing
 License:        MIT
 Group:          Development/Languages/Ruby
+%define mod_branch -3.1.2
+%define mod_weight 3
+PreReq:         update-alternatives
 
 %description
 ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
@@ -75,11 +78,31 @@
 
 %install
 %gem_install -f
+mv %{buildroot}%{_bindir}/ruby_parse{,%{mod_branch}}
+ln -s ruby_parse%{mod_branch} %{buildroot}%{_bindir}/ruby_parse
+mv %{buildroot}%{_bindir}/ruby_parse_extract_error{,%{mod_branch}}
+ln -s ruby_parse_extract_error%{mod_branch} 
%{buildroot}%{_bindir}/ruby_parse_extract_error
+
+%post
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/ruby_parse ruby_parse %{_bindir}/ruby_parse%{mod_branch} 
%{mod_weight}
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/ruby_parse_extract_error ruby_parse_extract_error 
%{_bindir}/ruby_parse_extract_error%{mod_branch} %{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove ruby_parse 
%{_bindir}/ruby_parse%{mod_branch}
+fi
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove ruby_parse_extract_error 
%{_bindir}/ruby_parse_extract_error%{mod_branch}
+fi
 
 %files
 %defattr(-,root,root,-)
-%{_bindir}/ruby_parse
-%{_bindir}/ruby_parse_extract_error
+%{_bindir}/ruby_parse%{mod_branch}
+%ghost %{_bindir}/ruby_parse
+%{_bindir}/ruby_parse_extract_error%{mod_branch}
+%ghost %{_bindir}/ruby_parse_extract_error
 %{_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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to