rubygem-rspec-core/rubygem-rspec-core.spec

422 lines
13 KiB
RPMSpec
Raw Normal View History

2019-07-10 06:23:04 +00:00
%global majorver 3.8.2
2011-05-15 16:40:27 +00:00
#%%global preminorver .rc6
2011-05-03 05:02:56 +00:00
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
2019-06-21 07:05:47 +00:00
%global fedorarel 1
2011-05-03 05:02:56 +00:00
2013-01-02 05:56:27 +00:00
%global gem_name rspec-core
2011-02-25 18:02:39 +00:00
# %%check section needs rspec-core, however rspec-core depends on rspec-mocks
# runtime part of rspec-mocks does not depend on rspec-core
2016-03-14 08:55:05 +00:00
# Disable test for now due to cucumber v.s. gherkin dependency issue
# pulled by aruba
2018-12-13 05:46:51 +00:00
%global need_bootstrap_set 0
2011-02-25 18:02:39 +00:00
2018-02-13 03:49:01 +00:00
%undefine __brp_mangle_shebangs
2011-02-25 18:02:39 +00:00
Summary: Rspec-2 runner and formatters
2013-01-02 05:56:27 +00:00
Name: rubygem-%{gem_name}
2011-05-03 05:02:56 +00:00
Version: %{majorver}
2019-06-21 07:05:47 +00:00
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
2011-02-25 18:02:39 +00:00
License: MIT
URL: http://github.com/rspec/rspec-mocks
2013-01-02 05:56:27 +00:00
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
2018-11-18 21:41:17 +00:00
# %%{SOURCE2} %%{name} %%{version}
2014-11-10 07:37:38 +00:00
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
Source2: rspec-related-create-full-tarball.sh
2011-02-25 18:02:39 +00:00
2015-12-08 07:21:42 +00:00
#BuildRequires: ruby(release)
2012-01-22 00:10:42 +00:00
BuildRequires: rubygems-devel
2014-11-10 07:37:38 +00:00
%if 0%{?need_bootstrap_set} < 1
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(nokogiri)
2011-02-25 18:53:07 +00:00
BuildRequires: rubygem(rake)
2014-11-10 07:37:38 +00:00
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(aruba)
2014-11-10 07:37:38 +00:00
# Newly
BuildRequires: rubygem(flexmock)
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(rr)
2015-08-02 12:52:59 +00:00
BuildRequires: rubygem(coderay)
2015-08-12 06:59:30 +00:00
BuildRequires: rubygem(thread_order)
2015-08-02 12:18:01 +00:00
BuildRequires: git
2016-02-27 16:10:00 +00:00
2018-02-23 16:54:49 +00:00
%if 0%{?fedora} || 0%{?rhel} > 7
2016-02-27 16:10:00 +00:00
BuildRequires: glibc-langpack-en
%endif
2011-02-25 18:02:39 +00:00
%endif
# Make the following installed by default
# lib/rspec/core/rake_task
Requires: rubygem(rake)
# Optional
#Requires: rubygem(ZenTest)
2014-11-10 07:37:38 +00:00
#Requires: rubygem(flexmock)
2011-02-25 18:02:39 +00:00
#Requires: rubygem(mocha)
#Requires: rubygem(rr)
BuildArch: noarch
%description
Behaviour Driven Development for Ruby.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
%description doc
This package contains documentation for %{name}.
%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
2014-11-10 07:37:38 +00:00
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2011-02-25 18:02:39 +00:00
%build
2014-11-10 07:37:38 +00:00
gem build %{gem_name}.gemspec
%gem_install
2013-01-02 05:56:27 +00:00
2011-02-25 18:02:39 +00:00
%install
mkdir -p %{buildroot}%{_prefix}
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
# cleanups
2014-11-10 07:37:38 +00:00
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
2011-02-25 18:02:39 +00:00
2014-11-10 07:37:38 +00:00
%if 0%{?need_bootstrap_set} < 1
2011-02-25 18:02:39 +00:00
%check
2018-11-18 21:41:17 +00:00
LANG=C.UTF-8
2013-01-02 05:56:27 +00:00
# Test failure needs investigation...
2014-11-10 07:37:38 +00:00
# perhaps due to some incompatibility between libxml2 2.9.x
# and rubygem-nokogiri
FAILFILE=()
FAILTEST=()
FAILFILE+=("spec/rspec/core/formatters/progress_formatter_spec.rb")
FAILTEST+=("produces the expected full output")
FAILFILE+=("spec/rspec/core/formatters/documentation_formatter_spec.rb")
FAILTEST+=("produces the expected full output")
2018-12-13 05:07:40 +00:00
#FAILFILE+=("spec/rspec/core/formatters/syntax_highlighter_spec.rb")
#FAILTEST+=("when CodeRay is available")
2016-09-04 07:13:32 +00:00
# New from 3.5.3
FAILFILE+=("spec/integration/suite_hooks_errors_spec.rb")
FAILTEST+=("nicely formats errors")
2017-05-06 13:15:17 +00:00
# New from 3.6.0
FAILFILE+=("spec/integration/spec_file_load_errors_spec.rb")
FAILTEST+=("nicely handles load-time errors")
2014-11-10 12:14:05 +00:00
# NET??
FAILFILE+=("spec/rspec/core/runner_spec.rb")
FAILTEST+=("if drb server is started with 127.0.0.1")
FAILFILE+=("spec/rspec/core/runner_spec.rb")
FAILTEST+=("if drb server is started with localhost")
2019-06-21 07:05:47 +00:00
# 3.8.0, ignore for now
FAILFILE+=("spec/rspec/core/bisect/server_spec.rb")
FAILTEST+=("receives suite results")
FAILFILE+=("spec/rspec/core/bisect/server_spec.rb")
FAILTEST+=("aborts as soon as the last expected failure finishes")
FAILFILE+=("spec/rspec/core/bisect/server_spec.rb")
FAILTEST+=("aborts after an expected failure")
# 3.8.0, ignore for now
FAILFILE+=("spec/integration/bisect_runners_spec.rb")
FAILTEST+=("honors.*run_all_when_everything_filtered")
FAILFILE+=("spec/integration/bisect_runners_spec.rb")
FAILTEST+=("raises BisectFailedError")
FAILFILE+=("spec/integration/bisect_runners_spec.rb")
FAILTEST+=("runs the specs in an isolated environment")
2014-11-10 07:37:38 +00:00
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
sed -i \
2015-08-02 12:52:59 +00:00
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
2014-11-10 07:37:38 +00:00
${FAILFILE[$i]}
}
2019-06-21 07:05:47 +00:00
# Fix compatibility with Aruba 0.14.0. Not sure if this is upstreamble, since
# it seems Aruba 0.7.0+ might have some Ruby 1.8.7 compatibility issues ...
2018-02-23 16:54:49 +00:00
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
2017-05-06 13:15:17 +00:00
grep -rl 'in_current_dir' | \
xargs sed -i 's/in_current_dir/cd(".")/'
grep -rl 'clean_current_dir' spec/ | \
xargs sed -i 's/clean_current_dir/setup_aruba/'
sed -i 's/remove_file/remove/' \
spec/integration/order_spec.rb \
%{nil}
sed -i '\@expect.*dirs\.pop@d' \
spec/integration/spec_file_load_errors_spec.rb \
spec/integration/suite_hooks_errors_spec.rb \
%{nil}
%endif
# Well, when HOME variable is not set and tty is not a real one
# but pseudo-tty, with current ruby implementation $ env -i ruby -e 'p Dir.home'
# causes:
# `home': couldn't find login name -- expanding `~' (ArgumentError)
# - and this causes some test errors on rspec-core.
# fixing this error without modifying rspec-core "code" is very hard,
# once modifying source itself.
sed -i.warn lib/rspec/core/configuration_options.rb \
-e '\@because the HOME environment variable is not set@s|RSpec\.warning|#RSpec.warning|'
2018-02-13 03:49:01 +00:00
ruby -rrubygems -Ilib/ -S exe/rspec || \
ruby -rrubygems -Ilib/ -S exe/rspec --tag ~broken
2011-02-25 18:02:39 +00:00
%endif
mv lib/rspec/core/configuration_options.rb{.warn,}
2011-02-25 18:02:39 +00:00
%files
2013-01-02 05:56:27 +00:00
%dir %{gem_instdir}
2011-02-25 18:02:39 +00:00
2015-12-08 07:21:42 +00:00
%license %{gem_instdir}/LICENSE.md
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md
2011-02-25 18:02:39 +00:00
%{_bindir}/rspec
2013-01-02 05:56:27 +00:00
%{gem_instdir}/exe/
%{gem_instdir}/lib/
2011-02-25 18:02:39 +00:00
2013-01-02 05:56:27 +00:00
%exclude %{gem_cache}
%{gem_spec}
2011-02-25 18:02:39 +00:00
%files doc
2013-01-02 05:56:27 +00:00
%{gem_docdir}
2011-02-25 18:02:39 +00:00
%changelog
2019-07-10 06:23:04 +00:00
* Wed Jul 10 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.2-1
- 3.8.2
2019-06-21 07:05:47 +00:00
* Fri Jun 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.1-1
- 3.8.1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 1 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-2
- A Happy New Year
- Suppress some test errors related to missing HOME env and real tty
2018-12-13 05:46:51 +00:00
* Thu Dec 13 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-1
- Enable tests again
2018-12-13 05:07:40 +00:00
* Wed Dec 12 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.8.0-0.1
- 3.8.0
- Once disable test for bootstrap
2018-11-18 21:41:17 +00:00
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.7.1-3.2
- Use C.UTF-8 locale
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-02-23 16:54:49 +00:00
* Fri Feb 23 2018 Troy Dawson <tdawson@redhat.com> - 3.7.1-3
- Update conditionals
2018-02-13 03:49:01 +00:00
* Tue Feb 13 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.1-2
- ruby 2.5 drops -rubygems usage
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-03 08:56:40 +00:00
* Wed Jan 3 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.1-1
- 3.7.1
2017-11-13 06:58:53 +00:00
* Mon Nov 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.0-1
- Enable tests again
2017-11-13 06:48:45 +00:00
* Mon Nov 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.7.0-0.1
- 3.7.0
- Once disable tests
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-1.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-05-06 14:33:57 +00:00
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-1
- Enable tests again
2017-05-06 13:15:17 +00:00
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-0.1
- 3.6.0
- Once disable tests
* Tue Feb 21 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-3
- Always use full tar.gz for installed files and
keep using gem file for gem spec (ref: bug 1425220)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.4-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jan 31 2017 Vít Ondruch <vondruch@redhat.com> - 3.5.4-2
- Fix Ruby 2.4 and Aruba 0.14.0 compatibility.
2016-10-10 04:54:20 +00:00
* Mon Oct 10 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.4-1
- 3.5.4
2016-09-04 07:13:32 +00:00
* Sun Sep 4 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.3-1
- 3.5.3
2016-08-01 09:01:01 +00:00
* Mon Aug 1 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.2-1
- 3.5.2
2016-07-23 16:14:28 +00:00
* Sun Jul 24 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.1-1
- Enable tests again
2016-07-23 15:47:10 +00:00
* Sat Jul 23 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.1-0.1
- 3.5.1
- Once disable tests
2016-03-14 08:55:05 +00:00
* Mon Mar 14 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.4-1
- 3.4.4
2016-02-27 16:10:00 +00:00
* Sun Feb 28 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.3-1
- 3.4.3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-28 04:39:17 +00:00
* Thu Jan 28 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.2-1
- 3.4.2
2015-12-08 08:24:11 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-2
- Enable tests again
2015-12-08 07:21:42 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-1
- 3.4.1
- Once disable tests
2015-08-12 06:59:30 +00:00
* Wed Aug 12 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-3
- Enable thread_order dependent tests
2015-08-02 11:43:38 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-2
- Enable tests again
2015-08-02 07:20:02 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-1
- 3.3.2
- Once disable tests
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-04-08 07:02:03 +00:00
* Wed Apr 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.3-1
- 3.2.3
2015-03-12 08:19:56 +00:00
* Thu Mar 12 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.2-1
- 3.2.2
2015-02-25 06:37:03 +00:00
* Wed Feb 25 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-1
- 3.2.1
2015-02-09 02:25:40 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.0-2
- Enable tests again
2015-02-09 00:44:13 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.0-1
- 3.2.0
- Once disable tests
2014-11-10 08:43:44 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.7-2
- Enable tests
2014-11-10 07:37:38 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.7-1
- 3.1.7
- Once disable tests
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
- 3.0.4
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
- 3.0.3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.8-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-06 04:07:50 +00:00
* Thu Mar 6 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.8-1
- 2.14.8
2013-11-11 03:49:22 +00:00
* Mon Nov 11 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.7-1
- 2.14.7
2013-10-24 08:37:41 +00:00
* Thu Oct 24 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.6-1
- 2.14.6
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-2
2013-08-15 16:04:04 +00:00
- Enable test suite again
2013-10-24 08:37:41 +00:00
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-1
2013-08-15 15:44:37 +00:00
- 2.14.5
2013-08-06 05:05:41 +00:00
* Tue Aug 6 2013 Mamoru TASAKA <mtasaka@fedoraproject.org>
- Again enable test suite
* Tue Aug 6 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.1-3
- Bootstrap for rubygem-gherkin <- rubygem-cucumber
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.1-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-03-28 08:18:33 +00:00
* Thu Mar 28 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.1-2
- Enable test suite again
2013-03-28 07:31:29 +00:00
* Thu Mar 28 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.13.1-1
- 2.13.1
* Tue Feb 19 2013 Vít Ondruch <vondruch@redhat.com> - 2.12.2-3
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12.2-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jan 2 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.2-2
- Use aruba, which is already in Fedora, drop no-longer-needed
patch
2013-01-02 05:56:27 +00:00
* Wed Jan 2 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.12.2-1
- 2.12.2
* Thu Oct 11 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.11.1-1
- 2.11.1
- Drop dependency for mocks and expectations
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2014-11-10 07:37:38 +00:00
* Sun Jan 22 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
2012-01-21 23:13:32 +00:00
- 2.8.0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.4-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-06-07 14:14:41 +00:00
* Tue Jun 7 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.4-1
- 2.6.4
2011-05-24 15:41:13 +00:00
* Wed May 25 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.3-1
- 2.6.3
* Tue May 24 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.2-2
- Workaround for invalid date format in gemspec file (bug 706914)
2011-05-22 15:11:05 +00:00
* Mon May 23 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.2-1
- 2.6.2
2011-05-15 16:40:27 +00:00
* Mon May 16 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-1
- 2.6.0
2011-05-10 21:48:26 +00:00
* Tue May 10 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.2.rc6
- 2.6.0 rc6
2011-05-03 05:02:56 +00:00
* Tue May 3 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.0-0.1.rc4
- 2.6.0 rc4
2011-02-25 18:32:23 +00:00
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org>
- And enable check on rawhide
2011-02-25 18:02:39 +00:00
* Sat Feb 26 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.5.1-3
- More cleanups
* Tue Feb 22 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.5.1-2
- Some misc fixes
* Thu Feb 17 2011 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.5.1-1
- 2.5.1
* Fri Nov 05 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.0.1-1
- Initial package