init package
This commit is contained in:
parent
fb658e878c
commit
29e27dfa40
BIN
rspec-support-3.8.2.gem
Normal file
BIN
rspec-support-3.8.2.gem
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
|||||||
|
--- rspec-support-3.2.1/spec/rspec/support/caller_filter_spec.rb.regex 2015-02-09 09:09:58.000000000 +0900
|
||||||
|
+++ rspec-support-3.2.1/spec/rspec/support/caller_filter_spec.rb 2015-02-09 09:19:58.589718748 +0900
|
||||||
|
@@ -15,7 +15,7 @@
|
||||||
|
describe "the filtering regex" do
|
||||||
|
def ruby_files_in_lib(lib)
|
||||||
|
# http://rubular.com/r/HYpUMftlG2
|
||||||
|
- path = $LOAD_PATH.find { |p| p.match(/\/rspec-#{lib}(-[a-f0-9]+)?\/lib/) }
|
||||||
|
+ path = $LOAD_PATH.find { |p| p.match(/\/rspec-#{lib}(-[a-f0-9\.]+)?\/lib/) }
|
||||||
|
|
||||||
|
Dir["#{path}/**/*.rb"].sort.tap do |files|
|
||||||
|
# Just a sanity check...
|
||||||
83
rubygem-rspec-support.spec
Normal file
83
rubygem-rspec-support.spec
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%global gem_name rspec-support
|
||||||
|
%global mainver 3.8.2
|
||||||
|
%undefine prever
|
||||||
|
%global mainrel 1
|
||||||
|
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
|
||||||
|
%global need_bootstrap_set 0
|
||||||
|
%undefine __brp_mangle_shebangs
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: %{mainver}
|
||||||
|
Release: 1
|
||||||
|
Summary: Common functionality to Rspec series
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/rspec/rspec-support
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
|
||||||
|
Source1: https://github.com/rspec/%{gem_name}/archive/v%{mainver}.tar.gz
|
||||||
|
# tweak regex for search path
|
||||||
|
Patch100: rubygem-rspec-support-3.2.1-callerfilter-searchpath-regex.patch
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
|
BuildRequires: rubygem(rspec) rubygem(thread_order) rubygem(bigdecimal) git
|
||||||
|
%endif
|
||||||
|
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}
|
||||||
|
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
|
||||||
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
|
%patch100 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build %{gem_name}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -pa .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
%if 0%{?need_bootstrap_set} < 1
|
||||||
|
|
||||||
|
%check
|
||||||
|
LANG=C.UTF-8
|
||||||
|
FAILFILE=()
|
||||||
|
FAILTEST=()
|
||||||
|
%if 0
|
||||||
|
FAILFILE+=("spec/rspec/support/differ_spec.rb")
|
||||||
|
FAILTEST+=("copes with encoded strings")
|
||||||
|
%endif
|
||||||
|
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
|
||||||
|
sed -i \
|
||||||
|
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
|
||||||
|
${FAILFILE[$i]}
|
||||||
|
}
|
||||||
|
ruby -rrubygems -Ilib/ -S rspec spec/ || \
|
||||||
|
ruby -rrubygems -Ilib/ -S rspec --tag ~broken
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%license %{gem_instdir}/LICENSE.md
|
||||||
|
%doc %{gem_instdir}/Changelog.md
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 25 2020 fanjiachen <fanjiachen3@huawei.com> - 3.8.2-1
|
||||||
|
- package init
|
||||||
4
rubygem-rspec-support.yaml
Normal file
4
rubygem-rspec-support.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: rspec/rspec-support
|
||||||
|
tag_prefix: "v"
|
||||||
|
seperator: "."
|
||||||
BIN
v3.8.2.tar.gz
Normal file
BIN
v3.8.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user