Accepting request 902518 from security:forensics

OBS-URL: https://build.opensuse.org/request/show/902518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libolecf?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2021-06-27 16:59:14 +00:00 committed by Git OBS Bridge
commit 8fc71a1738
2 changed files with 6 additions and 23 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jun 26 10:00:47 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop python2 module build.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 13 23:01:44 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Thu May 13 23:01:44 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -16,7 +16,6 @@
# #
%bcond_without python2
%define lname libolecf1 %define lname libolecf1
Name: libolecf Name: libolecf
Version: 20210512 Version: 20210512
@ -47,6 +46,7 @@ BuildRequires: pkgconfig(libfole) >= 20170502
BuildRequires: pkgconfig(libfvalue) >= 20210510 BuildRequires: pkgconfig(libfvalue) >= 20210510
BuildRequires: pkgconfig(libfwps) >= 20191221 BuildRequires: pkgconfig(libfwps) >= 20191221
BuildRequires: pkgconfig(libuna) >= 20201204 BuildRequires: pkgconfig(libuna) >= 20201204
BuildRequires: pkgconfig(python3)
%description %description
Library and tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats. Library and tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
@ -80,24 +80,11 @@ libolecf is a library to access the OLE 2 Compound File (OLECF) format.
This subpackage contains libraries and header files for developing This subpackage contains libraries and header files for developing
applications that want to make use of %name. applications that want to make use of %name.
%package -n python2-%{name}
Summary: Python bindings for libolecf
License: LGPL-3.0-or-later
Group: Development/Libraries/Python
Requires: %lname = %version
BuildRequires: pkgconfig(python2)
Obsoletes: pyolecf = 20191221
Obsoletes: python-%{name} = 20191221
%description -n python2-%name
Python bindings for libolecf, which can read MS IE cache files.
%package -n python3-%{name} %package -n python3-%{name}
Summary: Python bindings for libolecf Summary: Python bindings for libolecf
License: LGPL-3.0-or-later License: LGPL-3.0-or-later
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %lname = %version Requires: %lname = %version
BuildRequires: pkgconfig(python3)
%description -n python3-%name %description -n python3-%name
Python bindings for libolecf, which can read MS IE cache files. Python bindings for libolecf, which can read MS IE cache files.
@ -111,9 +98,6 @@ if [ ! -e configure ]; then ./autogen.sh; fi
%configure \ %configure \
--disable-static \ --disable-static \
--enable-wide-character-type \ --enable-wide-character-type \
%if %{with python2}
--enable-python2 \
%endif
--enable-python3 --enable-python3
%make_build %make_build
@ -140,12 +124,6 @@ find %buildroot -name '*.la' -delete
%_libdir/pkgconfig/libolecf.pc %_libdir/pkgconfig/libolecf.pc
%_mandir/man3/libolecf.3* %_mandir/man3/libolecf.3*
%if %{with python2}
%files -n python2-%name
%license COPYING*
%python2_sitearch/pyolecf.so
%endif
%files -n python3-%name %files -n python3-%name
%license COPYING* %license COPYING*
%python3_sitearch/pyolecf.so %python3_sitearch/pyolecf.so