From 7acf1ff0991689c474bc297e106d3f61cfd61f9cd600e1522ebaa0966f71b1b4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 6 Feb 2014 08:29:51 +0000 Subject: [PATCH] Accepting request 221077 from OBS:Server:Unstable - use new macros OBS-URL: https://build.opensuse.org/request/show/221077 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-eventmachine?expand=0&rev=23 --- rubygem-eventmachine.changes | 5 +++++ rubygem-eventmachine.spec | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/rubygem-eventmachine.changes b/rubygem-eventmachine.changes index b4c9768..1d83ade 100644 --- a/rubygem-eventmachine.changes +++ b/rubygem-eventmachine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 6 08:29:10 UTC 2014 - coolo@suse.com + +- use new macros + ------------------------------------------------------------------- Mon Mar 18 06:15:50 UTC 2013 - coolo@suse.com diff --git a/rubygem-eventmachine.spec b/rubygem-eventmachine.spec index ba7ac11..9551f68 100644 --- a/rubygem-eventmachine.spec +++ b/rubygem-eventmachine.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-eventmachine # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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 @@ -23,7 +23,7 @@ Release: 0 %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 1 +BuildRequires: ruby-macros >= 3 BuildRequires: rubygem(rdoc) > 3.10 # MANUAL BEGIN BuildRequires: gcc-c++ @@ -33,7 +33,7 @@ BuildRequires: ruby-devel Provides: rubygem(%{rb_ver}:eventmachine) = 1.0.0.beta5 # MANUAL END Url: http://rubyeventmachine.com -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: Ruby/EventMachine library License: Ruby Group: Development/Languages/Ruby @@ -69,15 +69,21 @@ Usually in RDoc and RI formats. %install %gem_install -f %gem_cleanup +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{gem_base}/gems/%{mod_full_name}/CHANGELOG.md %buildroot/%{_docdir}/%{name}/CHANGELOG.md +ln -s %{gem_base}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE +ln -s %{gem_base}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec +%{_docdir}/%{name} +%{gem_base}/cache/%{mod_full_name}.gem +%{gem_base}/gems/%{mod_full_name}/ +%{gem_extensions}/%{mod_full_name} +%{gem_base}/specifications/%{mod_full_name}.gemspec %files doc %defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ +%doc %{gem_base}/doc %changelog