diff --git a/rubygem-yard.spec b/rubygem-yard.spec index 4c41c4c..e42d5d9 100644 --- a/rubygem-yard.spec +++ b/rubygem-yard.spec @@ -1,12 +1,14 @@ %global gem_name yard Name: rubygem-%{gem_name} -Version: 0.9.12 +Version: 0.9.26 Release: 1 Summary: Documentation tool for consistent and usable documentation in Ruby License: MIT and (BSD or Ruby) URL: http://yardoc.org -Source0: https://rubygems.org/gems/yard-%{version}.gem -BuildRequires: ruby(release) rubygems-devel ruby rubygem(RedCloth) rubygem(bundler) +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +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) BuildArch: noarch %description @@ -23,7 +25,7 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -n %{gem_name}-%{version} +%setup -q -n %{gem_name}-%{version} -b1 %build gem build ../%{gem_name}-%{version}.gemspec @@ -41,10 +43,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} -sed -i '/bundler\/setup/ s/^/#/' spec/spec_helper.rb -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 -rspec -rspec_helper spec +cp -r %{_builddir}/spec . + +sed -r -i "/(coveralls|gettext|samus|simplecov)/ s/^/#/" Gemfile +rspec -Ispec spec popd %files @@ -52,11 +54,12 @@ popd %{_bindir}/yard %{_bindir}/yardoc %{_bindir}/yri -%exclude %{gem_instdir}/.yardopts +%exclude %{gem_instdir}/.* %license %{gem_instdir}/LEGAL %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} +%{gem_instdir}/po %{gem_instdir}/templates %exclude %{gem_cache} %{gem_spec} @@ -64,13 +67,22 @@ popd %files doc %doc %{gem_docdir} %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 %{gem_instdir}/Rakefile +%doc %{gem_instdir}/SECURITY.md %{gem_instdir}/benchmarks +%{gem_instdir}/tasks %doc %{gem_instdir}/docs -%{gem_instdir}/spec +%{gem_instdir}/samus.json %{gem_instdir}/%{gem_name}.gemspec %changelog +* Mon Jul 26 2021 houyingchao - 0.9.26-1 +- Upgrade to 0.9.26 + * Sat Aug 8 2020 yanan li - 0.9.12-1 - Package init diff --git a/yard-0.9.12.gem b/yard-0.9.12.gem deleted file mode 100644 index 5198982..0000000 Binary files a/yard-0.9.12.gem and /dev/null differ diff --git a/yard-0.9.26-spec.txz b/yard-0.9.26-spec.txz new file mode 100644 index 0000000..74f2212 Binary files /dev/null and b/yard-0.9.26-spec.txz differ diff --git a/yard-0.9.26.gem b/yard-0.9.26.gem new file mode 100644 index 0000000..d0adf76 Binary files /dev/null and b/yard-0.9.26.gem differ