Hello community,

here is the log from the commit of package rubygem-commander for 
openSUSE:Factory checked in at 2013-08-05 20:51:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-commander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-commander.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-commander"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-commander/rubygem-commander.changes      
2013-01-02 13:01:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-commander.new/rubygem-commander.changes 
2013-08-05 20:51:24.000000000 +0200
@@ -1,0 +2,8 @@
+Tue Jul 30 16:10:18 UTC 2013 - [email protected]
+
+- updated to version 4.1.4
+ * Improve help formatting for multiline program and command descriptions
+ * Add ability to set speaking rate (@kethomassen)
+ * Clean up examples in docs (@parkr)
+
+-------------------------------------------------------------------

Old:
----
  commander-4.1.3.gem

New:
----
  commander-4.1.4.gem

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

Other differences:
------------------
++++++ rubygem-commander.spec ++++++
--- /var/tmp/diff_new_pack.pWVqu3/_old  2013-08-05 20:51:25.000000000 +0200
+++ /var/tmp/diff_new_pack.pWVqu3/_new  2013-08-05 20:51:25.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-commander
 #
-# 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,18 +17,22 @@
 
 
 Name:           rubygem-commander
-Version:        4.1.3
+Version:        4.1.4
 Release:        0
 %define mod_name commander
 %define mod_full_name %{mod_name}-%{version}
+%define mod_branch -%{version}
+%define mod_weight 40104
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ruby-macros >= 1
+BuildRequires:  update-alternatives
 Url:            http://visionmedia.github.com/commander
-Source:         %{mod_full_name}.gem
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Summary:        The complete solution for Ruby command-line executables
 License:        MIT
 Group:          Development/Languages/Ruby
+PreReq:         update-alternatives
 
 %description
 The complete solution for Ruby command-line executables. Commander bridges the
@@ -61,10 +65,30 @@
 
 %install
 %gem_install -f
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/commander{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/commander
+ln -s %{_sysconfdir}/alternatives/commander %{buildroot}%{_bindir}/commander
+
+mkdir -p %{buildroot}%{_docdir}/%{name}
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/History.rdoc 
%buildroot/%{_docdir}/%{name}/History.rdoc
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.rdoc 
%buildroot/%{_docdir}/%{name}/README.rdoc
+
+%post
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/commander commander %{_bindir}/commander%{mod_branch} 
%{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove commander 
%{_bindir}/commander%{mod_branch}
+fi
 
 %files
 %defattr(-,root,root,-)
+%{_docdir}/%{name}
+%{_bindir}/commander%{mod_branch}
 %{_bindir}/commander
+%ghost %{_sysconfdir}/alternatives/commander
 %{_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}/spec

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

Reply via email to