Hello community, here is the log from the commit of package rubygem-thor for openSUSE:Factory checked in at 2013-07-25 15:35:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-thor (Old) and /work/SRC/openSUSE:Factory/.rubygem-thor.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-thor" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-thor/rubygem-thor.changes 2013-03-08 11:20:50.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-thor.new/rubygem-thor.changes 2013-07-25 15:35:42.000000000 +0200 @@ -1,0 +2,10 @@ +Sat Jul 20 11:10:45 UTC 2013 - [email protected] + +- fix update-alternatives usage + +------------------------------------------------------------------- +Fri Apr 12 09:20:53 UTC 2013 - [email protected] + +- updated to version 0.18.1 + +------------------------------------------------------------------- Old: ---- thor-0.17.0.gem New: ---- thor-0.18.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-thor.spec ++++++ --- /var/tmp/diff_new_pack.BBOtmh/_old 2013-07-25 15:35:43.000000000 +0200 +++ /var/tmp/diff_new_pack.BBOtmh/_new 2013-07-25 15:35:43.000000000 +0200 @@ -17,19 +17,22 @@ Name: rubygem-thor -Version: 0.17.0 +Version: 0.18.1 Release: 0 %define mod_name thor %define mod_full_name %{mod_name}-%{version} +%define mod_branch -%{version} +%define mod_weight 1801 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 -BuildRequires: rubygem(rdoc) > 3.10 +BuildRequires: update-alternatives Url: http://whatisthor.com/ -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: A scripting framework that replaces rake, sake and rubigen -License: MIT and Ruby +License: MIT Group: Development/Languages/Ruby +PreReq: update-alternatives %description A scripting framework that replaces rake, sake and rubigen @@ -60,11 +63,31 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/thor{,%{mod_branch}} +touch %{buildroot}%{_sysconfdir}/alternatives/thor +ln -s %{_sysconfdir}/alternatives/thor %{buildroot}%{_bindir}/thor + +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGELOG.md %buildroot/%{_docdir}/%{name}/CHANGELOG.md +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE.md %buildroot/%{_docdir}/%{name}/LICENSE.md +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}/thor thor %{_bindir}/thor%{mod_branch} %{mod_weight} + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove thor %{_bindir}/thor%{mod_branch} +fi %files %defattr(-,root,root,-) -%{_bindir}/rake2thor +%{_docdir}/%{name} +%{_bindir}/thor%{mod_branch} %{_bindir}/thor +%ghost %{_sysconfdir}/alternatives/thor %{_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]
