Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Troy Dawson
d144873503 remove package.cfg per new epel-playground policy 2020-09-24 17:48:49 +00:00
Breno B Fernandes
57c7eeae8f Added rake and rubygems as dependencies. 2020-02-13 10:20:26 -05:00
Breno B Fernandes
ece3762ef8 Rebuilt for EPEL8. 2020-02-13 09:56:25 -05:00
Breno B Fernandes
9d55fa101e Revert "Update to YARD 0.9.24."
Reverting because we still don't have rubygem-asciidoctor on epel 8.

This reverts commit 58c6387799.
2020-02-12 17:22:36 -05:00
Breno B Fernandes
bf6c3e11d0 Merge branch 'master' into epel8 2020-02-12 17:22:27 -05:00
Gwyn Ciesla
ece1ff734b "Adding package.cfg file" 2020-01-22 16:34:54 -06:00
3 changed files with 19 additions and 26 deletions

1
.gitignore vendored
View file

@ -9,4 +9,3 @@ yard-0.5.3.gem
/yard-0.8.7.6.gem /yard-0.8.7.6.gem
/yard-0.9.8.gem /yard-0.9.8.gem
/yard-0.9.12.gem /yard-0.9.12.gem
/yard-0.9.24.gem

View file

@ -1,24 +1,23 @@
%global gem_name yard %global gem_name yard
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.9.24 Version: 0.9.12
Release: 1%{?dist} Release: 8%{?dist}
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
# The 'irb/notifier' might be required for parsing of some old Ruby code.
# https://github.com/lsegal/yard/blob/v0.9.24/lib/yard/parser/ruby/legacy/irb/slex.rb#L13
Recommends: rubygem(irb)
BuildRequires: ruby(release) BuildRequires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygems
BuildRequires: rubygem(RedCloth) BuildRequires: rubygem(RedCloth)
BuildRequires: rubygem(asciidoctor)
BuildRequires: rubygem(bundler) BuildRequires: rubygem(bundler)
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
BuildRequires: rubygem(redcarpet) BuildRequires: rubygem(redcarpet)
BuildRequires: rubygem(rack) BuildRequires: rubygem(rack)
BuildRequires: rubygem(rake)
Requires: rubygems
BuildArch: noarch BuildArch: noarch
%description %description
@ -31,13 +30,15 @@ custom Ruby constructs such as custom class level definitions.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: rubygems
Requires: rubygems
BuildArch: noarch BuildArch: noarch
%description doc %description doc
Documentation for %{name}. Documentation for %{name}.
%prep %prep
%setup -q -n %{gem_name}-%{version} %setup -q -n %{gem_name}-%{version}
%build %build
# Create the gem as gem install only works on a gem file # Create the gem as gem install only works on a gem file
@ -57,7 +58,7 @@ mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \ cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/ %{buildroot}%{_bindir}/
# Some files in 0.9.24 release has still executable bit set :/ # All files in 0.9.12 release has executable bit set :/
# https://github.com/lsegal/yard/issues/1147 # https://github.com/lsegal/yard/issues/1147
find %{buildroot}%{gem_instdir} -type f | xargs chmod a-x find %{buildroot}%{gem_instdir} -type f | xargs chmod a-x
@ -65,14 +66,14 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
# Get rid of Bundler.
sed -i '/bundler\/setup/ s/^/#/' spec/spec_helper.rb
# There are quite some test mocking File functionality which makes running the # This is needed, since we are not using Bundler.
# test suite without Bundler hard. Since the test suite includes Bundler test sed -i '/allow(File)\.to receive(:exist?).with(\/\\\.yardopts$\/)/ i\ allow(File).to receive(:exist?).and_return(true)' spec/cli/server_spec.rb
# cases, just remove the unnecessary dependencies and run the test suite via 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
# Bundler.
sed -r -i "/(coveralls|gettext|samus|simplecov)/ s/^/#/" Gemfile
rspec spec rspec -rspec_helper spec
popd popd
%files %files
@ -80,12 +81,11 @@ popd
%{_bindir}/yard %{_bindir}/yard
%{_bindir}/yardoc %{_bindir}/yardoc
%{_bindir}/yri %{_bindir}/yri
%exclude %{gem_instdir}/.* %exclude %{gem_instdir}/.yardopts
%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}
@ -93,22 +93,16 @@ 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
%doc %{gem_instdir}/docs %doc %{gem_instdir}/docs
%{gem_instdir}/samus.json
%{gem_instdir}/spec %{gem_instdir}/spec
%{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/%{gem_name}.gemspec
%changelog %changelog
* Tue Feb 04 2020 Vít Ondruch <vondruch@redhat.com> - 0.9.24-1 * Wed Feb 12 2020 Breno Brand Fernandes <brandfbb@gmail.com> - 0.9.12-8
- Update to YARD 0.9.24. - Rebuilt for EPEL8.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-7 * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (yard-0.9.24.gem) = c6a270eeb214230f349d038889c72ee21a19756b4aeda2827c397000092e4bdd16109c4e8605f1b4a962e15ffe9aae1013d2ecf7ab5a0948f5e5ce3dd7b8cf55 SHA512 (yard-0.9.12.gem) = e26d759e80c9f76aa9b990ee01e6be9afad61ad49d6c7941b8ade262a42717782815383f8ef757eacea9b0b87dc48da3d3a4effa966ecb0bf8b989a195f64c70