2014-03-18 11:14:22 +00:00
|
|
|
%global gem_name rspec-support
|
|
|
|
|
2015-02-09 00:46:53 +00:00
|
|
|
%global mainver 3.2.1
|
2014-08-14 08:57:28 +00:00
|
|
|
%undefine prever
|
2014-03-18 11:14:22 +00:00
|
|
|
|
2015-02-09 00:46:53 +00:00
|
|
|
%global mainrel 1
|
2014-03-18 11:14:22 +00:00
|
|
|
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
|
|
|
|
|
2015-02-09 00:46:53 +00:00
|
|
|
%global need_bootstrap_set 1
|
2014-03-18 11:14:22 +00:00
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: %{mainver}
|
2014-08-14 08:57:28 +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
|
|
|
|
2014-03-18 11:14:22 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
2014-11-10 07:37:38 +00:00
|
|
|
%if 0%{?need_bootstrap_set} < 1
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
%endif
|
2014-03-18 11:14:22 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
# Need fix
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
|
|
|
|
|
|
|
%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
|
|
|
|
gem unpack %{SOURCE0}
|
2014-11-10 07:37:38 +00:00
|
|
|
%setup -q -D -T -n %{gem_name}-%{version} -a 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
|
|
|
(
|
|
|
|
cd %{gem_name}-%{version}
|
|
|
|
%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
|
|
|
|
pushd %{gem_name}-%{version}
|
|
|
|
|
|
|
|
ruby -rubygems -Ilib/ -S rspec spec/
|
|
|
|
|
|
|
|
popd
|
|
|
|
%endif
|
2014-03-18 11:14:22 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
2014-08-14 08:57:28 +00:00
|
|
|
%doc %{gem_instdir}/Changelog.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%license %{gem_instdir}/LICENSE.txt
|
2014-03-18 11:14:22 +00:00
|
|
|
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
2014-06-08 05:16:18 +00:00
|
|
|
* 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
|