## 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 # Generated from git-1.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name git Name: rubygem-%{gem_name} Version: 2.3.0 Release: %autorelease Summary: Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary License: MIT URL: http://github.com/schacon/ruby-git Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # SOURCE1 contains the upstream tag of the project from github # in particular this includes the tests and bin directory which was not # included in the gemfile. Source1: https://github.com/ruby-git/ruby-git/archive/v%{version}/ruby-git-%{version}.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9 BuildRequires: rubygem(test-unit) BuildRequires: git-core BuildRequires: rubygem(mocha) BuildRequires: rubygem(activesupport) BuildRequires: rubygem(rchardet) BuildRequires: rubygem(process_executer) BuildRequires: rubygem(addressable) BuildArch: noarch Requires: git-core %description Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} # unpack only the test files from SOURCE1. tar zxf %{SOURCE1} ruby-git-%{version}/tests --strip-components 1 tar zxf %{SOURCE1} ruby-git-%{version}/bin --strip-components 1 # Some tests require rubygem-minitar - skip them. # https://bugzilla.redhat.com/show_bug.cgi?id=2181580 rm -f tests/units/test_archive.rb sed -i 's/^.*minitar.*//' tests/test_helper.rb # Requires writing to home directory with a generated gpg key ignore rm -f tests/units/test_signed_commits.rb %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check # The following polutes home directoy so need to find a better way # git fails fatally if it cannot guess an email adress # as is the case inside mock. git config --global init.defaultBranch main git config --global user.email "you@example.com" git config --global user.name "Your Name" ruby -Ilib -I. -Itests -e 'Dir.glob "tests/**/*.rb", &method(:require)' %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_instdir}/MAINTAINERS.md %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %exclude %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.yardopts %exclude %{gem_instdir}/Gemfile %exclude %{gem_instdir}/RELEASING.md %exclude %{gem_instdir}/Rakefile %exclude %{gem_instdir}/git.gemspec %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md %changelog ## START: Generated by rpmautospec * Sat Sep 07 2024 Steve Traylen - 2.3.0-2 - Re-enable most of test suite. * Sat Sep 07 2024 Steve Traylen - 2.3.0-1 - Update to 2.3.0 rhbz#2308068 * Fri Jul 19 2024 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 22 2024 Steve Traylen - 2.1.1-1 - Upstream 2.1.2 rhbz#2282235 * Fri Jan 26 2024 Fedora Release Engineering - 1.19.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.19.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 15 2024 Steve Traylen - 1.19.1-1 - Up to 1.19-1 rhbz#2256163 * Fri Jul 21 2023 Fedora Release Engineering - 1.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Apr 13 2023 Steve Traylen - 1.18.0-1 - Up to 1.18.0 * Wed Mar 15 2023 Steve Traylen - 1.17.2-1 - Up to 1.17.2. * Thu Mar 2 2023 Steve Traylen - 1.15.0-1 - Up to 1.15.0. * Fri Jan 20 2023 Fedora Release Engineering - 1.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jan 6 2023 Steve Traylen - 1.13.0-1 - Up to 1.13.0. * Sun Aug 28 2022 Steve Traylen - 1.12.0-1 - Up to 1.12.0. * Sat Jul 23 2022 Fedora Release Engineering - 1.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri May 13 2022 Steve Traylen - 1.11.0-1 - Up to 1.11.0. * Thu Jan 27 2022 Steve Traylen - 1.10.2-1 - Up to 1.10.2. * Fri Jan 21 2022 Fedora Release Engineering - 1.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Oct 22 2021 Steve Traylen - 1.9.1-1 - Up to 1.9.1. * Fri Jul 23 2021 Fedora Release Engineering - 1.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Mar 8 2021 Steve Traylen - 1.8.1-1 - Up to 1.8.1. * Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Aug 21 2020 Steve Traylen - 1.7.0-1 - Up to 1.5.0. * Wed Jul 29 2020 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 15 2019 Steve Traylen - 1.5.0-2 - Install and run unit tests. * Thu Nov 14 2019 Steve Traylen - 1.5.0-1 - Up to 1.5.0. * Fri Jul 26 2019 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 16 2018 Steve Traylen - 1.4.0-1 - Up to 1.4.0. * Fri Feb 09 2018 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 03 2017 Steve Traylen - 1.3.0-1 - Regenerate modern spec file. - Add dependency on git-core rhbz#1489845 - Up to 1.3.0 * Thu Jul 27 2017 Fedora Release Engineering - 1.2.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.2.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.2.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.2.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 20 2013 Josef Stribny - 1.2.5-7 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.2.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.2.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 02 2012 Vít Ondruch - 1.2.5-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 1.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 22 2009 Jeroen van Meeuwen - 1.2.5-1 - New upstream version * Wed Oct 14 2009 Jeroen van Meeuwen - 1.2.4-1 - New upstream version * Wed Feb 25 2009 Fedora Release Engineering - 1.0.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 02 2008 Jeroen van Meeuwen - 1.0.7-4 - Fix %%doc * Mon Sep 08 2008 Jeroen van Meeuwen - 1.0.7-3 - Add ruby(abi) = 1.8 requires (#459883, tibbs) * Sun Sep 07 2008 Jeroen van Meeuwen - 1.0.7-2 - Fix up comments from review (#459883, JonRob) * Sat Aug 23 2008 Jeroen van Meeuwen - 1.0.7-1 - Initial package for review ## END: Generated by rpmautospec