Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-ruby-libvirt for 
openSUSE:Factory checked in at 2021-01-19 16:02:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby-libvirt (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-ruby-libvirt.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-ruby-libvirt"

Tue Jan 19 16:02:22 2021 rev:4 rq:864120 version:0.7.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-ruby-libvirt/rubygem-ruby-libvirt.changes    
    2018-02-22 15:01:08.228829069 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-ruby-libvirt.new.28504/rubygem-ruby-libvirt.changes
     2021-01-19 16:02:48.579435766 +0100
@@ -1,0 +2,10 @@
+Tue Jan  5 10:17:15 UTC 2021 - Dan ??erm??k <dcer...@suse.com>
+
+- Fix build failures with ruby 3.0
+  Add 0001-Fix-include-of-st.h-to-ruby-st.h.patch 
(https://gitlab.com/libvirt/libvirt-ruby/-/merge_requests/7)
+
+- Add correct SPDX license via gem2rpm.yml
+
+- Run spec cleaner on the spec
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-include-of-st.h-to-ruby-st.h.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-ruby-libvirt.spec ++++++
--- /var/tmp/diff_new_pack.eG7OoL/_old  2021-01-19 16:02:49.391436994 +0100
+++ /var/tmp/diff_new_pack.eG7OoL/_new  2021-01-19 16:02:49.395437000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-ruby-libvirt
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,43 +12,48 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define mod_name ruby-libvirt
+%define mod_full_name %{mod_name}-%{version}
 #
 # This file was generated with a gem2rpm.yml and not just plain gem2rpm.
 # All sections marked as MANUAL, license headers, summaries and descriptions
 # can be maintained in that file. Please consult this file before editing any
 # of those fields
 #
-
 Name:           rubygem-ruby-libvirt
 Version:        0.7.1
 Release:        0
-%define mod_name ruby-libvirt
-%define mod_full_name %{mod_name}-%{version}
+Summary:        Ruby bindings for LIBVIRT
+License:        LGPL-2.1-or-later
+Group:          Development/Languages/Ruby
+URL:            https://libvirt.org/ruby/
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
+Source1:        rubygem-ruby-libvirt-rpmlintrc
+Source2:        gem2rpm.yml
+BuildRequires:  %{rubydevel >= 1.8.1}
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  ruby-macros >= 5
 # MANUAL
 BuildRequires:  libvirt
 BuildRequires:  libvirt-devel
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
+# /MANUAL
+# MANUAL
+Patch0:         0001-Fix-include-of-st.h-to-ruby-st.h.patch
 # /MANUAL
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubydevel >= 1.8.1}
-BuildRequires:  %{rubygem gem2rpm}
-BuildRequires:  ruby-macros >= 5
-Url:            http://libvirt.org/ruby/
-Source:         https://rubygems.org/gems/%{mod_full_name}.gem
-Source1:        rubygem-ruby-libvirt-rpmlintrc
-Source2:        gem2rpm.yml
-Summary:        Ruby bindings for LIBVIRT
-License:        LGPL-2.0-only
-Group:          Development/Languages/Ruby
 
 %description
 Ruby bindings for libvirt.
 
 %prep
+%gem_unpack
+%patch0 -p1
+find -type f -print0 | xargs -0 touch -r %{SOURCE0}
+%{gem_build}
 
 %build
 
@@ -56,7 +61,7 @@
 %gem_install \
   --doc-files="COPYING NEWS README README.rdoc" \
   -f
-%gem_cleanup
+%{gem_cleanup}
 
 %gem_packages
 

++++++ 0001-Fix-include-of-st.h-to-ruby-st.h.patch ++++++
>From 9420b4a54a82c79033d0ab404b6cf04d3413f373 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dan.cer...@cgc-instruments.com>
Date: Tue, 5 Jan 2021 10:54:12 +0100
Subject: [PATCH] Fix include of st.h to ruby/st.h
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dan ??erm??k <dan.cer...@cgc-instruments.com>
---
 ext/libvirt/common.c | 2 +-
 ext/libvirt/domain.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/libvirt/common.c b/ext/libvirt/common.c
index cf7dd93..ca92088 100644
--- a/ext/libvirt/common.c
+++ b/ext/libvirt/common.c
@@ -24,7 +24,7 @@
 #endif
 #include <stdio.h>
 #include <ruby.h>
-#include <st.h>
+#include <ruby/st.h>
 #include <libvirt/libvirt.h>
 #include <libvirt/virterror.h>
 #include "common.h"
diff --git a/ext/libvirt/domain.c b/ext/libvirt/domain.c
index d665907..ecbbff6 100644
--- a/ext/libvirt/domain.c
+++ b/ext/libvirt/domain.c
@@ -23,7 +23,7 @@
 #include <unistd.h>
 #include <ruby.h>
 /* we need to include st.h since ruby 1.8 needs it for RHash */
-#include <st.h>
+#include <ruby/st.h>
 #include <libvirt/libvirt.h>
 #if HAVE_VIRDOMAINQEMUMONITORCOMMAND
 #include <libvirt/libvirt-qemu.h>
-- 
2.29.2

++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.eG7OoL/_old  2021-01-19 16:02:49.459437097 +0100
+++ /var/tmp/diff_new_pack.eG7OoL/_new  2021-01-19 16:02:49.463437103 +0100
@@ -1,4 +1,4 @@
-# ---
+---
 # ## used by gem2rpm
 # :summary: this is a custom summary
 # ## used by gem2rpm
@@ -7,7 +7,7 @@
 #
 #   it can be multiline
 # ## used by gem2rpm
-# :license: MIT or Ruby
+ :license: LGPL-2.1-or-later
 # ## used by gem2rpm and gem_packages
 # :version_suffix: -x_y
 # ## used by gem2rpm and gem_packages
@@ -18,13 +18,13 @@
  :preamble: |-
    BuildRequires:  libvirt
    BuildRequires:  libvirt-devel
-   BuildRequires:  pkg-config
+   BuildRequires:  pkgconfig
 #   BuildRequires: foobar
 #   Requires: foobar
 # ## used by gem2rpm
-# :patches:
-#   foo.patch: -p1
-#   bar.patch: 
+ :patches:
+   0001-Fix-include-of-st.h-to-ruby-st.h.patch: -p1
+#   bar.patch:
 # ## used by gem2rpm
  :sources:
    - rubygem-ruby-libvirt-rpmlintrc

Reply via email to