Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
rubygem-rspec-core
rubygem-rspec-core.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-rspec-core.spec of Package rubygem-rspec-core
%global majorver 3.4.4 #%%global preminorver .rc6 %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} %global fedorarel 1 %global gem_name rspec-core # %%check section needs rspec-core, however rspec-core depends on rspec-mocks # runtime part of rspec-mocks does not depend on rspec-core %global need_bootstrap_set 1 %if 0%{?fedora} >= 25 # Disable test for now due to cucumber v.s. gherkin dependency issue # pulled by aruba %global need_bootstrap_set 1 %endif Summary: Rspec-2 runner and formatters Name: rubygem-%{gem_name} Version: %{majorver} Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-mocks Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem # %%{SOURCE2} %%{name} %%{version} Source1: rubygem-%{gem_name}-%{version}-full.tar.gz Source2: rspec-related-create-full-tarball.sh #BuildRequires: ruby(release) BuildRequires: rubygems-devel %if 0%{?need_bootstrap_set} < 1 BuildRequires: rubygem(minitest) BuildRequires: rubygem(nokogiri) BuildRequires: rubygem(rake) BuildRequires: rubygem(rspec) BuildRequires: rubygem(aruba) # Newly BuildRequires: rubygem(flexmock) BuildRequires: rubygem(mocha) BuildRequires: rubygem(rr) BuildRequires: rubygem(coderay) BuildRequires: rubygem(thread_order) BuildRequires: git %if 0%{?fedora} >= 24 BuildRequires: glibc-langpack-en %endif %endif # Make the following installed by default # lib/rspec/core/rake_task Requires: rubygem(rake) # Optional #Requires: rubygem(ZenTest) #Requires: rubygem(flexmock) #Requires: rubygem(mocha) #Requires: rubygem(rr) BuildArch: noarch %description Behaviour Driven Development for Ruby. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} -a 1 gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{_prefix} cp -a .%{_prefix}/* %{buildroot}%{_prefix}/ # cleanups rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts} %if 0%{?need_bootstrap_set} < 1 %check LANG=en_US.UTF-8 pushd %{gem_name}-%{version} # Test failure needs investigation... # 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") FAILFILE+=("spec/rspec/core/source/syntax_highlighter_spec.rb") FAILTEST+=(""when CodeRay is available) # 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") for ((i = 0; i < ${#FAILFILE[@]}; i++)) { sed -i \ -e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \ ${FAILFILE[$i]} } ruby -rubygems -Ilib/ -S exe/rspec || \ ruby -rubygems -Ilib/ -S exe/rspec --tag ~broken popd %endif %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.md %doc %{gem_instdir}/Changelog.md %doc %{gem_instdir}/README.md %{_bindir}/rspec %{gem_instdir}/exe/ %{gem_instdir}/lib/ %exclude %{gem_cache} %{gem_spec} %files doc %{gem_docdir}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor