You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.5 KiB
98 lines
2.5 KiB
# Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*-
|
|
%global gem_name metaclass
|
|
|
|
|
|
Summary: Adds a metaclass method to all Ruby objects
|
|
Name: 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: ruby(release)
|
|
Requires: ruby(rubygems)
|
|
Requires: ruby
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: rubygems-devel
|
|
BuildRequires: ruby
|
|
BuildRequires: rubygem(minitest)
|
|
BuildArch: noarch
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
%description
|
|
Adds a metaclass method to all Ruby objects
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}
|
|
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
%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
|
|
RUBYOPT="-Ilib -rmetaclass" testrb test/object_methods_test.rb
|
|
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
|
|
* Mon Feb 25 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.1-8
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Jan 18 2012 Vít Ondruch <vondruch@redhat.com> - 0.0.1-5
|
|
- Build for Ruby 1.9.3.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Tue Oct 04 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-3
|
|
- Move README.md into -doc subpackage and properly mark.
|
|
|
|
* Tue Oct 04 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-2
|
|
- Clarified license.
|
|
|
|
* Mon Oct 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-1
|
|
- Initial package
|