Hello community, here is the log from the commit of package rubygem-treetop for openSUSE:Factory checked in at 2013-06-13 22:40:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-treetop (Old) and /work/SRC/openSUSE:Factory/.rubygem-treetop.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-treetop" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-treetop/rubygem-treetop.changes 2012-11-06 16:23:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-treetop.new/rubygem-treetop.changes 2013-06-13 22:40:58.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Jun 4 16:39:14 UTC 2013 - co...@suse.com + +- updated to version 1.4.14 + +------------------------------------------------------------------- Old: ---- treetop-1.4.12.gem New: ---- treetop-1.4.14.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-treetop.spec ++++++ --- /var/tmp/diff_new_pack.KoC2dp/_old 2013-06-13 22:40:58.000000000 +0200 +++ /var/tmp/diff_new_pack.KoC2dp/_new 2013-06-13 22:40:58.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-treetop # -# 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-treetop -Version: 1.4.12 +Version: 1.4.14 Release: 0 %define mod_name treetop %define mod_full_name %{mod_name}-%{version} @@ -25,10 +25,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 Url: https://github.com/cjheath/treetop -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: A Ruby-based text parsing and interpretation DSL License: MIT Group: Development/Languages/Ruby +%define mod_branch -%{version} +%define mod_weight 1 +PreReq: update-alternatives %description A Ruby-based text parsing and interpretation DSL @@ -59,10 +62,26 @@ %install %gem_install -f +mv %{buildroot}%{_bindir}/tt{,%{mod_branch}} +ln -s tt%{mod_branch} %{buildroot}%{_bindir}/tt +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md + +%post +/usr/sbin/update-alternatives --install \ + %{_bindir}/tt tt %{_bindir}/tt%{mod_branch} %{mod_weight} + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove tt %{_bindir}/tt%{mod_branch} +fi %files %defattr(-,root,root,-) -%{_bindir}/tt +%{_docdir}/%{name} +%{_bindir}/tt%{mod_branch} +%ghost %{_bindir}/tt %{_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: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org