2 # http://rubygems.org/gems/Platform and http://rubygems.org/gems/platform are different gems
3 # if you're seeking for "platform", then package it as ruby-rails-platform!
4 %define gem_name Platform
5 Summary: Naive platform detection for Ruby
10 Group: Development/Languages
11 Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
12 # Source0-md5: 9947ef2e902de65ffff3cd5912269678
13 URL: http://rubyforge.org/projects/platform/
14 BuildRequires: rpm-rubyprov
15 BuildRequires: rpmbuild(macros) >= 1.656
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Platform is a library which figures out what platform Ruby is running
21 on. It's doing the obvious thing of parsing RUBY_PLATFORM but doing it
22 systematically and it is being tested to make sure it handles 99% of
26 %setup -q -n %{gem_name}-%{version}
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
31 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
34 rm -rf $RPM_BUILD_ROOT
37 %defattr(644,root,root,755)
39 %{ruby_vendorlibdir}/platform.rb