Hello community, here is the log from the commit of package ruby for openSUSE:Factory checked in at 2012-08-04 09:33:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby (Old) and /work/SRC/openSUSE:Factory/.ruby.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ruby", Maintainer is "MRueckert@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/ruby/ruby.changes 2012-07-30 21:52:02.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ruby.new/ruby.changes 2012-08-04 09:33:29.000000000 +0200 @@ -1,0 +2,15 @@ +Wed Aug 1 13:29:19 UTC 2012 - coolo@suse.com + +- add update-alternatives for ruby provided binaries + +------------------------------------------------------------------- +Wed Aug 1 12:07:35 UTC 2012 - coolo@suse.com + +- expand ruby19 gemspecs as provides automatically + +------------------------------------------------------------------- +Thu Jul 26 09:53:19 UTC 2012 - coolo@suse.com + +- remove rubygem-requires - rpm does it correctly + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby.spec ++++++ --- /var/tmp/diff_new_pack.gjkDQu/_old 2012-08-04 09:33:29.000000000 +0200 +++ /var/tmp/diff_new_pack.gjkDQu/_new 2012-08-04 09:33:29.000000000 +0200 @@ -27,10 +27,16 @@ Summary: An Interpreted Object-Oriented Scripting Language License: MIT Group: Development/Languages/Ruby -Requires: ruby19 +BuildRequires: ruby-common +BuildRequires: ruby19-devel +BuildRequires: update-alternatives +%requires_eq ruby19 Provides: rubygems = 1.8.15 Obsoletes: rubygems < 1.8.15 Requires: ruby-common >= 1.0 +Requires: update-alternatives + +%{expand:%(rpm -ql ruby19 | fgrep .gemspec | /usr/bin/ruby1.9 /usr/lib/rpm/rubygemsdeps.rb --provides | sed -e 's,^,Provides:,')} %description Ruby is an interpreted scripting language for quick and easy @@ -84,13 +90,32 @@ ln -s %_libdir/libruby1.9.so $RPM_BUILD_ROOT%_libdir/libruby.so install -D -m 0644 %{S:0} $RPM_BUILD_ROOT/etc/rpm/macros.ruby install -D -m 0644 %{S:2} $RPM_BUILD_ROOT/etc/gemrc -export NO_BRP_STALE_LINK_ERROR=yes + +%post +for bin in erb gem irb rake rdoc ri ruby testrb; do + /usr/sbin/update-alternatives --install \ + %{_bindir}/$bin $bin %{_bindir}/$bin"1.9" 19 +done + +%preun +if [ "$1" = 0 ] ; then + for bin in erb gem irb rake rdoc ri ruby testrb; do + /usr/sbin/update-alternatives --remove $bin %{_bindir}/$bin"1.9" + done +fi %files %defattr(-,root,root) %config /etc/gemrc %config /etc/rpm/macros.ruby -%{_bindir}/* +%ghost %{_bindir}/erb +%ghost %{_bindir}/gem +%ghost %{_bindir}/irb +%ghost %{_bindir}/rake +%ghost %{_bindir}/rdoc +%ghost %{_bindir}/ri +%ghost %{_bindir}/ruby +%ghost %{_bindir}/testrb %files devel %defattr(-,root,root) ++++++ ruby.macros ++++++ --- /var/tmp/diff_new_pack.gjkDQu/_old 2012-08-04 09:33:29.000000000 +0200 +++ /var/tmp/diff_new_pack.gjkDQu/_new 2012-08-04 09:33:29.000000000 +0200 @@ -21,8 +21,6 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -%rubygems_requires %{rubygems19_requires} - %rb_binary %{rb19_binary} %gem_binary /usr/bin/gem1.9 %rb_arch %{rb19_arch} -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org