# Generated from rubygems-mirror-1.1.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name rubygems-mirror Name: rubygem-%{gem_name} Version: 1.3.0 Release: 11%{?dist} Summary: This is an update to the old `gem mirror` command License: MIT URL: https://github.com/rubygems/rubygems-mirror Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # https://github.com/rubygems/rubygems-mirror/commit/06b6bdcea2eb8175145c8b6efbeffa0008a0e1b3 Patch1: %{name}-1.3.0-remove-deprecated-gemspec-has_rdoc.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(minitest) BuildRequires: rubygem(builder) BuildRequires: rubygem(net-http-persistent) %if 0%{?fedora} >= 34 BuildRequires: rubygem(webrick) %endif BuildArch: noarch %description This is an update to the old `gem mirror` command. It uses net/http/persistent and threads to grab the mirror set a little faster than the original. Eventually it will replace `gem mirror` completely. Right now the API is not completely stable (it will change several times before release), however, I will maintain stability in master. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %autosetup -n %{gem_name}-%{version} -p1 # Allow net-http-persistent 4 # c.f. https://github.com/rubygems/rubygems-mirror/pull/52 %gemspec_remove_dep -g net-http-persistent %gemspec_add_dep -g net-http-persistent ">= 2.9" %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # Run the test suite %check pushd .%{gem_instdir} ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %{gem_libdir} %{?gem_plugin} %exclude %{gem_cache} %{gem_spec} # License is included in README file only # https://github.com/rubygems/rubygems-mirror/pull/42 %doc %{gem_instdir}/README.rdoc %exclude %{gem_instdir}/pkg %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/test %doc %{gem_instdir}/Manifest.txt %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.3.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.3.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Feb 20 2021 Mamoru TASAKA - 1.3.0-6 - Allow net-http-persistent >= 4.0 * Sat Feb 20 2021 Mamoru TASAKA - 1.3.0-5 - Ruby 3.0: add BR: rubygem(webrick) - Add upstream patch to remove warnings for deprecated has_rdoc option - add %%gem_plugin * Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 15 2020 Pavel Valena - 1.3.0-1 - Update to rubygems-mirror 1.3.0. * Fri Jul 26 2019 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 31 2018 Pavel Valena - 1.2.0-1 - Update to rubygems-mirror 1.2.0. * Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 11 2015 Pavel Valena - 1.1.0-1 - Initial package