Hello community,

here is the log from the commit of package rubygem-rake for openSUSE:Factory 
checked in at 2014-10-20 07:26:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rake (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rake.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rake"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rake/rubygem-rake.changes        
2014-05-21 16:30:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-rake.new/rubygem-rake.changes   
2014-10-20 07:26:44.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Oct 12 12:13:34 UTC 2014 - [email protected]
+
+- adapt to new rubygem packaging style
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ rubygem-rake.spec ++++++
--- /var/tmp/diff_new_pack.i5yyA7/_old  2014-10-20 07:26:45.000000000 +0200
+++ /var/tmp/diff_new_pack.i5yyA7/_new  2014-10-20 07:26:45.000000000 +0200
@@ -25,9 +25,7 @@
 %define mod_weight 100302
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 3
-Requires:       ruby >= 1.8.7
-BuildRequires:  ruby >= 1.8.7
+BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
 BuildRequires:  rubygem(rdoc) > 3.10
 Url:            https://github.com/jimweirich/rake
@@ -55,68 +53,16 @@
 available in RDoc and RubyGems respectively.)
 * Supports parallel execution of tasks.
 
-%package doc
-Summary:        RDoc documentation for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description doc
-Documentation generated at gem installation time.
-Usually in RDoc and RI formats.
-
-%package testsuite
-Summary:        Test suite for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description testsuite
-Test::Unit or RSpec files, useful for developers.
-
 %prep
-#gem_unpack
-#if you need patches, apply them here and replace the # with a % sign in the 
surrounding lines
-#gem_build
 
 %build
 
 %install
-%gem_install -f
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/rake{,%{mod_branch}}
-touch %{buildroot}%{_sysconfdir}/alternatives/rake
-ln -s %{_sysconfdir}/alternatives/rake %{buildroot}%{_bindir}/rake
-
-mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{gem_base}/gems/%{mod_full_name}/History.rdoc 
%buildroot/%{_docdir}/%{name}/History.rdoc
-ln -s %{gem_base}/gems/%{mod_full_name}/MIT-LICENSE 
%buildroot/%{_docdir}/%{name}/MIT-LICENSE
-ln -s %{gem_base}/gems/%{mod_full_name}/README.rdoc 
%buildroot/%{_docdir}/%{name}/README.rdoc
-
-%post
-/usr/sbin/update-alternatives --install \
-    %{_bindir}/rake rake %{_bindir}/rake%{mod_branch} %{mod_weight}
-
-%preun
-if [ "$1" = 0 ] ; then
-    /usr/sbin/update-alternatives --remove rake %{_bindir}/rake%{mod_branch}
-fi
-
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}
-%{_bindir}/rake%{mod_branch}
-%{_bindir}/rake
-%ghost %{_sysconfdir}/alternatives/rake
-%{gem_base}/cache/%{mod_full_name}.gem
-%{gem_base}/gems/%{mod_full_name}/
-%exclude %{gem_base}/gems/%{mod_full_name}/test
-%{gem_base}/specifications/%{mod_full_name}.gemspec
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc
-
-%files testsuite
-%defattr(-,root,root,-)
-%{gem_base}/gems/%{mod_full_name}/test
+%gem_install \
+  --symlink-binaries \
+  --doc-files="History.rdoc MIT-LICENSE README.rdoc" \
+  -f
+
+%gem_packages
 
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to