rubygem-rspec-support/rubygem-rspec-support.spec

183 lines
4.7 KiB
RPMSpec
Raw Normal View History

2014-03-18 11:14:22 +00:00
%global gem_name rspec-support
2017-05-06 13:15:52 +00:00
%global mainver 3.6.0
2014-08-14 08:57:28 +00:00
%undefine prever
2014-03-18 11:14:22 +00:00
2017-05-06 14:41:29 +00:00
%global mainrel 1
2014-03-18 11:14:22 +00:00
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
2017-05-06 14:41:29 +00:00
%global need_bootstrap_set 0
2014-03-18 11:14:22 +00:00
Name: rubygem-%{gem_name}
Version: %{mainver}
2016-07-23 15:47:46 +00:00
Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}
2014-03-18 11:14:22 +00:00
Summary: Common functionality to Rspec series
Group: Development/Languages
License: MIT
URL: https://github.com/rspec/rspec-support
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
2014-11-10 07:37:38 +00:00
# %%{SOURCE2} %%{name} %%{version}
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
Source2: rspec-related-create-full-tarball.sh
# tweak regex for search path
2015-02-09 00:46:53 +00:00
Patch0: rubygem-rspec-support-3.2.1-callerfilter-searchpath-regex.patch
2014-11-10 07:37:38 +00:00
2015-12-08 07:22:00 +00:00
#BuildRequires: ruby(release)
2014-03-18 11:14:22 +00:00
BuildRequires: rubygems-devel
2014-11-10 07:37:38 +00:00
%if 0%{?need_bootstrap_set} < 1
BuildRequires: rubygem(rspec)
2015-12-08 07:22:00 +00:00
BuildRequires: rubygem(thread_order)
2016-07-23 16:21:21 +00:00
BuildRequires: rubygem(bigdecimal)
2015-08-02 12:15:01 +00:00
BuildRequires: git
2014-11-10 07:37:38 +00:00
%endif
2014-03-18 11:14:22 +00:00
BuildArch: noarch
%description
`RSpec::Support` provides common functionality to `RSpec::Core`,
`RSpec::Expectations` and `RSpec::Mocks`. It is considered
suitable for internal use only at this time.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%global version_orig %{version}
%global version %{version_orig}%{?prever}
%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
2014-03-18 11:14:22 +00:00
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2014-11-10 07:37:38 +00:00
%patch0 -p1
2014-03-18 11:14:22 +00:00
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
2014-11-10 07:37:38 +00:00
%if 0%{?need_bootstrap_set} < 1
%check
LANG=en_US.UTF-8
2017-02-03 15:59:32 +00:00
2015-12-08 07:22:00 +00:00
# Test failure needs investigation...
FAILFILE=()
FAILTEST=()
2016-07-23 15:47:46 +00:00
%if 0
2015-12-08 07:22:00 +00:00
FAILFILE+=("spec/rspec/support/differ_spec.rb")
FAILTEST+=("copes with encoded strings")
2016-07-23 15:47:46 +00:00
%endif
2015-12-08 07:22:00 +00:00
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
sed -i \
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
${FAILFILE[$i]}
}
ruby -rubygems -Ilib/ -S rspec spec/ || \
ruby -rubygems -Ilib/ -S rspec --tag ~broken
2014-11-10 07:37:38 +00:00
%endif
2014-03-18 11:14:22 +00:00
%files
%dir %{gem_instdir}
2015-12-08 07:22:00 +00:00
%license %{gem_instdir}/LICENSE.md
2014-08-14 08:57:28 +00:00
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md
2014-03-18 11:14:22 +00:00
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%changelog
2017-05-06 14:41:29 +00:00
* Sat May 6 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.0-1
- Enable tests again
2017-05-06 13:15:52 +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)
2017-02-03 15:59:32 +00:00
* Fri Feb 03 2017 Jun Aruga <jaruga@redhat.com> - 3.5.0-2
- Fix for Ruby 2.4.0 compatibility.
2016-07-23 16:12:29 +00:00
* Sun Jul 24 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-1
- Enable tests again
2016-07-23 15:47:46 +00:00
* Sat Jul 23 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-0.1
- 3.5.0
- Once disable tests
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-12-08 08:24:26 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-2
- Enable tests again
2015-12-08 07:22:00 +00:00
* Tue Dec 8 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.4.1-1
- 3.4.1
- Once disable tests
2015-08-02 11:40:53 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-2
- Enable tests again
2015-08-02 07:16:52 +00:00
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.0-1
- 3.3.0
- Once disable tests
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-02-25 06:36:01 +00:00
* Wed Feb 25 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.2-1
- 3.2.2
2015-02-09 02:20:14 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-2
- Enable tests again
2015-02-09 00:46:53 +00:00
* Mon Feb 9 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.1-1
- 3.2.1
- Once disable tests
2014-11-10 11:47:32 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-3
- Enable tests again
2014-11-10 08:43:45 +00:00
* Mon Nov 10 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.1.2-2
2014-11-10 09:00:53 +00:00
- Retry
2014-11-10 08:43:45 +00:00
2014-11-10 07:37:38 +00:00
* 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
2014-08-14 08:57:28 +00:00
* Thu Aug 14 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> - 3.0.0-0.4.beta2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-18 11:47:41 +00:00
* Tue Mar 18 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.4.beta1
2014-03-18 11:14:22 +00:00
- 3.0.0 beta 2
* Mon Feb 10 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.2.beta1
- Modify Provides EVR
* Mon Feb 03 2014 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 3.0.0-0.1.beta1
- Initial package