|
|
|
@ -4,22 +4,18 @@
|
|
|
|
|
|
|
|
|
|
Summary: Adds a metaclass method to all Ruby objects
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.0.1
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 0.0.4
|
|
|
|
|
Release: 1%{?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: ruby(release)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
BuildRequires: rubygem(minitest) < 5
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Adds a metaclass method to all Ruby objects
|
|
|
|
@ -50,28 +46,33 @@ cp -a .%{gem_dir}/* \
|
|
|
|
|
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
|
|
|
|
|
RUBYOPT="-Ilib -rmetaclass" testrb test/object_methods_test.rb
|
|
|
|
|
sed -i '/require "bundler\/setup"/ d' test/test_helper.rb
|
|
|
|
|
|
|
|
|
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%doc %{gem_instdir}/COPYING.txt
|
|
|
|
|
%exclude %{gem_instdir}/.gitignore
|
|
|
|
|
%exclude %{gem_instdir}/metaclass.gemspec
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 16 2014 Vít Ondruch <vondruch@redhat.com> - 0.0.1-1
|
|
|
|
|
- Update to metaclass 0.0.4.
|
|
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|