copr: update gem2rpm package to the latest version

The old version

    [root@fedora ~]# rpm -qf /usr/bin/gem2rpm
    rubygem-gem2rpm-1.0.1-7.fc34.noarch

Didn't work and failed with

    /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `initialize': No such file or directory @ rb_sysopen - https://rubygems.org/api/v1/gems/bioroebe.json (Errno::ENOENT)
            from /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `open'
            from /usr/share/gems/gems/gem2rpm-1.0.1/bin/gem2rpm:55:in `<top (required)>'
            from /usr/bin/gem2rpm:23:in `load'
            from /usr/bin/gem2rpm:23:in `<main>'
This commit is contained in:
Jakub Kadlcik 2021-09-12 17:36:05 +02:00
parent 7a65a7fb82
commit 2c1cf601b1

View file

@ -162,3 +162,10 @@
success_msg: "Swap seems to be available for this builder"
when:
- prepare_base_image is not defined
# Make sure we have the latest version of the gem2rpm pacakge otherwise it may
# have problems fetching from rubygems.org and fail. This is a temporary
# workaround until we properly define the dependency on latest version in
# copr-rpmbuild package.
- name: Update gem2rpm package to the latest version
dnf: state=latest pkg=rubygem-gem2rpm