From 2823a22243c2425943845bd9dcb981dd0ef65b24dbe7fa939989182dc8f83ba7 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 13 Oct 2014 07:15:08 +0000 Subject: [PATCH] Accepting request 255447 from OBS:Server:Unstable:Test adapt to new rubygem packaging style OBS-URL: https://build.opensuse.org/request/show/255447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-rubyzip?expand=0&rev=16 --- rubygem-rubyzip.changes | 5 +++++ rubygem-rubyzip.spec | 33 ++++++--------------------------- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/rubygem-rubyzip.changes b/rubygem-rubyzip.changes index abbc5fa..71e569e 100644 --- a/rubygem-rubyzip.changes +++ b/rubygem-rubyzip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 13 06:33:43 UTC 2014 - adrian@suse.de + +- adapt to new rubygem packaging style + ------------------------------------------------------------------- Sun May 18 09:04:45 UTC 2014 - coolo@suse.com diff --git a/rubygem-rubyzip.spec b/rubygem-rubyzip.spec index 344a504..474c329 100644 --- a/rubygem-rubyzip.spec +++ b/rubygem-rubyzip.spec @@ -23,9 +23,7 @@ Release: 0 %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 3 -Requires: ruby >= 1.9.2 -BuildRequires: ruby >= 1.9.2 +BuildRequires: ruby-macros >= 5 Url: http://github.com/rubyzip/rubyzip Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: rubyzip is a ruby module for reading and writing zip files @@ -35,36 +33,17 @@ Group: Development/Languages/Ruby %description rubyzip is a ruby module for reading and writing zip files -%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. %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}%{_docdir}/%{name} -ln -s %{gem_base}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md +%gem_install \ + --symlink-binaries \ + --doc-files="README.md" \ + -f -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{gem_base}/cache/%{mod_full_name}.gem -%{gem_base}/gems/%{mod_full_name}/ -%{gem_base}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{gem_base}/doc +%gem_packages %changelog