## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 Name: rubygem-%{gem_name} Summary: Simple, blog aware, static site generator Version: 4.3.4 Release: %autorelease License: MIT URL: https://github.com/jekyll/jekyll Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{url}/archive/v%{version}/%{gem_name}-%{version}.tar.gz Patch: 0000-jekyll-commands-remove-bundle-install-step-for-new.patch Patch: 0001-test-helper-disable-simplecov-and-minitest-plugins.patch Patch: 0002-test-utils-remove-internet-connectivity-test.patch Patch: 0003-test-disable-tests-requiring-the-test-theme.patch Patch: 0004-tests-related_posts-disable-tests-requiring-classifi.patch Patch: 0005-test-coffeescript-disable-tests-requiring-coffeescri.patch Patch: 0006-test-plugin_manager-disable-tests-requiring-gemspec-.patch Patch: 0007-Revert-tests-to-expect-jekyll-sass-converter-2.patch # Use `shoulda-context` in place of `shoulda` to reduce dependency chain. # https://github.com/jekyll/jekyll/pull/9441 Patch: 0009-Test-suite-uses-shoulda-context-only-.patch # https://github.com/jekyll/jekyll/issues/9721 # Workaround for ruby3.4 Hash#inspect formatting change on testsuite Patch: 0010-issue9721-ruby34-formatting-change.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.4.0 BuildRequires: help2man # gems needed for running the test suite BuildRequires: rubygem(addressable) >= 2.4 BuildRequires: rubygem(bundler) BuildRequires: rubygem(colorator) BuildRequires: rubygem(csv) BuildRequires: rubygem(em-websocket) BuildRequires: rubygem(httpclient) BuildRequires: rubygem(i18n) BuildRequires: rubygem(jekyll-sass-converter) >= 2.0.0 BuildRequires: rubygem(kramdown) >= 2.0.0 BuildRequires: rubygem(kramdown-parser-gfm) BuildRequires: rubygem(kramdown-syntax-coderay) BuildRequires: rubygem(liquid) >= 4.0 BuildRequires: rubygem(mercenary) BuildRequires: rubygem(minitest) BuildRequires: rubygem(nokogiri) BuildRequires: rubygem(pathutil) BuildRequires: rubygem(racc) BuildRequires: rubygem(rouge) BuildRequires: rubygem(rspec-mocks) BuildRequires: rubygem(safe_yaml) BuildRequires: rubygem(shoulda-context) BuildRequires: rubygem(terminal-table) BuildRequires: rubygem(tomlrb) >= 2.0.1 BuildRequires: rubygem(tzinfo) # https://fedoraproject.org/wiki/Changes/AllowRemovalOfTzdata BuildRequires: tzdata BuildRequires: rubygem(webrick) # Additional gems required to run jekyll: Requires: rubygem(bigdecimal) Requires: rubygem(bundler) Requires: rubygem(csv) Requires: rubygem(json) # Additional gems needed to actually deploy jekyll with default settings: Recommends: rubygem(jekyll-feed) Recommends: rubygem(jekyll-seo-tag) Recommends: rubygem(minima) # Provide "jekyll", since this package ships a binary Provides: %{gem_name} = %{version}-%{release} BuildArch: noarch %description Jekyll is a simple, blog-aware, static site generator. You create your content as text files (Markdown), and organize them into folders. Then, you build the shell of your site using Liquid-enhanced HTML templates. Jekyll automatically stitches the content and templates together, generating a website made entirely of static assets, suitable for uploading to any server. %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}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x # Build man page from "jekyll --help" output export GEM_PATH="%{buildroot}/%{gem_dir}:%{gem_dir}" mkdir -p %{buildroot}%{_mandir}/man1 help2man -N -s1 -o %{buildroot}%{_mandir}/man1/%{gem_name}.1 \ %{buildroot}/usr/share/gems/gems/%{gem_name}-%{version}/exe/%{gem_name} %check # Tests only pass when timezone offset is zero. # Related: https://github.com/jekyll/jekyll/pull/9168 TZ=UTC ruby -I"lib:test" -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' %files %license %{gem_instdir}/LICENSE %{_bindir}/jekyll %{_mandir}/man1/jekyll.1* %dir %{gem_instdir} %{gem_instdir}/exe/ %{gem_libdir} %{gem_spec} %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/rubocop %exclude %{gem_cache} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.markdown %changelog ## START: Generated by rpmautospec * Fri Nov 29 2024 Mamoru TASAKA - 4.3.4-3 - Workaround for ruby3.4 Hash inspect formatting change * Sun Nov 10 2024 Mamoru TASAKA - 4.3.4-2 - Add rubygem(csv) requirement for ruby34 explicitly * Mon Sep 16 2024 Otto Liljalaakso - 4.3.4-1 - Update to 4.3.4 (rhbz#2312575) * Fri Jul 19 2024 Fedora Release Engineering - 4.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 4.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 27 2023 Otto Liljalaakso - 4.3.3-1 - Update to 4.3.3 (rhbz#2256015) * Mon Sep 25 2023 Mamoru TASAKA - 4.3.2-4 - Add tzdata for BuildRequires for %%%%check - Backport upstream patch for ruby33 Logger class change * Tue Sep 05 2023 Vít Ondruch - 4.3.2-3 - Use `shoudla-context` in place of `shoulda`. * Fri Jul 21 2023 Fedora Release Engineering - 4.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jan 30 2023 Otto Liljalaakso - 4.3.2-1 - Update to 4.3.2 (rhbz#2162783) * Fri Jan 20 2023 Fedora Release Engineering - 4.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 29 2022 Mamoru TASAKA - 4.3.1-2 - Apply upstream PR for test suite wrt ruby3.2 Struct initializer behavior change * Wed Oct 26 2022 Otto Liljalaakso - 4.3.1-1 - Update to 4.3.1 (rhbz#2137968) * Tue Oct 25 2022 Otto Liljalaakso - 4.3.0-1 - Update to 4.3.0 (rhbz#2136590) * Sun Oct 09 2022 Mamoru TASAKA - 4.2.2-4 - Relax rouge dependency * Sat Jul 23 2022 Fedora Release Engineering - 4.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 04 2022 Otto Urpelainen - 4.2.2-1 - Update to 4.2.2 - Resolves rhbz#2060372 * Fri Jan 21 2022 Fedora Release Engineering - 4.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Oct 19 2021 Otto Urpelainen - 4.2.1-1 - Update to 4.2.1 - Resolves rhbz#2008138 * Tue Jul 27 2021 Fedora Release Engineering - 4.2.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed May 26 2021 Otto Urpelainen - 4.2.0-3 - Remove rubygem-mercenary version requirement patch, not needed anymore * Thu Feb 18 2021 Otto Urpelainen - 4.2.0-2 - Allow terminal-table 1.8.0 * Mon Feb 15 2021 Otto Urpelainen - 4.2.0-1 - Update to version 4.2.0. * Wed Jan 27 2021 Fedora Release Engineering - 4.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 4.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jul 04 2020 Fabio Valentini - 4.1.1-1 - Update to version 4.1.1. * Thu May 28 2020 Fabio Valentini - 4.1.0-2 - Relax mercenary runtime dependency. * Wed May 27 2020 Fabio Valentini - 4.1.0-1 - Update to version 4.1.0. * Fri May 15 2020 Fabio Valentini - 4.0.1-1 - Update to version 4.0.1. * Fri Jan 31 2020 Fabio Valentini - 4.0.0-3 - Add BR: rubygem(racc) to fix FTBFS issue. * Thu Jan 30 2020 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Sep 13 2019 Fabio Valentini - 4.0.0-1 - Update to version 4.0.0. * Fri Jul 26 2019 Fedora Release Engineering - 3.8.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 08 2019 Fabio Valentini - 3.8.6-1 - Update to version 3.8.6. - Ignore broken tests for rouge 2, we have rouge 3 in fedora. * Sat Feb 02 2019 Fedora Release Engineering - 3.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 05 2018 Fabio Valentini - 3.8.5-1 - Update to version 3.8.5. * Wed Sep 19 2018 Fabio Valentini - 3.8.4-1 - Update to version 3.8.4. * Sat Jul 14 2018 Fedora Release Engineering - 3.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 11 2018 Fabio Valentini - 3.8.3-1 - Update to version 3.8.3. * Tue Jun 05 2018 Fabio Valentini - 3.8.2-3 - Fix kramdown test issues (patch: Vít Ondruch). - Patch test suite to remove tests reliant on upstream Gemfile and .gemspec. - Don't ignore test results anymore. * Tue Jun 05 2018 Fabio Valentini - 3.8.2-2 - Drop code coverage and minitest plugins (patches: Vít Ondruch). - Patch test suite to remove broken tests and tests for optional functionality. * Mon Jun 04 2018 Fabio Valentini - 3.8.2-1 - Update to version 3.8.2. * Fri Feb 09 2018 Fedora Release Engineering - 3.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Apr 09 2017 Björn Esser - 3.2.1-3 - Add explicit Requires: rubygem(json) * Sat Feb 11 2017 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Aug 24 2016 Björn Esser - 3.2.1-1 - initial import (#1368851) * Sun Aug 21 2016 Björn Esser - 3.2.1-0.1 - initial rpm-release (#1368851) ## END: Generated by rpmautospec