Blame SPECS/rubygem-metaclass.spec

e1c42f
# Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*-
e1c42f
%global gem_name metaclass
e1c42f
e1c42f
e1c42f
Summary: Adds a metaclass method to all Ruby objects
e1c42f
Name: rubygem-%{gem_name}
e1c42f
Version: 0.0.4
e1c42f
Release: 12%{?dist}
e1c42f
# https://github.com/floehopper/metaclass/issues/1
e1c42f
License: MIT
e1c42f
URL: http://github.com/floehopper/metaclass
e1c42f
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
e1c42f
# Make the test suite support MiniTest 5.x.
e1c42f
# https://github.com/floehopper/metaclass/commit/cff40cbace639d3b66d7913d99e74e56f91905b8
e1c42f
Patch0: rubygem-metaclass-0.0.4-Move-to-Minitest-5.patch
e1c42f
BuildRequires: ruby(release)
e1c42f
BuildRequires: rubygems-devel
e1c42f
BuildRequires: ruby
e1c42f
BuildRequires: rubygem(minitest)
e1c42f
BuildArch: noarch
e1c42f
e1c42f
%description
e1c42f
Adds a metaclass method to all Ruby objects
e1c42f
e1c42f
e1c42f
%package doc
e1c42f
Summary: Documentation for %{name}
e1c42f
Requires: %{name} = %{version}-%{release}
e1c42f
BuildArch: noarch
e1c42f
e1c42f
%description doc
e1c42f
Documentation for %{name}
e1c42f
e1c42f
e1c42f
%prep
e1c42f
%setup -q -c -T
e1c42f
%gem_install -n %{SOURCE0}
e1c42f
e1c42f
pushd .%{gem_instdir}
e1c42f
%patch0 -p1
e1c42f
popd
e1c42f
e1c42f
%build
e1c42f
e1c42f
%install
e1c42f
mkdir -p %{buildroot}%{gem_dir}
e1c42f
cp -a .%{gem_dir}/* \
e1c42f
        %{buildroot}%{gem_dir}/
e1c42f
e1c42f
%check
e1c42f
pushd .%{gem_instdir}
e1c42f
# test_helper.rb currently references bundler, so it is easier to avoid
e1c42f
# its usage at all.
e1c42f
sed -i '/require "bundler\/setup"/ d' test/test_helper.rb
e1c42f
e1c42f
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
e1c42f
popd
e1c42f
e1c42f
e1c42f
%files
e1c42f
%dir %{gem_instdir}
e1c42f
%license %{gem_instdir}/COPYING.txt
e1c42f
%exclude %{gem_instdir}/.gitignore
e1c42f
%exclude %{gem_instdir}/metaclass.gemspec
e1c42f
%{gem_libdir}
e1c42f
%exclude %{gem_cache}
e1c42f
%{gem_spec}
e1c42f
e1c42f
%files doc
e1c42f
%doc %{gem_docdir}
e1c42f
%doc %{gem_instdir}/README.md
e1c42f
%{gem_instdir}/Gemfile
e1c42f
%{gem_instdir}/Rakefile
e1c42f
%{gem_instdir}/test
e1c42f
e1c42f
e1c42f
%changelog
e1c42f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-12
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e1c42f
e1c42f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-11
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e1c42f
e1c42f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-10
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e1c42f
e1c42f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-9
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e1c42f
e1c42f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-8
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e1c42f
e1c42f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-7
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e1c42f
e1c42f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-6
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e1c42f
e1c42f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-5
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e1c42f
e1c42f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-4
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e1c42f
e1c42f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e1c42f
e1c42f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-2
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e1c42f
e1c42f
* Mon Jun 16 2014 Vít Ondruch <vondruch@redhat.com> - 0.0.1-1
e1c42f
- Update to metaclass 0.0.4.
e1c42f
e1c42f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-10
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e1c42f
e1c42f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-9
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e1c42f
e1c42f
* Mon Feb 25 2013 Vít Ondruch <vondruch@redhat.com> - 0.0.1-8
e1c42f
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
e1c42f
e1c42f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-7
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e1c42f
e1c42f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-6
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e1c42f
e1c42f
* Wed Jan 18 2012 Vít Ondruch <vondruch@redhat.com> - 0.0.1-5
e1c42f
- Build for Ruby 1.9.3.
e1c42f
e1c42f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4
e1c42f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e1c42f
e1c42f
* Tue Oct 04 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-3
e1c42f
- Move README.md into -doc subpackage and properly mark.
e1c42f
e1c42f
* Tue Oct 04 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-2
e1c42f
- Clarified license.
e1c42f
e1c42f
* Mon Oct 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-1
e1c42f
- Initial package