3.1.2
- Once disable tests
This commit is contained in:
parent
86ed08030e
commit
8106fcca4f
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,3 +10,5 @@
|
|||||||
/rspec-expectations-2.14.3.gem
|
/rspec-expectations-2.14.3.gem
|
||||||
/rspec-expectations-2.14.4.gem
|
/rspec-expectations-2.14.4.gem
|
||||||
/rspec-expectations-2.14.5.gem
|
/rspec-expectations-2.14.5.gem
|
||||||
|
/rspec-expectations-3.1.2.gem
|
||||||
|
/rubygem-rspec-expectations-3.1.2-full.tar.gz
|
||||||
|
@ -1,26 +1,13 @@
|
|||||||
%global majorver 2.14.5
|
%global majorver 3.1.2
|
||||||
#%%global preminorver .rc6
|
#%%global preminorver .rc6
|
||||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||||
%global fullver %{majorver}%{?preminorver}
|
%global fullver %{majorver}%{?preminorver}
|
||||||
|
|
||||||
%global fedorarel 4
|
%global fedorarel 1
|
||||||
|
|
||||||
%global gem_name rspec-expectations
|
%global gem_name rspec-expectations
|
||||||
|
|
||||||
# It is too dangerous to use minitest >= 5 on rspec-expections-2.14.x...
|
%global need_bootstrap_set 1
|
||||||
# e5102884716f8bc1b4e8f0fe0b2b7c4dd1d04734 ... too big
|
|
||||||
%if 0%{?fedora} >= 21
|
|
||||||
%global gem_minitest rubygem(minitest4)
|
|
||||||
%else
|
|
||||||
%global gem_minitest rubygem(minitest)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
# %%check section needs rspec-core, however rspec-core depends on rspec-expectations
|
|
||||||
# runtime part of rspec-expectaions does not depend on rspec-core
|
|
||||||
%global need_bootstrap_set 0
|
|
||||||
|
|
||||||
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
|
|
||||||
|
|
||||||
Summary: Rspec-2 expectations (should and matchers)
|
Summary: Rspec-2 expectations (should and matchers)
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
@ -30,20 +17,18 @@ Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
|
|||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rspec/rspec-expectations
|
URL: http://github.com/rspec/rspec-expectations
|
||||||
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||||
# Backport temporarily be_truthy matchers and so on
|
# %%{SOURCE2} %%{name} %%{version}
|
||||||
Patch0: rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch
|
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
|
||||||
|
Source2: rspec-related-create-full-tarball.sh
|
||||||
|
|
||||||
BuildRequires: ruby(release)
|
BuildRequires: ruby(release)
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
%if 0%{?need_bootstrap} < 1
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
BuildRequires: rubygem(rspec)
|
BuildRequires: rubygem(rspec)
|
||||||
BuildRequires: %gem_minitest
|
BuildRequires: rubygem(minitest)
|
||||||
%endif
|
%endif
|
||||||
Requires: ruby(release)
|
BuildArch: noarch
|
||||||
Requires: rubygem(diff-lcs)
|
|
||||||
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
rspec-expectations adds `should` and `should_not` to every object and includes
|
rspec-expectations adds `should` and `should_not` to every object and includes
|
||||||
@ -59,65 +44,56 @@ This package contains documentation for %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
|
||||||
|
|
||||||
TOPDIR=$(pwd)
|
|
||||||
mkdir tmpunpackdir
|
|
||||||
pushd tmpunpackdir
|
|
||||||
|
|
||||||
gem unpack %{SOURCE0}
|
gem unpack %{SOURCE0}
|
||||||
cd %{gem_name}-%{version}
|
|
||||||
|
|
||||||
%patch0 -p2
|
%setup -q -D -T -n %{gem_name}-%{version} -a 1
|
||||||
sed -i -e "s@\(require 'test/unit'\)@gem 'minitest', '~> 4' ;\1@" \
|
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
spec/spec_helper.rb
|
|
||||||
|
|
||||||
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
|
|
||||||
gem build %{gem_name}.gemspec
|
|
||||||
mv %{gem_name}-%{version}.gem $TOPDIR
|
|
||||||
|
|
||||||
popd
|
|
||||||
rm -rf tmpunpackdir
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
gem build %{gem_name}.gemspec
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
#chmod 0644 ./%{gem_cache}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
# cleanups
|
# cleanups
|
||||||
rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
|
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
||||||
|
|
||||||
%if 0%{?need_bootstrap} < 1
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
%check
|
%check
|
||||||
LANG=en_US.UTF-8
|
LANG=en_US.UTF-8
|
||||||
pushd .%{gem_instdir}
|
pushd %{gem_name}-%{version}
|
||||||
|
|
||||||
ruby -rubygems -Ilib/ -S rspec spec/
|
ruby -rubygems -Ilib/ -S rspec spec/
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
|
|
||||||
%doc %{gem_instdir}/License.txt
|
%license %{gem_instdir}/License.txt
|
||||||
%doc %{gem_instdir}/*.md
|
%doc %{gem_instdir}/*.md
|
||||||
%{gem_instdir}/lib/
|
%{gem_instdir}/lib/
|
||||||
|
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{gem_docdir}
|
%{gem_docdir}
|
||||||
%{gem_instdir}/features/
|
|
||||||
%exclude %{gem_instdir}/spec/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-1
|
||||||
|
- 3.1.2
|
||||||
|
- Once disable tests
|
||||||
|
|
||||||
|
* Fri Aug 15 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.4-1
|
||||||
|
- 3.0.4
|
||||||
|
|
||||||
|
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
|
||||||
|
- 3.0.3
|
||||||
|
|
||||||
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-4
|
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-4
|
||||||
- Clearner way to specify minitest 4.x
|
- Clearner way to specify minitest 4.x
|
||||||
|
|
||||||
@ -172,10 +148,10 @@ popd
|
|||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2.1
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-2
|
* Sun Jan 22 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-2
|
||||||
- Require (diff-lcs) again
|
- Require (diff-lcs) again
|
||||||
|
|
||||||
* Sun Jan 21 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
|
* Sun Jan 22 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.8.0-1
|
||||||
- 2.8.0
|
- 2.8.0
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-1.1
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user