From 418c7bcfbd2da81ea2ef7be59da92777be7bce8a63b68661320849710f855039 Mon Sep 17 00:00:00 2001
From: Greg Freemyer <Greg.Freemyer@gmail.com>
Date: Sat, 26 Jun 2021 11:02:59 +0000
Subject: [PATCH] Accepting request 902504 from
 home:jengelh:branches:security:forensics

- Drop python2 module build.

OBS-URL: https://build.opensuse.org/request/show/902504
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfwsi?expand=0&rev=19
---
 libfwsi.changes |  5 +++++
 libfwsi.spec    | 18 +-----------------
 2 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/libfwsi.changes b/libfwsi.changes
index 29e8c78..6b5367d 100644
--- a/libfwsi.changes
+++ b/libfwsi.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sat Jun 26 09:59:03 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
+
+- Drop python2 module build.
+
 -------------------------------------------------------------------
 Thu May 13 11:38:39 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
 
diff --git a/libfwsi.spec b/libfwsi.spec
index 1e2ec58..df87134 100644
--- a/libfwsi.spec
+++ b/libfwsi.spec
@@ -68,18 +68,6 @@ Library to access the Windows Shell Item format for the libyal family of librari
 This subpackage contains libraries and header files for developing
 applications that want to make use of libfwsi.
 
-%package -n python2-%{name}
-Summary:        Python2 bindings for libfwsi
-License:        LGPL-3.0-or-later
-Group:          Development/Libraries/Python
-Requires:       %{lname} = %{version}
-BuildRequires:  pkgconfig(python2)
-Obsoletes:      pyfwsi <= 20191221
-Obsoletes:      python-%{name} <= 20191221
-
-%description -n python2-%name
-Python2 bindings for libfwsi, a library to access Windows Shell Items.
-
 %package -n python3-%{name}
 Summary:        Python bindings for libfwsi
 License:        LGPL-3.0-or-later
@@ -94,7 +82,7 @@ cp "%{S:2}" .
 
 %build
 if [ ! -e configure ]; then ./autogen.sh; fi
-%configure --disable-static --enable-python2 --enable-python3
+%configure --disable-static --enable-python3
 %make_build
 
 %install
@@ -117,10 +105,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
 %{_libdir}/pkgconfig/libfwsi.pc
 %{_mandir}/man3/libfwsi.3*
 
-%files -n python2-%name
-%license COPYING*
-%python2_sitearch/pyfwsi.so
-
 %files -n python3-%name
 %license COPYING*
 %python3_sitearch/pyfwsi.so