- Enable multipython builds. (This reenables python2 on Leap 15.)

OBS-URL: https://build.opensuse.org/package/show/security:forensics/libregf?expand=0&rev=33
This commit is contained in:
Jan Engelhardt 2022-01-24 11:56:47 +00:00 committed by Git OBS Bridge
parent 74d103381a
commit be1a51ad19
2 changed files with 22 additions and 23 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 24 11:44:10 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Enable multipython builds. (This reenables python2 on Leap 15.)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 14 12:27:29 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Sun Nov 14 12:27:29 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libregf # spec file for package libregf
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -29,10 +29,12 @@ Source2: https://github.com/libyal/libregf/releases/download/%version/lib
Source3: %name.keyring Source3: %name.keyring
Source11: Windows_NT_Registry_File_REGF_format.pdf Source11: Windows_NT_Registry_File_REGF_format.pdf
Patch1: system-libs.patch Patch1: system-libs.patch
BuildRequires: %{python_module devel}
BuildRequires: c_compiler BuildRequires: c_compiler
BuildRequires: gettext-tools >= 0.18.1 BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(fuse) >= 2.6 BuildRequires: pkgconfig(fuse) >= 2.6
BuildRequires: pkgconfig(libbfio) >= 20201229 BuildRequires: pkgconfig(libbfio) >= 20201229
BuildRequires: pkgconfig(libcdata) >= 20200509 BuildRequires: pkgconfig(libcdata) >= 20200509
@ -50,7 +52,7 @@ BuildRequires: pkgconfig(libfguid) >= 20180724
BuildRequires: pkgconfig(libfwnt) >= 20210421 BuildRequires: pkgconfig(libfwnt) >= 20210421
BuildRequires: pkgconfig(libfwsi) >= 20210419 BuildRequires: pkgconfig(libfwsi) >= 20210419
BuildRequires: pkgconfig(libuna) >= 20210801 BuildRequires: pkgconfig(libuna) >= 20210801
BuildRequires: pkgconfig(python3) %python_subpackages
%description %description
libregf is a library to access Windows Registry files of the REGF libregf is a library to access Windows Registry files of the REGF
@ -87,32 +89,24 @@ type (a non-text representation).
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 python3-%{name}
Summary: Python3 bindings for libregf, a library to access Windows REGF Registry files
License: LGPL-3.0-or-later
Group: Development/Languages/Python
%description -n python3-%{name}
libregf is a library to access Windows Registry files of the REGF
type (a non-text representation).
This subpackage contains the Python3 bindings for libregf.
%prep %prep
%autosetup -p1 %autosetup -p1
cp %_sourcedir/*.pdf . cp %_sourcedir/*.pdf .
%build %build
autoreconf -fi autoreconf -fi
%configure \ # OOT builds are presently broken, so we have to install
--disable-static \ # within each python iteration now, not in %%install.
--enable-wide-character-type \ %{python_expand #
--enable-python3 %configure --disable-static --enable-wide-character-type --enable-python PYTHON_VERSION="%{$python_bin_suffix}"
%make_build %make_build
%make_install DESTDIR="%_builddir/rt"
%make_build clean
}
%install %install
%make_install mv %_builddir/rt/* %buildroot/
find %{buildroot} -name '*.la' -delete find %{buildroot} -type f -name "*.la" -delete -print
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
@ -121,11 +115,11 @@ find %{buildroot} -name '*.la' -delete
%license COPYING* %license COPYING*
%{_libdir}/libregf.so.* %{_libdir}/libregf.so.*
%files tools %files -n %name-tools
%{_bindir}/regf* %{_bindir}/regf*
%{_mandir}/man1/regf*.1* %{_mandir}/man1/regf*.1*
%files devel %files -n %name-devel
%doc Windows_NT_Registry_File*.pdf %doc Windows_NT_Registry_File*.pdf
%{_includedir}/libregf.h %{_includedir}/libregf.h
%{_includedir}/libregf/ %{_includedir}/libregf/
@ -133,8 +127,8 @@ find %{buildroot} -name '*.la' -delete
%{_libdir}/pkgconfig/libregf.pc %{_libdir}/pkgconfig/libregf.pc
%{_mandir}/man3/libregf.3* %{_mandir}/man3/libregf.3*
%files -n python3-%{name} %files %python_files
%license COPYING* %license COPYING*
%{python3_sitearch}/pyregf.so %{python_sitearch}/pyregf.so
%changelog %changelog