SHA256
1
0
forked from pool/libewf

Accepting request 902497 from home:jengelh:branches:security:forensics

- Drop python2 module build.

OBS-URL: https://build.opensuse.org/request/show/902497
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libewf?expand=0&rev=19
This commit is contained in:
Greg Freemyer 2021-06-26 10:52:02 +00:00 committed by Git OBS Bridge
parent 73e5490c49
commit df36ac15c3
2 changed files with 7 additions and 32 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jun 26 09:57:45 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop python2 module build.
-------------------------------------------------------------------
Fri May 14 00:55:40 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -17,8 +17,6 @@
%define lname libewf2
%bcond_with python2
Name: libewf
Version: 20140811
Release: 0
@ -60,12 +58,9 @@ BuildRequires: pkgconfig(libsmdev) >= 20210418
BuildRequires: pkgconfig(libsmraw) >= 20210418
BuildRequires: pkgconfig(libuna) >= 20201204
BuildRequires: pkgconfig(openssl) >= 1.0.0
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(uuid) >= 2.20
BuildRequires: pkgconfig(zlib) >= 1.2.5
%if %{with python2}
BuildRequires: pkgconfig(python2)
%endif
BuildRequires: pkgconfig(python3)
%description
libewf is a library for support of the Expert Witness Compression
@ -113,21 +108,6 @@ by EnCase 1 to 6, linen and FTK Imager.
This subpackage contains libraries and header files for developing
applications that want to make use of %{name}.
%package -n python2-%{name}
Summary: Python 2 bindings for libewf, an Expert Witness Compression format library
License: LGPL-3.0-or-later
Group: Development/Libraries/Python
Provides: python-%{name} = %{version}
Obsoletes: python-%{name} < 20140608
%description -n python2-%{name}
Python 2 binding for libewf, which can create and read EnCase forensic
images.
# We can eventually split python* packages into separate packages
# python setup.py build should work according to
# https://github.com/libyal/libewf/wiki/Building#using-setuppy
%package -n python3-%{name}
Summary: Python 3 bindings for libewf, an Expert Witness Compression format library
License: LGPL-3.0-or-later
@ -146,11 +126,7 @@ cp "%{SOURCE3}" "%{SOURCE4}" .
if [ ! -e configure ]; then ./autogen.sh; fi
%configure --disable-static --disable-rpath \
--enable-wide-character-type \
--enable-python3 \
%if %{with python2}
--enable-python2
%endif
--enable-python3
%make_build
%install
@ -192,12 +168,6 @@ make check
%{_libdir}/pkgconfig/libewf.pc
%{_mandir}/man3/libewf.3*
%if %{with python2}
%files -n python2-%{name}
%license COPYING*
%{python_sitearch}/pyewf.so
%endif
%files -n python3-%{name}
%license COPYING*
%{python3_sitearch}/*.so