Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created January 24, 2024 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/7a53780c182ee74c48d621dc0910c25c to your computer and use it in GitHub Desktop.
Save pvalena/7a53780c182ee74c48d621dc0910c25c to your computer and use it in GitHub Desktop.
--> Please check the gem compare output bellow: !
grep: warning: stray \ before :
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
Compared versions: ["2.3.2", "3.2.7"]
DIFFERENT homepage:
2.3.2: https://www.chef.io/
3.2.7: https://github.com/chef/mixlib-shellout
DIFFERENT licenses:
2.3.2: []
3.2.7: ["Apache-2.0"]
DIFFERENT required_ruby_version:
2.3.2: >= 2.2
3.2.7: >= 2.5
DIFFERENT files:
2.3.2->3.2.7:
* Deleted:
Gemfile
README.md
Rakefile
mixlib-shellout-windows.gemspec
mixlib-shellout.gemspec
DIFFERENT extra_rdoc_files:
2.3.2->3.2.7:
* Deleted:
README.md
LICENSE
DIFFERENT runtime dependencies:
2.3.2->3.2.7:
* Added:
chef-utils [">= 0"] (runtime)
DIFFERENT development dependencies:
2.3.2->3.2.7:
* Deleted:
rspec ["~> 3.0"] (development)
chefstyle [">= 0"] (development)
DIFFERENT Gemfile dependencies
2.3.2->3.2.7:
* Deleted
rspec_junit_formatter [">= 0"]
rake [">= 0"]
pry [">= 0"]
pry-byebug [">= 0"]
pry-stack_explorer [">= 0"]
rb-readline [">= 0"]
commit 4d8d30f27dc7e8e33d0e7f87cbd48eddd680f512
Author: Pavel Valena <pvalena@redhat.com>
Date: Sat Jan 16 14:15:21 2021 +0100
Update to mixlib-shellout 3.2.7.
Also enhance .spec and .gitignore files.
Resolves: rhbz#1607655
diff --git a/.gitignore b/.gitignore
index 5037a85..2e71415 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,2 @@
-/mixlib-shellout-1.1.0.gem
-/rubygem-mixlib-shellout-1.1.0-specs.tgz
-/mixlib-shellout-1.2.0.gem
-/rubygem-mixlib-shellout-1.2.0-specs.tgz
-/mixlib-shellout-1.3.0.gem
-/rubygem-mixlib-shellout-1.3.0-specs.tgz
-/mixlib-shellout-1.4.0.gem
-/rubygem-mixlib-shellout-1.4.0-specs.tgz
-/mixlib-shellout-2.0.1.gem
-/rubygem-mixlib-shellout-2.0.1-specs.tgz
-/mixlib-shellout-2.3.2.gem
-/rubygem-mixlib-shellout-2.3.2-specs.tgz
+/mixlib-shellout-*.gem
+/rubygem-mixlib-shellout-*-specs.txz
diff --git a/rubygem-mixlib-shellout.spec b/rubygem-mixlib-shellout.spec
index b3e104e..f539c97 100644
--- a/rubygem-mixlib-shellout.spec
+++ b/rubygem-mixlib-shellout.spec
@@ -1,49 +1,25 @@
# Generated from mixlib-shellout-1.0.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name mixlib-shellout
-# EPEL6 lacks rubygems-devel package that provides these macros
-%if %{?el6}0
-%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
-%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
-%global gem_libdir %{gem_instdir}/lib
-%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
-%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
-%endif
-
-%if %{?el6}0 || %{?fc16}0
-%global rubyabi 1.8
-%else
-%global rubyabi 1.9.1
-%endif
Summary: Run external commands on Unix or Windows
Name: rubygem-%{gem_name}
-Version: 2.3.2
-Release: 13%{?dist}
+Version: 3.2.7
+Release: 1%{?dist}
License: ASL 2.0
URL: https://github.com/chef/mixlib-shellout
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Tests for this package are not in the gem. To update:
-# git clone https://github.com/chef/mixlib-shellout.git && cd mixlib-shellout
-# git checkout 2.0.1
-# tar czvf rubygem-mixlib-shellout-2.0.1-specs.tgz spec/
-Source1: rubygem-%{gem_name}-%{version}-specs.tgz
+# git clone --no-checkout https://github.com/chef/mixlib-shellout.git
+# git -C mixlib-shellout archive -v -o rubygem-mixlib-shellout-3.2.7-specs.txz v3.2.7 spec/
+Source1: rubygem-%{gem_name}-%{version}-specs.txz
-%if 0%{?fedora} >= 19
-Requires: ruby(release)
BuildRequires: ruby(release)
-%else
-Requires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby(abi) = %{rubyabi}
-%endif
-
-Requires: ruby(rubygems)
BuildRequires: ruby(rubygems)
-%{!?el6:BuildRequires: rubygem(rspec)}
-%{!?el6:BuildRequires: rubygems-devel}
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(chef-utils)
+BuildRequires: rubygems-devel
BuildRequires: procps
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
Run external commands on Unix or Windows
@@ -59,13 +35,7 @@ Documentation for %{name}
%prep
%setup -q -c -T
-%if 0%{?fedora} >= 19
%gem_install -n %{SOURCE0}
-%else
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
- --force %{SOURCE0}
-%endif
%build
@@ -76,27 +46,28 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
-tar zxvf %{SOURCE1}
+tar xavf %{SOURCE1}
# One of the tests involves a fork && sleep 10 that may not finish before mock
-rspec && sleep 10
+rspec
+sleep 2
popd
%files
-%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/LICENSE
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
-%exclude %{gem_instdir}/%{gem_name}.gemspec
-%exclude %{gem_instdir}/%{gem_name}-windows.gemspec
%files doc
%doc %{gem_docdir}
-%{gem_instdir}/Gemfile
-%{gem_instdir}/Rakefile
+
%changelog
+* Thu Jan 11 2024 Pavel Valena <pvalena@redhat.com> - 3.2.7-1
+- Update to mixlib-shellout 3.2.7.
+ Resolves: rhbz#1607655
+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/sources b/sources
index 8efb21a..48d2e5f 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (mixlib-shellout-2.3.2.gem) = c112b059afdfcd5074a2e85cefface0bfa29970e30754187ef4d5392df53d268f3b82c0adc1bc0c8c5d571bb4baa717a9edd463786f85ad295069299c3ffb79d
-SHA512 (rubygem-mixlib-shellout-2.3.2-specs.tgz) = 39e569df88e0327f393d0f397a736a63394e65876d80832480c181cb94cf4d13bb8670e5a4580d656856a27a50aea7abb1a40e19325e02d0cfc43d71504f6fff
+SHA512 (mixlib-shellout-3.2.7.gem) = 30fb463bb0e580904dad9efd546918b9e228439daed3f8da955679e5c9d8b75069b5d6d1ac8991c72550261fcb87ce7b499f7845727592ecec376df3733a7899
+SHA512 (rubygem-mixlib-shellout-3.2.7-specs.txz) = c6b4aa6df2b044fb4e56b6a99b991ff7659b762b750c24f31892a560134dc6ccd39f6bf1e125601575f1488857418812f85534783bd97e3bc2b39e99674fc8c8
On branch rebase
Your branch is up to date with 'pvalena/rebase'.
nothing to commit (use -u to show untracked files)
Everything up-to-date
branch 'rebase' set up to track 'pvalena/rebase'.
> Run copr build.
+ scripts/pkgs/cr-build.sh -c -t 30m rubygems
Created builds: 6946849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment