Blame SPECS/rubygem-mocha.spec

c2b424
%global gem_name mocha
c2b424
c2b424
Summary:        Mocking and stubbing library
c2b424
Name:           rubygem-%{gem_name}
c2b424
Version:        1.9.0
c2b424
Release:        4%{?dist}
c2b424
License:        MIT or Ruby or BSD
c2b424
URL:            https://mocha.jamesmead.org
c2b424
Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
c2b424
BuildRequires:  ruby(release)
c2b424
BuildRequires:  rubygems-devel
c2b424
BuildRequires:  ruby
c2b424
BuildRequires:  rubygem(metaclass)
c2b424
BuildRequires:  rubygem(introspection)
c2b424
BuildRequires:  rubygem(minitest)
c2b424
BuildArch:      noarch
c2b424
c2b424
%description
c2b424
Mocking and stubbing library with JMock/SchMock syntax, which allows mocking
c2b424
and stubbing of methods on real (non-mock) classes.
c2b424
c2b424
%package doc
c2b424
Summary: Documentation for %{name}
c2b424
Requires: %{name} = %{version}-%{release}
c2b424
BuildArch: noarch
c2b424
c2b424
%description doc
c2b424
This package contains documentation for %{name}.
c2b424
c2b424
c2b424
%prep
c2b424
%setup -q -n %{gem_name}-%{version}
c2b424
c2b424
%build
c2b424
gem build ../%{gem_name}-%{version}.gemspec
c2b424
%gem_install
c2b424
c2b424
%install
c2b424
mkdir -p %{buildroot}%{gem_dir}
c2b424
cp -pa .%{gem_dir}/* \
c2b424
        %{buildroot}%{gem_dir}/
c2b424
c2b424
%check
c2b424
pushd .%{gem_instdir}
c2b424
# Each part of test suite must be run separately, otherwise the test suite fails.
c2b424
# https://github.com/freerange/mocha/issues/121
c2b424
for kind in unit acceptance integration; do
c2b424
  ruby -e "Dir.glob('./test/$kind/**/*_test.rb').each {|t| require t}"
c2b424
done
c2b424
popd
c2b424
c2b424
%files
c2b424
%exclude %{gem_instdir}/.*
c2b424
%exclude %{gem_instdir}/init.rb
c2b424
%doc %{gem_instdir}/COPYING.md
c2b424
%doc %{gem_instdir}/README.md
c2b424
%license %{gem_instdir}/MIT-LICENSE.md
c2b424
%doc %{gem_instdir}/RELEASE.md
c2b424
%dir %{gem_instdir}
c2b424
%{gem_instdir}/bin
c2b424
%{gem_libdir}
c2b424
%exclude %{gem_cache}
c2b424
%{gem_spec}
c2b424
c2b424
%files doc
c2b424
%{gem_instdir}/Gemfile*
c2b424
%doc %{gem_docdir}
c2b424
%doc %{gem_instdir}/CONTRIBUTING.md
c2b424
%{gem_instdir}/Rakefile
c2b424
%{gem_instdir}/mocha.gemspec
c2b424
%{gem_instdir}/gemfiles/
c2b424
%{gem_instdir}/test/
c2b424
%{gem_instdir}/docs/
c2b424
%{gem_instdir}/yard-templates/
c2b424
c2b424
c2b424
%changelog
c2b424
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c2b424
c2b424
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c2b424
c2b424
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c2b424
c2b424
* Wed Oct 09 2019 Pavel Valena <pvalena@redhat.com> - 1.9.0-1
c2b424
- Update to mocha 1.9.0.
c2b424
c2b424
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c2b424
c2b424
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c2b424
c2b424
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c2b424
c2b424
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c2b424
c2b424
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c2b424
c2b424
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c2b424
c2b424
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c2b424
c2b424
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c2b424
c2b424
* Mon Jul 07 2014 Vít Ondruch <vondruch@redhat.com> - 1.1.0-1
c2b424
- Update to Mocha 1.1.0.
c2b424
c2b424
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c2b424
c2b424
* Thu Aug 15 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.14.0-1
c2b424
- Update to 0.14.0
c2b424
- Run unit and acceptance tests in a single process
c2b424
- Patch test suite to work outside rake/bundler
c2b424
c2b424
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-4
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c2b424
c2b424
* Mon Feb 25 2013 Vít Ondruch <vondruch@redhat.com> - 0.13.1-3
c2b424
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
c2b424
c2b424
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c2b424
c2b424
* Wed Jan 02 2013 Vít Ondruch <vondruch@redhat.com> - 0.13.1-1
c2b424
- Updated to the Mocha 0.13.1.
c2b424
c2b424
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.12.1-1
c2b424
- Update to Mocha 0.12.1, as this version is needed by ActionPack 3.2.6 tests.
c2b424
c2b424
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c2b424
c2b424
* Thu Apr 19 2012 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1
c2b424
- Updated to the Mocha 0.11.0.
c2b424
c2b424
* Thu Jan 19 2012 Vít Ondruch <vondruch@redhat.com> - 0.10.0-3
c2b424
- Rebuild for Ruby 1.9.3.
c2b424
c2b424
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c2b424
c2b424
* Mon Oct 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.10.0-1
c2b424
- Updated to the Mocha 0.10.0.
c2b424
c2b424
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
c2b424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c2b424
c2b424
* Sun Aug 29 2010 Michael Stahnke <stahnma@fedoraproject.org> - 0.9.8-1
c2b424
- Fixed odd naming in BR
c2b424
- Updating to 0.9.8
c2b424
- Breaking into -doc package as well
c2b424
- Adding tests
c2b424
c2b424
* Thu Jul 23 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.7-1
c2b424
- New upstream version
c2b424
c2b424
* Mon Apr 27 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.5-1
c2b424
- New upstream version
c2b424
c2b424
* Sun Feb 01 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.1-4
c2b424
- Mark files as %%doc
c2b424
c2b424
* Thu Oct 30 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.1-3
c2b424
- Use gem instead of tgz
c2b424
c2b424
* Sat Oct 25 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.1-2
c2b424
- Fix license
c2b424
c2b424
* Sat Oct 25 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.1-1
c2b424
- New upstream version
c2b424
- Fix license not being marked as %%doc
c2b424
c2b424
* Mon Sep 08 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.0-2
c2b424
- Add ruby(abi) = 1.8 requirement
c2b424
c2b424
* Sat Aug 23 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 0.9.0-1
c2b424
- New upstream version
c2b424
- Initial package for review
c2b424
c2b424
* Sun Jul 13 2008 root <root@oss1-repo.usersys.redhat.com> - 0.5.6-1
c2b424
- Initial package