## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global gem_name jekyll-toc Name: rubygem-%{gem_name} Version: 0.19.0 Release: %autorelease Summary: Jekyll Table of Contents plugin License: MIT URL: https://github.com/toshimaru/jekyll-toc Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{url}/archive/v%{version}/%{gem_name}-%{version}.tar.gz # Patch to disable coverage reporting Patch0: 00-disable-simplecov.patch BuildRequires: git-core BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.4.0 BuildRequires: rubygem(bundler) BuildRequires: rubygem(jekyll) >= 3.8 BuildRequires: (rubygem(minitest) >= 5.0 with rubygem(minitest) < 6) BuildRequires: (rubygem(nokogiri) >= 1.10 with rubygem(nokogiri) < 2) BuildRequires: rubygem(rake) BuildArch: noarch %description A liquid filter plugin for Jekyll which generates a table of contents. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %autosetup -N -n %{gem_name}-%{version} # extract test files not shipped with the gem mkdir upstream && pushd upstream tar -xzvf %{SOURCE1} mv %{gem_name}-%{version}/test ../test popd && rm -r upstream %autopatch -p1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check ruby -I"lib:test" -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' %files %license %{gem_instdir}/LICENSE.md %dir %{gem_instdir} %{gem_instdir}/Appraisals %{gem_instdir}/gemfiles %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %exclude %{gem_instdir}/.rubocop.yml %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %{gem_instdir}/jekyll-toc.gemspec %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon May 20 2024 Otto Liljalaakso - 0.19.0-1 - Update to 0.19.0 (rhbz#2281472) * Fri Jan 26 2024 Fedora Release Engineering - 0.18.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.18.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jan 29 2023 Otto Liljalaakso - 0.18.0-1 - Update to 0.18.0 (rhbz#2162995) * Fri Jan 20 2023 Fedora Release Engineering - 0.17.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 29 2022 Mamoru TASAKA - 0.17.1-6 - Apply upstream PR for test suite wrt ruby3.2 Struct initializer behavior change * Sat Jul 23 2022 Fedora Release Engineering - 0.17.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.17.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 17 2021 Pavel Valena - 0.17.1-1 - Update to jekyll-toc 0.17.1. Resolves: rhbz#1960898 * Mon Feb 15 2021 Otto Urpelainen - 0.17.0-1 - Update to 0.17.0 (#1920752) * Wed Jan 27 2021 Fedora Release Engineering - 0.16.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 16 2021 Pavel Valena - 0.16.1-1 - Update to jekyll-toc 0.16.1. Resolves: rhbz#1909221 * Sun Nov 15 2020 Fabio Valentini - 0.15.0-1 - Update to version 0.15.0. - Fixes RHBZ#1891291 * Wed Jul 29 2020 Fedora Release Engineering - 0.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 24 2020 Fabio Valentini - 0.14.0-1 - Update to version 0.14.0. * Sun Feb 02 2020 Fabio Valentini - 0.13.1-1 - Update to version 0.13.1. * Fri Jan 31 2020 Fabio Valentini - 0.12.2-3 - Add BR: rubygem(racc) to fix FTBFS issue. * Thu Jan 30 2020 Fedora Release Engineering - 0.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Aug 15 2019 Fabio Valentini - 0.12.2-1 - Update to version 0.12.2. * Fri Jul 26 2019 Fedora Release Engineering - 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 15 2019 Fabio Valentini - 0.12.1-1 - Update to version 0.12.1. * Sat Apr 06 2019 Fabio Valentini - 0.12.0-1 - Update to version 0.12.0. * Sun Mar 24 2019 Fabio Valentini - 0.11.0-1 - Update to version 0.11.0. * Sat Feb 02 2019 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 30 2018 Fabio Valentini - 0.9.1-1 - Update to version 0.9.1. * Wed Oct 31 2018 Fabio Valentini - 0.9.0-1 - Update to version 0.9.0. * Sat Oct 20 2018 Fabio Valentini - 0.8.0-1 - Update to version 0.8.0. * Mon Oct 01 2018 Fabio Valentini - 0.7.1-1 - Initial package ## END: Generated by rpmautospec