1
0

Accepting request 257997 from devel:languages:ruby:extensions

1

OBS-URL: https://build.opensuse.org/request/show/257997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rubygem-mixlib-log?expand=0&rev=5
This commit is contained in:
Stephan Kulow 2014-10-23 12:20:37 +00:00 committed by Git OBS Bridge
commit d40f0ff09d
2 changed files with 14 additions and 43 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 22 07:27:33 UTC 2014 - tboerger@suse.com
- Updated to new ruby macros
-------------------------------------------------------------------
Tue Jun 4 05:41:21 UTC 2013 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package rubygem-mixlib-log
#
# 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
@ -21,9 +21,10 @@ Version: 1.6.0
Release: 0
%define mod_name mixlib-log
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby-macros >= 1
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{ruby}
BuildRequires: ruby-macros >= 5
Url: http://www.opscode.com
Source: http://rubygems.org/gems/%{mod_full_name}.gem
Summary: A gem that provides a simple mixin for log functionality
@ -31,52 +32,17 @@ License: Apache-2.0
Group: Development/Languages/Ruby
%description
A gem that provides a simple mixin for log functionality
%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.
A gem that provides a simple mixin for log functionality.
%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 %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.rdoc %buildroot/%{_docdir}/%{name}/README.rdoc
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE
%gem_install \
--doc-files="README.rdoc LICENSE" \
-f
%files
%defattr(-,root,root,-)
%{_docdir}/%{name}
%{_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
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
%files doc
%defattr(-,root,root,-)
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
%files testsuite
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
%gem_packages
%changelog