!2 CVE-2019-1020001

From: @houyingchao
Reviewed-by: @programmer12,@small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-07-26 11:59:13 +00:00 committed by Gitee
commit 1a82c10d41
4 changed files with 22 additions and 10 deletions

View File

@ -1,12 +1,14 @@
%global gem_name yard %global gem_name yard
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.9.12 Version: 0.9.26
Release: 1 Release: 1
Summary: Documentation tool for consistent and usable documentation in Ruby Summary: Documentation tool for consistent and usable documentation in Ruby
License: MIT and (BSD or Ruby) License: MIT and (BSD or Ruby)
URL: http://yardoc.org URL: http://yardoc.org
Source0: https://rubygems.org/gems/yard-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(RedCloth) rubygem(bundler) Source1: %{gem_name}-%{version}-spec.txz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(RedCloth) rubygem(asciidoctor) rubygem(bundler)
BuildRequires: rubygem(rspec) rubygem(redcarpet) rubygem(rack) BuildRequires: rubygem(rspec) rubygem(redcarpet) rubygem(rack)
BuildArch: noarch BuildArch: noarch
%description %description
@ -23,7 +25,7 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %prep
%setup -q -n %{gem_name}-%{version} %setup -q -n %{gem_name}-%{version} -b1
%build %build
gem build ../%{gem_name}-%{version}.gemspec gem build ../%{gem_name}-%{version}.gemspec
@ -41,10 +43,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
sed -i '/bundler\/setup/ s/^/#/' spec/spec_helper.rb cp -r %{_builddir}/spec .
sed -i '/allow(File)\.to receive(:exist?).with(\/\\\.yardopts$\/)/ i\ allow(File).to receive(:exist?).and_return(true)' spec/cli/server_spec.rb
sed -i '/expect(File)\.to receive(:file?).with(%r{\/\\\.yard\/yri_cache$})\.and_return(false)/ i\ allow(File).to receive(:file?).and_return(false)' spec/cli/yri_spec.rb sed -r -i "/(coveralls|gettext|samus|simplecov)/ s/^/#/" Gemfile
rspec -rspec_helper spec rspec -Ispec spec
popd popd
%files %files
@ -52,11 +54,12 @@ popd
%{_bindir}/yard %{_bindir}/yard
%{_bindir}/yardoc %{_bindir}/yardoc
%{_bindir}/yri %{_bindir}/yri
%exclude %{gem_instdir}/.yardopts %exclude %{gem_instdir}/.*
%license %{gem_instdir}/LEGAL %license %{gem_instdir}/LEGAL
%license %{gem_instdir}/LICENSE %license %{gem_instdir}/LICENSE
%{gem_instdir}/bin %{gem_instdir}/bin
%{gem_libdir} %{gem_libdir}
%{gem_instdir}/po
%{gem_instdir}/templates %{gem_instdir}/templates
%exclude %{gem_cache} %exclude %{gem_cache}
%{gem_spec} %{gem_spec}
@ -64,13 +67,22 @@ popd
%files doc %files doc
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
%doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Dockerfile.samus
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%doc %{gem_instdir}/SECURITY.md
%{gem_instdir}/benchmarks %{gem_instdir}/benchmarks
%{gem_instdir}/tasks
%doc %{gem_instdir}/docs %doc %{gem_instdir}/docs
%{gem_instdir}/spec %{gem_instdir}/samus.json
%{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/%{gem_name}.gemspec
%changelog %changelog
* Mon Jul 26 2021 houyingchao <houyingchao@huawei.com> - 0.9.26-1
- Upgrade to 0.9.26
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.9.12-1 * Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.9.12-1
- Package init - Package init

Binary file not shown.

BIN
yard-0.9.26-spec.txz Normal file

Binary file not shown.

BIN
yard-0.9.26.gem Normal file

Binary file not shown.