# Generated from rdoc-3.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name rdoc Name: rubygem-%{gem_name} Version: 6.4.0 Release: 206%{?dist} Summary: RDoc produces HTML and command-line documentation for Ruby projects # BSD-3-Clause: lib/rdoc/generator/darkfish.rb # CC-BY-2.5: lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif # OFL-1.1-RFN: lib/rdoc/generator/template/darkfish/css/fonts.css License: GPL-2.0 AND Ruby AND BSD-3-Clause AND CC-BY-2.5 AND OFL-1.1-RFN URL: https://ruby.github.io/rdoc Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/ruby/rdoc.git --no-checkout # cd rdoc && git archive -v -o rdoc-6.4.0-tests.tar.gz v6.4.0 test/ Source1: %{gem_name}-%{version}-tests.tar.gz # Fix ruby_version abuse. Keep this in sinc with ruby-2.3.0-ruby_version.patch # applied in ruby package. # https://bugs.ruby-lang.org/issues/11002 Patch0: rubygem-rdoc-5.1.0-ruby_version.patch # https://github.com/ruby/rdoc/pull/927 # Fix test failure with upcoming ruby 3.2 Patch1: rubygem-rdoc-6.4.0-test_parse_method_bracket.patch Requires: rubygem(irb) Requires: rubygem(io-console) Requires: rubygem(json) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(test-unit) # test/rdoc/test_rdoc_i18n_locale.rb BuildRequires: rubygem(gettext) # Execute Rake integration test cases. BuildRequires: rubygem(rake) # test/rdoc/test_rdoc_servlet.rb BuildRequires: rubygem(webrick) Provides: rdoc = %{version}-%{release} Provides: ri = %{version}-%{release} BuildArch: noarch %description RDoc produces HTML and command-line documentation for Ruby projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b 1 %patch 0 -p1 ( cd %{_builddir}/test %patch 1 -p2 ) %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x for n in 1; do mkdir -p %{buildroot}%{_mandir}/man${n} for file in %{buildroot}%{gem_instdir}/man/*.${n}; do base_name=$(basename "${file}") cp -a "${file}" "%{buildroot}%{_mandir}/man${n}/${base_name}" done done %check pushd .%{gem_instdir} cp -a %{_builddir}/test . sed -i '/^\s*require..bundler/ s/^/#/g' test/rdoc/support/test_case.rb # Give `lib` precedence over system location, otherwise strange timestamp # failures might happen. RUBYOPT=-Ilib \ ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' -- -v popd %files %dir %{gem_instdir} %{_bindir}/rdoc %{_bindir}/ri %license %{gem_instdir}/LICENSE.rdoc %license %{gem_instdir}/LEGAL.rdoc %{gem_instdir}/exe %{gem_libdir} %exclude %{gem_instdir}/man %exclude %{gem_cache} %{gem_spec} %doc %{_mandir}/man1/* %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CONTRIBUTING.rdoc %doc %{gem_instdir}/CVE-2013-0256.rdoc %doc %{gem_instdir}/Example* %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.rdoc %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/RI.rdoc %{gem_instdir}/Rakefile %doc %{gem_instdir}/TODO.rdoc %{gem_instdir}/bin %{gem_instdir}/rdoc.gemspec %changelog * Fri Jul 19 2024 Fedora Release Engineering - 6.4.0-206 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 6.4.0-205 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 6.4.0-204 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 6.4.0-203 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Nov 10 2022 Mamoru TASAKA - 6.4.0-202 - Backport upstream fix for test_parse_method_bracket test for upcoming ruby3.2 * Fri Sep 02 2022 Vít Ondruch - 6.4.0-201 - Update to RDoc 6.4.0. Resolves: rhbz#2022293 Resolves: rhbz#2113701 * Sat Jul 23 2022 Fedora Release Engineering - 6.3.2-203 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 6.3.2-202 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 01 2021 Vít Ondruch - 6.3.2-201 - Update to RDoc 6.3.2. Resolves: rhbz#1909604 Resolves: rhbz#1987950 Resolves: rhbz#1980330 * Fri Jul 23 2021 Fedora Release Engineering - 6.2.1-203 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 6.2.1-202 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 6.2.1-201 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Feb 09 2020 Pavel Valena - 6.2.1-1 - Update to rdoc 6.2.1. * Thu Jan 30 2020 Fedora Release Engineering - 6.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 6.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 13 2019 Vít Ondruch - 6.1.1-1 - Update to RDoc 6.1.1. * Sat Feb 02 2019 Fedora Release Engineering - 6.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 6.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Apr 11 2018 Vít Ondruch - 6.0.3-2 - Add missing rubygem(json) dependency (rhbz#1565960). * Tue Apr 03 2018 Vít Ondruch - 6.0.3-1 - Update to RDoc 6.0.3. * Thu Mar 22 2018 Vít Ondruch - 6.0.2-1 - Update to RDoc 6.0.2. * Fri Feb 09 2018 Fedora Release Engineering - 5.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Vít Ondruch - 5.1.0-2 - Fix the RI path (rhbz#1458131). * Fri Feb 24 2017 Vít Ondruch - 5.1.0-1 - Update to RDoc 5.1.0. * Sat Feb 11 2017 Fedora Release Engineering - 4.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jun 09 2016 Vít Ondruch - 4.2.2-2 - Fix broken links to assets. * Mon May 23 2016 Vít Ondruch - 4.2.2-1 - Update to RDoc 4.2.2. * Thu Feb 04 2016 Fedora Release Engineering - 4.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 4.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jul 08 2014 Vít Ondruch - 4.1.1-2 - Add missing IRB dependency. * Mon Jul 07 2014 Vít Ondruch - 4.1.1-1 - Update to RDoc 4.1.1. * Sun Jun 08 2014 Fedora Release Engineering - 4.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 4.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 29 2013 Vít Ondruch - 4.0.1-1 - Update to RDoc 4.0.1. * Tue Mar 26 2013 Josef Stribny - 4.0.0-100 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 - Update to RDoc 4.0.0 * Wed Feb 06 2013 Josef Stribny - 3.12.1-2 - Encoding issue is still unresolved in upstream. * Wed Feb 06 2013 Josef Stribny - 3.12.1-1 - Update to version 3.12.1 * Thu Sep 06 2012 Vít Ondruch - 3.12-5 - Fix the location of Ruby documentation (rhbz#854418). * Sat Jul 21 2012 Fedora Release Engineering - 3.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Apr 02 2012 Vít Ondruch - 3.12-3 - Add missing obsolete (rhbz#809007). * Mon Feb 13 2012 Vít Ondruch - 3.12-2 - Add missing IRB dependency. * Tue Feb 07 2012 Vít Ondruch - 3.12-1 - Rebuilt for Ruby 1.9.3. - Updated to RDoc 3.12. * Sat Jan 14 2012 Fedora Release Engineering - 3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jul 20 2011 Mo Morsi - 3.8-2 - Fixes for fedora compliance * Mon Jan 10 2011 mo morsi - 3.8-1 - Initial package