1
0

Accepting request 255219 from OBS:Server:Unstable:Test

adapt to new rubygem packaging style

OBS-URL: https://build.opensuse.org/request/show/255219
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-font-awesome-rails?expand=0&rev=4
This commit is contained in:
Stephan Kulow 2014-10-12 15:48:03 +00:00 committed by Git OBS Bridge
parent 3c45e6f4a2
commit b612d7f878
2 changed files with 11 additions and 40 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 12 11:07:34 UTC 2014 - adrian@suse.de
- adapt to new rubygem packaging style
-------------------------------------------------------------------
Sun May 18 09:04:38 UTC 2014 - coolo@suse.com

View File

@ -23,7 +23,7 @@ Release: 0
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby-macros >= 3
BuildRequires: ruby-macros >= 5
Url: https://github.com/bokmann/font-awesome-rails
Source: http://rubygems.org/gems/%{mod_full_name}.gem
Summary: an asset gemification of the font-awesome icon font library
@ -34,50 +34,16 @@ Group: Development/Languages/Ruby
I like font-awesome. I like the asset pipeline. I like semantic versioning. If
you do too, you're welcome.
%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}%{_docdir}/%{name}
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
%gem_install \
--symlink-binaries \
--doc-files="LICENSE README.md" \
-f
%files
%defattr(-,root,root,-)
%{_docdir}/%{name}
%{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_packages
%changelog