%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} # Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name metaclass %global rubyabi 1.9.1 Summary: Adds a metaclass method to all Ruby objects Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.0.1 Release: 8%{?dist} Group: Development/Languages # https://github.com/floehopper/metaclass/issues/1 License: MIT URL: http://github.com/floehopper/metaclass Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: %{?scl_prefix}ruby(abi) = %{rubyabi} Requires: %{?scl_prefix}ruby(rubygems) Requires: %{?scl_prefix}ruby BuildRequires: %{?scl_prefix}ruby(abi) = %{rubyabi} BuildRequires: %{?scl_prefix}rubygems-devel BuildRequires: %{?scl_prefix}ruby BuildRequires: %{?scl_prefix}rubygem(minitest) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description Adds a metaclass method to all Ruby objects %package doc Summary: Documentation for %{pkg_name} Group: Documentation Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{pkg_name} %prep %setup -q -c -T mkdir -p .%{gem_dir} %{?scl:scl enable %scl "} gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} %{?scl:"} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # test_helper.rb currently references bundler, so it is easier to avoid # its usage at all. sed -i '1,1d' test/object_methods_test.rb %{?scl:scl enable %scl - << \EOF} RUBYOPT="-Ilib -rmetaclass" testrb test/object_methods_test.rb %{?scl:EOF} popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/metaclass.gemspec %{gem_libdir} %{gem_instdir}/test %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_instdir}/README.md %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %doc %{gem_docdir} %changelog * Wed Jul 25 2012 Bohuslav Kabrda - 0.0.1-8 - Specfile cleanup. * Tue Jun 12 2012 Bohuslav Kabrda - 0.0.1-7 - Test rebuild for SCL * Mon Apr 02 2012 Bohuslav Kabrda - 0.0.1-6 - Rebuilt for scl. * Wed Jan 18 2012 Vít Ondruch - 0.0.1-5 - Build for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Oct 04 2011 Vít Ondruch - 0.0.1-3 - Move README.md into -doc subpackage and properly mark. * Tue Oct 04 2011 Vít Ondruch - 0.0.1-2 - Clarified license. * Mon Oct 03 2011 Vít Ondruch - 0.0.1-1 - Initial package