Hello community,

here is the log from the commit of package rubygem-racc for openSUSE:Factory 
checked in at 2013-10-31 15:59:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-racc (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-racc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-racc"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-racc/rubygem-racc.changes        
2012-09-01 10:34:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-racc.new/rubygem-racc.changes   
2013-10-31 15:59:03.000000000 +0100
@@ -1,0 +2,6 @@
+Sun Oct 20 12:05:41 UTC 2013 - [email protected]
+
+- updated to version 1.4.10, still no changelog
+- regenerate with newest gem2rpm using update-alternatives
+
+-------------------------------------------------------------------

Old:
----
  racc-1.4.9.gem

New:
----
  racc-1.4.10.gem

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

Other differences:
------------------
++++++ rubygem-racc.spec ++++++
--- /var/tmp/diff_new_pack.B3t5NR/_old  2013-10-31 15:59:03.000000000 +0100
+++ /var/tmp/diff_new_pack.B3t5NR/_new  2013-10-31 15:59:03.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-racc
 #
-# 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,19 +17,23 @@
 
 
 Name:           rubygem-racc
-Version:        1.4.9
+Version:        1.4.10
 Release:        0
 %define mod_name racc
 %define mod_full_name %{mod_name}-%{version}
+%define mod_branch -%{version}
+%define mod_weight 10410
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ruby-macros >= 1
+BuildRequires:  update-alternatives
 BuildRequires:  rubygem(rdoc) > 3.10
 Url:            http://i.loveruby.net/en/projects/racc/
-Source:         %{mod_full_name}.gem
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Summary:        Racc is a LALR(1) parser generator
 License:        LGPL-2.1+
 Group:          Development/Languages/Ruby
+PreReq:         update-alternatives
 
 %description
 Racc is a LALR(1) parser generator.
@@ -65,12 +69,55 @@
 %install
 %gem_install -f
 %gem_cleanup
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/racc{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/racc
+ln -s %{_sysconfdir}/alternatives/racc %{buildroot}%{_bindir}/racc
+
+mv %{buildroot}%{_bindir}/racc2y{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/racc2y
+ln -s %{_sysconfdir}/alternatives/racc2y %{buildroot}%{_bindir}/racc2y
+
+mv %{buildroot}%{_bindir}/y2racc{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/y2racc
+ln -s %{_sysconfdir}/alternatives/y2racc %{buildroot}%{_bindir}/y2racc
+
+mkdir -p %{buildroot}%{_docdir}/%{name}
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/COPYING 
%buildroot/%{_docdir}/%{name}/COPYING
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ChangeLog 
%buildroot/%{_docdir}/%{name}/ChangeLog
+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}/racc racc %{_bindir}/racc%{mod_branch} %{mod_weight}
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/racc2y racc2y %{_bindir}/racc2y%{mod_branch} %{mod_weight}
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/y2racc y2racc %{_bindir}/y2racc%{mod_branch} %{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove racc %{_bindir}/racc%{mod_branch}
+fi
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove racc2y 
%{_bindir}/racc2y%{mod_branch}
+fi
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove y2racc 
%{_bindir}/y2racc%{mod_branch}
+fi
 
 %files
 %defattr(-,root,root,-)
+%{_docdir}/%{name}
+%{_bindir}/racc%{mod_branch}
 %{_bindir}/racc
+%ghost %{_sysconfdir}/alternatives/racc
+%{_bindir}/racc2y%{mod_branch}
 %{_bindir}/racc2y
+%ghost %{_sysconfdir}/alternatives/racc2y
+%{_bindir}/y2racc%{mod_branch}
 %{_bindir}/y2racc
+%ghost %{_sysconfdir}/alternatives/y2racc
 %{_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