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
This commit is contained in:
Stephan Kulow 2014-02-06 08:29:51 +00:00 committed by Git OBS Bridge
parent c4a76e7c7c
commit 7acf1ff099
2 changed files with 18 additions and 7 deletions

View File

@ -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 Mon Mar 18 06:15:50 UTC 2013 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package rubygem-eventmachine # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -23,7 +23,7 @@ Release: 0
%define mod_full_name %{mod_name}-%{version} %define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby-macros >= 1 BuildRequires: ruby-macros >= 3
BuildRequires: rubygem(rdoc) > 3.10 BuildRequires: rubygem(rdoc) > 3.10
# MANUAL BEGIN # MANUAL BEGIN
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -33,7 +33,7 @@ BuildRequires: ruby-devel
Provides: rubygem(%{rb_ver}:eventmachine) = 1.0.0.beta5 Provides: rubygem(%{rb_ver}:eventmachine) = 1.0.0.beta5
# MANUAL END # MANUAL END
Url: http://rubyeventmachine.com Url: http://rubyeventmachine.com
Source: %{mod_full_name}.gem Source: http://rubygems.org/gems/%{mod_full_name}.gem
Summary: Ruby/EventMachine library Summary: Ruby/EventMachine library
License: Ruby License: Ruby
Group: Development/Languages/Ruby Group: Development/Languages/Ruby
@ -69,15 +69,21 @@ Usually in RDoc and RI formats.
%install %install
%gem_install -f %gem_install -f
%gem_cleanup %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 %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_docdir}/%{name}
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %{gem_base}/cache/%{mod_full_name}.gem
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec %{gem_base}/gems/%{mod_full_name}/
%{gem_extensions}/%{mod_full_name}
%{gem_base}/specifications/%{mod_full_name}.gemspec
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ %doc %{gem_base}/doc
%changelog %changelog