Hello community, here is the log from the commit of package rubygem-tilt-1_1 for openSUSE:Factory checked in at 2013-04-20 18:02:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-tilt-1_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-tilt-1_1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-tilt-1_1", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-tilt-1_1/rubygem-tilt-1_1.changes 2012-09-01 22:00:14.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-tilt-1_1.new/rubygem-tilt-1_1.changes 2013-04-20 18:02:29.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Apr 19 13:18:32 UTC 2013 - [email protected] + +- use update-alternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-tilt-1_1.spec ++++++ --- /var/tmp/diff_new_pack.bEnHL9/_old 2013-04-20 18:02:32.000000000 +0200 +++ /var/tmp/diff_new_pack.bEnHL9/_new 2013-04-20 18:02:32.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-tilt-1_1 # -# 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 @@ -24,11 +24,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 +BuildRequires: rubygem(rdoc) > 3.10 Url: http://github.com/rtomayko/tilt/ -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: Generic interface to multiple Ruby template engines License: MIT Group: Development/Languages/Ruby +%define mod_branch -1.1 +%define mod_weight 1 +PreReq: update-alternatives %description Generic interface to multiple Ruby template engines @@ -59,10 +63,22 @@ %install %gem_install -f +mv %{buildroot}%{_bindir}/tilt{,%{mod_branch}} +ln -s tilt%{mod_branch} %{buildroot}%{_bindir}/tilt + +%post +/usr/sbin/update-alternatives --install \ + %{_bindir}/tilt tilt %{_bindir}/tilt%{mod_branch} %{mod_weight} + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove tilt %{_bindir}/tilt%{mod_branch} +fi %files %defattr(-,root,root,-) -%{_bindir}/tilt +%{_bindir}/tilt%{mod_branch} +%ghost %{_bindir}/tilt %{_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]
