%global gem_name rdtool Name: rubygem-%{gem_name} Version: 0.6.38 Release: 24%{?dist} Summary: Formatter for RD # SPDX confirmed # From README.rd # GPL-2.0-or-later OR Ruby: Overall # GPL-2.0-or-later: utils/rd-mode.el # LGPL-2.0: setup.rb (not included in the binary rpm) License: GPL-2.0-or-later OR Ruby URL: https://github.com/uwabami/rdtool Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(minitest) BuildRequires: rubygem(test-unit) BuildRequires: rubygem(racc) Requires: rubygem(racc) Requires: ruby(release) Requires: ruby(rubygems) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version}-%{release} %description RD is multipurpose documentation format created for documentating Ruby and output of Ruby world. You can embed RD into Ruby script. And RD have neat syntax which help you to read document in Ruby script. On the other hand, RD have a feature for class reference. %package doc Summary: Documentation for %{name} # utils/rd-mode.el is under GPLv2+ License: (GPL-2.0-or-later OR Ruby) AND GPL-2.0-or-later Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec . # rename rdswap.rb mv bin/rdswap{.rb,} sed -i -e "s|rdswap\.rb|rdswap|" %{gem_name}-%{version}.gemspec # shebang sed -i \ -e '\@/usr/bin/env@d' \ lib/rd/rd2html-ext-opt.rb sed -i \ -e 's|/usr/bin/ruby[^ ][^ ]*|%{_bindir}/ruby|' \ bin/* %build gem build %{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # Cleanup pushd %{buildroot}%{gem_instdir} rm -rf \ Gemfile \ Rakefile \ setup.rb \ %{gem_name}.gemspec \ test/ \ %{nil} rm -f lib/rd/pre-setup.rb find lib/rd -type f -print0 | xargs -0 chmod ugo-x popd %check pushd .%{gem_instdir} ruby -Ilib:test:. -e 'gem "minitest" ; Dir.glob("test/test-*.rb").each {|f| require f}' popd %files %dir %{gem_instdir} %license %{gem_instdir}/COPYING.txt %exclude %{gem_instdir}/LGPL-2.1 %license %{gem_instdir}/LICENSE.txt %doc %{gem_instdir}/[HM-Z]* %{_bindir}/rd2 %{_bindir}/rdswap %{gem_instdir}/bin %{gem_libdir}/ %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/doc/ %{gem_instdir}/utils/ %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.6.38-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.6.38-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.6.38-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Mamoru TASAKA - 0.6.38-21 - Modernize spec file - Use minitest5 instead of minitest4 - SPDX migration * Fri Jan 20 2023 Fedora Release Engineering - 0.6.38-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.6.38-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.6.38-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.38-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.6.38-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.6.38-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Mamoru TASAKA - 0.6.38-14 - R,BR rubygem(racc) * Thu Jan 30 2020 Fedora Release Engineering - 0.6.38-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.6.38-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.6.38-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.6.38-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.6.38-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.6.38-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.6.38-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.6.38-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 23 2015 Mamoru TASAKA - 0.6.38-6 - BR: rubygem(test-unit) * Thu Jun 18 2015 Fedora Release Engineering - 0.6.38-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 12 2014 Mamoru TASAKA - 0.6.38-4 - Force to use minitest ver4 for now * Sun Jun 08 2014 Fedora Release Engineering - 0.6.38-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Nov 25 2013 Mamoru TASAKA - 0.6.38-2 - Incorporate comments on review request (bug 1031316) * Thu Nov 14 2013 Mamoru TASAKA - 0.6.38-1 - Initial package