## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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-asciidoc Name: rubygem-%{gem_name} Version: 3.0.1 Release: %autorelease Summary: Jekyll plugin for using AsciiDoc sources with Asciidoctor License: MIT URL: https://github.com/asciidoctor/jekyll-asciidoc Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{url}/archive/v%g{version}/%{gem_name}-%{version}.tar.gz Patch0: 0001-Disable-tests-requiring-pygments.rb.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # Test dependencies BuildRequires: rubygem(asciidoctor) BuildRequires: rubygem(jekyll) BuildRequires: rubygem(rspec) BuildArch: noarch %description A Jekyll plugin that converts the AsciiDoc source files in your site to HTML pages using Asciidoctor. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep # Some patches are applied to test files, # which are only extracted in the following step. %autosetup -n %{gem_name}-%{version} -p1 -N %autopatch -p1 -m1 # extract test files not shipped with the gem mkdir upstream && pushd upstream tar -xzvf %{SOURCE1} mv %{gem_name}-%{version}/spec ../spec popd && rm -r upstream patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f < %{PATCH0} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check rspec spec %files %license %{gem_instdir}/LICENSE %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.adoc %doc %{gem_instdir}/README.adoc %doc %{gem_instdir}/jekyll-asciidoc.gemspec %exclude %{gem_instdir}/.yardopts %{gem_instdir}/Gemfile %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 13 2023 Otto Liljalaakso - 3.0.1-1 - Update to 3.0.1 (rhbz#2248124) * Fri Jul 21 2023 Fedora Release Engineering - 3.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 3.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 3.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Sep 13 2019 Fabio Valentini - 3.0.0-1 - Update to version 3.0.0. - Temporarily drop test suite. * Fri Jul 26 2019 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 13 2018 Fabio Valentini - 2.1.1-1 - Update to version 2.1.1. * Mon Oct 01 2018 Fabio Valentini - 2.1.0-1 - Initial package ## END: Generated by rpmautospec