|
|
|
@ -1,36 +1,29 @@
|
|
|
|
|
%global gem_name pry
|
|
|
|
|
|
|
|
|
|
# Enable bootstrap until dependencies are in epel9
|
|
|
|
|
%global bootstrap 0
|
|
|
|
|
%global slop_version 3.4.0
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.13.1
|
|
|
|
|
Release: 7%{?dist}.1
|
|
|
|
|
Version: 0.14.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: An IRB alternative and runtime developer console
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://pryrepl.org
|
|
|
|
|
URL: http://pry.github.io
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
# git clone https://github.com/pry/pry.git && cd pry
|
|
|
|
|
# git archive -v -o pry-0.13.1-spec.tar.gz v0.13.1 spec/
|
|
|
|
|
# git archive -v -o pry-0.14.1-spec.tar.gz v0.14.1 spec/
|
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
|
|
# Fix spec which were testing invalid syntax which become valid in Ruby 3.0.
|
|
|
|
|
# https://github.com/pry/pry/pull/2170
|
|
|
|
|
Patch0: pry-0.13.1-Fix-broken-spec.patch
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
# These are for tests, disable until dependencies are in epel9
|
|
|
|
|
%if %{bootstrap}
|
|
|
|
|
BuildRequires: rubygem(bundler)
|
|
|
|
|
BuildRequires: rubygem(coderay) => 1.1.0
|
|
|
|
|
BuildRequires: rubygem(irb)
|
|
|
|
|
BuildRequires: rubygem(method_source) => 0.8.1
|
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
|
%endif
|
|
|
|
|
# editor specs fail if no editor is available (soft requirement)
|
|
|
|
|
BuildRequires: vi
|
|
|
|
|
BuildRequires: rubygem(irb)
|
|
|
|
|
# https://github.com/pry/pry/pull/1498
|
|
|
|
|
Provides: bundled(rubygem-slop) = 3.4.0
|
|
|
|
|
Provides: bundled(rubygem-slop) = %{slop_version}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -50,11 +43,6 @@ Documentation for %{name}.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
|
|
|
|
|
|
|
pushd %{_builddir}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
@ -76,9 +64,9 @@ cp -a .%{_bindir}/* \
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Disable tests until dependencies are in epel9
|
|
|
|
|
%if %{bootstrap}
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
[ `ruby -Ilib -rpry/slop -e "puts Pry::Slop::VERSION"` == '%{slop_version}' ]
|
|
|
|
|
|
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
|
|
|
|
|
|
|
|
# Rakefile is used by editor test.
|
|
|
|
@ -88,10 +76,8 @@ touch Rakefile
|
|
|
|
|
# https://github.com/pry/pry/blob/9d9ae4a0b0bd487bb41170c834b3fa417e161f23/spec/cli_spec.rb#L219
|
|
|
|
|
sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb
|
|
|
|
|
|
|
|
|
|
# The bundler is required just to make /spec/integration/bundler_spec.rb pass.
|
|
|
|
|
RUBYOPT=-rbundler rspec -rspec_helper spec
|
|
|
|
|
rspec -rspec_helper spec
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
@ -108,8 +94,21 @@ popd
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 06 2022 Troy Dawson <tdawson@redhat.com> - 0.13.1-7.1
|
|
|
|
|
- Disable test dependencies and tests, until they are in epel9
|
|
|
|
|
* Thu Sep 21 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.14.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 7 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.14.1-2
|
|
|
|
|
- Explicitly add BR: rubygem(irb) for %%check
|
|
|
|
|
|
|
|
|
|
* Thu Oct 06 2022 Vít Ondruch <vondruch@redhat.com> - 0.14.1-1
|
|
|
|
|
- Update to Pry 0.14.1.
|
|
|
|
|
Resolves: rhbz#1926203
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|