SHA256
1
0
forked from pool/libqcow

Accepting request 948380 from security:forensics

- Enable multipython builds.

OBS-URL: https://build.opensuse.org/request/show/948380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqcow?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2022-01-24 22:10:01 +00:00 committed by Git OBS Bridge
commit 47d3c0afe9
2 changed files with 28 additions and 64 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 24 11:05:03 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Enable multipython builds.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 14 22:08:34 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Fri May 14 22:08:34 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libqcow # spec file for package libqcow
# #
# 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
@ -27,10 +27,12 @@ URL: https://github.com/libyal/libqcow
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
Source2: QEMU_Copy-On-Write_file_format.pdf Source2: QEMU_Copy-On-Write_file_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(libcaes) >= 20201012 BuildRequires: pkgconfig(libcaes) >= 20201012
@ -46,32 +48,13 @@ BuildRequires: pkgconfig(libfcache) >= 20200708
BuildRequires: pkgconfig(libfdata) >= 20201129 BuildRequires: pkgconfig(libfdata) >= 20201129
BuildRequires: pkgconfig(libuna) >= 20201204 BuildRequires: pkgconfig(libuna) >= 20201204
BuildRequires: pkgconfig(openssl) >= 1.0 BuildRequires: pkgconfig(openssl) >= 1.0
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(zlib) >= 1.2.5 BuildRequires: pkgconfig(zlib) >= 1.2.5
%python_subpackages
%description %description
Library and tooling to access the QEMU Copy-On-Write (QCOW) image format. Library and tooling to access the QEMU Copy-On-Write (QCOW) image format.
QCOW formats v1 and v2 in compressed or encrypted form are supported.
Read supported QCOW formats: Not supported are backing file-based snapshots and in-image snapshots.
version 1
version 2
Supported QCOW format features:
compression
encryption
QCOW format features not supported at the moment:
backing file-based snapshots
in-image snapshots
Work in progress:
Python bindings
Dokan library support
Planned:
version 3 support
Multi-threading support
%package -n %{lname} %package -n %{lname}
Summary: Library to access the QEMU Copy-On-Write (QCOW) image format Summary: Library to access the QEMU Copy-On-Write (QCOW) image format
@ -80,19 +63,8 @@ Group: System/Libraries
%description -n %{lname} %description -n %{lname}
Library to access the QEMU Copy-On-Write (QCOW) image format. Library to access the QEMU Copy-On-Write (QCOW) image format.
QCOW formats v1 and v2 in compressed or encrypted form are supported.
Read supported QCOW formats: Not supported are backing file-based snapshots and in-image snapshots.
version 1
version 2
Supported QCOW format features:
compression
encryption
QCOW format features not supported at the moment:
backing file-based snapshots
in-image snapshots
%package tools %package tools
Summary: Tools to access the QEMU Copy-On-Write (QCOW) image format Summary: Tools to access the QEMU Copy-On-Write (QCOW) image format
@ -101,19 +73,8 @@ Group: Productivity/File utilities
%description tools %description tools
Tools to access the QEMU Copy-On-Write (QCOW) image format. Tools to access the QEMU Copy-On-Write (QCOW) image format.
QCOW formats v1 and v2 in compressed or encrypted form are supported.
Read supported QCOW formats: Not supported are backing file-based snapshots and in-image snapshots.
version 1
version 2
Supported QCOW format features:
compression
encryption
QCOW format features not supported at the moment:
backing file-based snapshots
in-image snapshots
%package devel %package devel
Summary: Development files for libqcow Summary: Development files for libqcow
@ -127,25 +88,23 @@ libqcow is a library to access the QEMU Copy-On-Write (QCOW) image 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 libqcow. applications that want to make use of libqcow.
%package -n python3-%{name}
Summary: Python 3 bindings for libqcow
License: LGPL-3.0-or-later
Group: Development/Languages/Python
%description -n python3-%{name}
Python 3 bindings for libqcow, which can access the QEMU Copy-On-Write (QCOW) image format
%prep %prep
%autosetup -p1 %autosetup -p1
cp "%{SOURCE2}" . cp "%{SOURCE2}" .
%build %build
if [ ! -e configure ]; then ./autogen.sh; fi 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_build
%make_install DESTDIR="%_builddir/rt"
%make_build clean
}
%install %install
%make_install mv %_builddir/rt/* %buildroot/
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{lname} -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
@ -155,12 +114,12 @@ find %{buildroot} -type f -name "*.la" -delete -print
%license COPYING* %license COPYING*
%{_libdir}/libqcow.so.* %{_libdir}/libqcow.so.*
%files tools %files -n %name-tools
%license COPYING* %license COPYING*
%{_bindir}/qcow* %{_bindir}/qcow*
%{_mandir}/man1/qcow*.1* %{_mandir}/man1/qcow*.1*
%files devel %files -n %name-devel
%doc QEMU_Copy-On-Write_file_format.pdf %doc QEMU_Copy-On-Write_file_format.pdf
%license COPYING* %license COPYING*
%{_includedir}/libqcow.h %{_includedir}/libqcow.h
@ -169,8 +128,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/pkgconfig/libqcow.pc %{_libdir}/pkgconfig/libqcow.pc
%{_mandir}/man3/libqcow.3* %{_mandir}/man3/libqcow.3*
%files -n python3-%{name} %files %python_files
%license COPYING* %license COPYING*
%{python3_sitearch}/pyqcow.so %{python_sitearch}/pyqcow.so
%changelog %changelog