From c4cd79b0a142e14071de3e5beccd4ccf1533d983 Mon Sep 17 00:00:00 2001
From: jengelh <>
Date: Jan 24 2022 22:27:18 +0000
Subject: Update libvsgpt to version 20211115 / rev 3 via SR 948451


https://build.opensuse.org/request/show/948451
by user jengelh + dimstar_suse
- Enable multipython builds.

---

diff --git a/.files b/.files
index e2e5921..1685f98 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 9247f49..daa09bd 100644
--- a/.rev
+++ b/.rev
@@ -15,4 +15,12 @@
     <comment>- Update to release 20211115</comment>
     <requestid>933972</requestid>
   </revision>
+  <revision rev="3" vrev="2">
+    <srcmd5>b795a3ec0ecc82cca9b5891ce27d8e1f</srcmd5>
+    <version>20211115</version>
+    <time>1643062223</time>
+    <user>dimstar_suse</user>
+    <comment>- Enable multipython builds.</comment>
+    <requestid>948451</requestid>
+  </revision>
 </revisionlist>
diff --git a/libvsgpt.changes b/libvsgpt.changes
index 434bdae..1e17577 100644
--- a/libvsgpt.changes
+++ b/libvsgpt.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Jan 24 10:41:51 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
+
+- Enable multipython builds.
+
+-------------------------------------------------------------------
 Mon Nov 15 19:05:25 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
 
 - Update to release 20211115
diff --git a/libvsgpt.spec b/libvsgpt.spec
index fb7ec00..f49ac40 100644
--- a/libvsgpt.spec
+++ b/libvsgpt.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package libvsgpt
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,10 +28,12 @@ Source:         https://github.com/libyal/libvsgpt/releases/download/%version/li
 Source2:        https://github.com/libyal/libvsgpt/releases/download/%version/libvsgpt-experimental-%version.tar.gz.asc
 Source3:        %name.keyring
 Patch1:         system-libs.patch
+BuildRequires:  %{python_module devel}
 BuildRequires:  c_compiler
 BuildRequires:  gettext-tools >= 0.18.1
 BuildRequires:  libtool
 BuildRequires:  pkg-config
+BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(libbfio) >= 20201229
 BuildRequires:  pkgconfig(libcdata) >= 20200509
 BuildRequires:  pkgconfig(libcerror) >= 20201121
@@ -45,7 +47,7 @@ BuildRequires:  pkgconfig(libfcache) >= 20200708
 BuildRequires:  pkgconfig(libfdata) >= 20211023
 BuildRequires:  pkgconfig(libfguid) >= 20180724
 BuildRequires:  pkgconfig(libuna) >= 20210801
-BuildRequires:  pkgconfig(python3)
+%python_subpackages
 
 %description
 libvsgpt is a library to access the GUID Partition Table (GPT)
@@ -83,25 +85,24 @@ Group:          Productivity/File utilities
 This subpackage contains the utility programs from libvsgpt to
 inspect GUID partition tables.
 
-%package -n python3-%name
-Summary:        Python 3 bindings for libvsgpt
-Group:          Development/Languages/Python
-
-%description -n python3-%name
-Python 3 bindings for libvsgpt.
-
 %prep
 %autosetup -p1
 
 %build
 autoreconf -fi
-%configure --disable-static --enable-wide-character-type --enable-python3
+# OOT builds are presently broken, so we have to install
+# within each python iteration now, not in %%install.
+%{python_expand #
+%configure --disable-static --enable-wide-character-type \
+	--enable-python PYTHON_VERSION="%{$python_bin_suffix}"
 %make_build
+%make_install DESTDIR="%_builddir/rt"
+%make_build clean
+}
 
 %install
-%make_install
-find "%buildroot" -type f -name "*.la" -delete -print
-
+mv %_builddir/rt/* %buildroot/
+find %{buildroot} -type f -name "*.la" -delete -print
 %post   -n %lname -p /sbin/ldconfig
 %postun -n %lname -p /sbin/ldconfig
 
@@ -109,17 +110,17 @@ find "%buildroot" -type f -name "*.la" -delete -print
 %license COPYING*
 %_libdir/libvsgpt.so.*
 
-%files devel
+%files -n %name-devel
 %_includedir/*
 %_libdir/*.so
 %_libdir/pkgconfig/*.pc
 %_mandir/man3/*.3*
 
-%files tools
+%files -n %name-tools
 %_bindir/vsgpt*
 %_mandir/man1/vsgpt*
 
-%files -n python3-%name
-%python3_sitearch/*.so
+%files %python_files
+%python_sitearch/*.so
 
 %changelog