%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} # Generated from introspection-0.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name introspection %global rubyabi 1.9.1 Summary: Dynamic inspection of the hierarchy of method definitions on a Ruby object Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.0.2 Release: 7%{?dist} Group: Development/Languages # https://github.com/floehopper/introspection/issues/1 License: MIT URL: http://jamesmead.org Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Remove instantiator dependency. # https://github.com/floehopper/introspection/issues/2 Patch0: %{pkg_name}-%{version}-update-dep.patch Requires: %{?scl_prefix}ruby(abi) = %{rubyabi} Requires: %{?scl_prefix}ruby(rubygems) >= 1.3.6 Requires: %{?scl_prefix}ruby Requires: %{?scl_prefix}rubygem(metaclass) => 0.0.1 Requires: %{?scl_prefix}rubygem(metaclass) < 0.1 # Seems to be useless ATM. # https://github.com/floehopper/introspection/issues/2 # Requires: %{?scl_prefix}rubygem(instantiator) => 0.0.3 # Requires: %{?scl_prefix}rubygem(instantiator) < 0.1 BuildRequires: %{?scl_prefix}ruby(abi) = %{rubyabi} BuildRequires: %{?scl_prefix}rubygems-devel BuildRequires: %{?scl_prefix}ruby BuildRequires: %{?scl_prefix}rubygem(metaclass) => 0.0.1 BuildRequires: %{?scl_prefix}rubygem(metaclass) < 0.1 # Required to satisfy the 'blankslate' require. May be replaced # by rubygem(blankslate) when available in Fedora. BuildRequires: %{?scl_prefix}rubygem(builder) BuildRequires: %{?scl_prefix}rubygem(minitest) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %description Dynamic inspection of the hierarchy of method definitions on a Ruby object %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:"} pushd .%{gem_dir} %patch0 -p0 popd %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Disable Bundler sed -i '2,2d' test/test_helper.rb %{?scl:scl enable %scl "} testrb -Ilib test/*_test.rb %{?scl:"} popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/introspection.gemspec %{gem_libdir} %{gem_instdir}/test %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_instdir}/README.md %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %{gem_instdir}/samples %doc %{gem_docdir} %changelog * Wed Jul 25 2012 Bohuslav Kabrda - 0.0.2-7 - Specfile cleanup. * Mon Apr 02 2012 Bohuslav Kabrda - 0.0.2-6 - Rebuilt for scl. * Thu Jan 19 2012 Vít Ondruch - 0.0.2-5 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Oct 04 2011 Vít Ondruch - 0.0.2-3 - Fix BuildRequires and test suite. - Move README.md into -doc subpackage and mark it properly. * Tue Oct 04 2011 Vít Ondruch - 0.0.2-2 - Clarified license. * Mon Oct 03 2011 Vít Ondruch - 0.0.2-1 - Initial package