!9 update to 0.9.28

From: @caodongxia 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-01-30 00:58:25 +00:00 committed by Gitee
commit 02c2a27f61
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 11 additions and 4 deletions

View File

@ -1,11 +1,13 @@
%global gem_name yard %global gem_name yard
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.9.26 Version: 0.9.28
Release: 2 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/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone http://github.com/lsegal/yard
# cd yard && git archive -v -o yard-0.9.28-spec.txz v0.9.28 spec/
Source1: %{gem_name}-%{version}-spec.txz Source1: %{gem_name}-%{version}-spec.txz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(RedCloth) rubygem(asciidoctor) rubygem(bundler) BuildRequires: ruby(release) rubygems-devel ruby rubygem(RedCloth) rubygem(asciidoctor) rubygem(bundler)
@ -38,7 +40,6 @@ cp -a .%{gem_dir}/* \
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \ cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/ %{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir} -type f | xargs chmod a-x
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
@ -46,7 +47,10 @@ pushd .%{gem_instdir}
cp -r %{_builddir}/spec . cp -r %{_builddir}/spec .
sed -r -i "/(coveralls|gettext|samus|simplecov)/ s/^/#/" Gemfile sed -r -i "/(coveralls|gettext|samus|simplecov)/ s/^/#/" Gemfile
rspec -Ispec spec
sed -r -i "/gem 'commonmarker'/ s/^/#/" Gemfile
rspec spec
popd popd
%files %files
@ -82,6 +86,9 @@ popd
%{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/%{gem_name}.gemspec
%changelog %changelog
* Tue Jan 17 2023 caodongxia <caodongxia@h-partners.com> - 0.9.28-1
- update to 0.9.28
* Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 0.9.26-2 * Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 0.9.26-2
- Fix build error for Ruby 3 - Fix build error for Ruby 3

Binary file not shown.

BIN
yard-0.9.28.gem Normal file

Binary file not shown.