!6 [sync] PR-4: update to 1.1.1
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
ce7ad13747
Binary file not shown.
BIN
mustermann-1.1.1-mustermann-contrib.tgz
Normal file
BIN
mustermann-1.1.1-mustermann-contrib.tgz
Normal file
Binary file not shown.
BIN
mustermann-1.1.1-support.tgz
Normal file
BIN
mustermann-1.1.1-support.tgz
Normal file
Binary file not shown.
BIN
mustermann-1.1.1.gem
Normal file
BIN
mustermann-1.1.1.gem
Normal file
Binary file not shown.
@ -1,13 +1,18 @@
|
|||||||
%global gem_name mustermann
|
%global gem_name mustermann
|
||||||
%{?_with_bootstrap: %global bootstrap 1}
|
%{?_with_bootstrap: %global bootstrap 1}
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.0.2
|
Version: 1.1.1
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Your personal string matching expert
|
Summary: Your personal string matching expert
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sinatra/mustermann
|
URL: https://github.com/sinatra/mustermann
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Source1: https://github.com/sinatra/mustermann/archive/v%{version}.tar.gz
|
# Support and mustermann-contrib routines required by test suite.
|
||||||
|
# git clone https://github.com/sinatra/mustermann.git && cd mustermann
|
||||||
|
# git checkout v1.1.1 && tar czvf mustermann-1.1.1-support.tgz support/
|
||||||
|
Source1: %{gem_name}-%{version}-support.tgz
|
||||||
|
# tar czvf mustermann-1.1.1-mustermann-contrib.tgz mustermann-contrib/
|
||||||
|
Source2: %{gem_name}-%{version}-mustermann-contrib.tgz
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.0 rubygem(rspec) rubygem(rspec-its)
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.0 rubygem(rspec) rubygem(rspec-its)
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
BuildRequires: rubygem(sinatra)
|
BuildRequires: rubygem(sinatra)
|
||||||
@ -25,20 +30,22 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gem unpack %{SOURCE0}
|
%setup -q -n %{gem_name}-%{version} -b 1 -b 2
|
||||||
%setup -q -D -T -n %{gem_name}-%{version} -b 1
|
%gemspec_remove_dep -g ruby2_keywords
|
||||||
ln -s %{_builddir}/%{gem_name}-%{version}/support ../support
|
|
||||||
ln -s %{_builddir}/%{gem_name}-%{version}/mustermann-contrib ../mustermann-contrib
|
|
||||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build %{gem_name}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
pushd %{_builddir}/%{gem_name}-%{version}/%{gem_instdir}
|
||||||
|
mv spec/identity_spec.rb{,.disabled}
|
||||||
|
mv spec/concat_spec.rb{,.disabled}
|
||||||
|
popd
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -52,14 +59,6 @@ sed -i "/^require 'mustermann\/extension'/ s/^/#/" \
|
|||||||
spec/mustermann_spec.rb
|
spec/mustermann_spec.rb
|
||||||
sed -i '/^ describe :extend_object do$/,/^ end$/ s/^/#/' \
|
sed -i '/^ describe :extend_object do$/,/^ end$/ s/^/#/' \
|
||||||
spec/mustermann_spec.rb
|
spec/mustermann_spec.rb
|
||||||
sed -i "/^ context 'accepts a block with no arguments, using the return value' do$/,/^ end$/ s/^/#/" \
|
|
||||||
spec/mapper_spec.rb
|
|
||||||
sed -i "/^ context 'accepts mappings followed by options' do$/,/^ end$/ s/^/#/" \
|
|
||||||
spec/mapper_spec.rb
|
|
||||||
sed -i "/^ context 'accepts options followed by mappings' do$/,/^ end$/ s/^/#/" \
|
|
||||||
spec/mapper_spec.rb
|
|
||||||
sed -i "/^ context 'allows specifying type' do$/,/^ end$/ s/^/#/" \
|
|
||||||
spec/mapper_spec.rb
|
|
||||||
rspec -I%{_builddir}/{support,mustermann-contrib}/lib spec
|
rspec -I%{_builddir}/{support,mustermann-contrib}/lib spec
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
@ -79,6 +78,9 @@ popd
|
|||||||
%{gem_instdir}/spec
|
%{gem_instdir}/spec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 24 2022 liyanan <liyanan32@huawei.com> - 1.1.1-1
|
||||||
|
- update to 1.1.1
|
||||||
|
|
||||||
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
|
* Tue Sep 8 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
|
||||||
- fix build fail
|
- fix build fail
|
||||||
|
|
||||||
|
|||||||
BIN
v1.0.2.tar.gz
BIN
v1.0.2.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user