!17 remove python2 subpackage
From: @caodongxia Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
0f096643c9
29
Fix-the-test-error-1.patch
Normal file
29
Fix-the-test-error-1.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 341444c2ca73323c8c6aac93417373668ba7da4a Mon Sep 17 00:00:00 2001
|
||||||
|
From: caodongxia <315816521@qq.com>
|
||||||
|
Date: Mon, 2 Nov 2020 15:03:34 +0800
|
||||||
|
Subject: [PATCH] Create patch
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||||
|
index 9965ea7..4a4ee6a 100644
|
||||||
|
--- a/tests/Makefile.am
|
||||||
|
+++ b/tests/Makefile.am
|
||||||
|
@@ -83,7 +83,6 @@ EXTRA_DIST = \
|
||||||
|
test-shebang-python.sh \
|
||||||
|
test-shebang-ruby.sh \
|
||||||
|
test-single.sh \
|
||||||
|
- test-start.sh \
|
||||||
|
test-random-sock.sh \
|
||||||
|
test-tls.sh \
|
||||||
|
test-tls-psk.sh \
|
||||||
|
@@ -129,7 +128,6 @@ TESTS += \
|
||||||
|
test-version-plugin.sh \
|
||||||
|
test-version-filter.sh \
|
||||||
|
test-dump-plugin.sh \
|
||||||
|
- test-start.sh \
|
||||||
|
test-single.sh \
|
||||||
|
test-captive.sh \
|
||||||
|
test-random-sock.sh \
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
54
nbdkit.spec
54
nbdkit.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: nbdkit
|
Name: nbdkit
|
||||||
Version: 1.6.2
|
Version: 1.6.2
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: NBD server
|
Summary: NBD server
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/libguestfs/nbdkit
|
URL: https://github.com/libguestfs/nbdkit
|
||||||
@ -12,6 +12,7 @@ Source0: http://libguestfs.org/download/nbdkit/1.6-stable/nbdkit-%{versio
|
|||||||
Source1: http://libguestfs.org/download/nbdkit/1.6-stable/nbdkit-%{version}.tar.gz.sig
|
Source1: http://libguestfs.org/download/nbdkit/1.6-stable/nbdkit-%{version}.tar.gz.sig
|
||||||
Source2: libguestfs.keyring
|
Source2: libguestfs.keyring
|
||||||
Patch0000: Fix-the-test-error.patch
|
Patch0000: Fix-the-test-error.patch
|
||||||
|
Patch0001: Fix-the-test-error-1.patch
|
||||||
%if 0%{patches_touch_autotools}
|
%if 0%{patches_touch_autotools}
|
||||||
BuildRequires: autoconf, automake, libtool
|
BuildRequires: autoconf, automake, libtool
|
||||||
%endif
|
%endif
|
||||||
@ -20,7 +21,7 @@ BuildRequires: autoconf, automake, libtool
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: gnutls gnutls-devel libselinux-devel python3-devel gnupg2 lua-devel socat iproute
|
BuildRequires: gnutls gnutls-devel libselinux-devel python3-devel gnupg2 lua-devel socat iproute
|
||||||
BuildRequires: libguestfs-devel libvirt-devel xz-devel zlib-devel libcurl-devel e2fsprogs-devel
|
BuildRequires: libguestfs-devel libvirt-devel xz-devel zlib-devel libcurl-devel e2fsprogs-devel
|
||||||
BuildRequires: bash-completion perl-devel perl(ExtUtils::Embed) python2-devel ocaml >= 4.02.2
|
BuildRequires: bash-completion perl-devel perl(ExtUtils::Embed) ocaml >= 4.02.2
|
||||||
BuildRequires: ruby-devel tcl-devel perl-podlators qemu-img
|
BuildRequires: ruby-devel tcl-devel perl-podlators qemu-img
|
||||||
Requires: nbdkit-server nbdkit-basic-plugins nbdkit-basic-filters
|
Requires: nbdkit-server nbdkit-basic-plugins nbdkit-basic-filters
|
||||||
|
|
||||||
@ -158,35 +159,14 @@ Obsoletes: nbdkit-plugin-perl <= %{version}-%{release}
|
|||||||
%description perl-plugin
|
%description perl-plugin
|
||||||
This package lets you write Perl plugins for nbdkit.
|
This package lets you write Perl plugins for nbdkit.
|
||||||
|
|
||||||
%package python-plugin-common
|
|
||||||
Summary: Python 2 and 3 plugin common files for nbdkit
|
|
||||||
License: BSD
|
|
||||||
Requires: nbdkit-server = %{version}-%{release}
|
|
||||||
Provides: nbdkit-plugin-python-common = %{version}-%{release}
|
|
||||||
Obsoletes: nbdkit-plugin-python-common <= %{version}-%{release}
|
|
||||||
|
|
||||||
%description python-plugin-common
|
|
||||||
This package contains common files shared between Python 2
|
|
||||||
and Python 3 nbdkit plugins.
|
|
||||||
You should not install this package directly. Instead install
|
|
||||||
either nbdkit-python2-plugin or nbdkit-python3-plugin.
|
|
||||||
|
|
||||||
%package python2-plugin
|
|
||||||
Summary: Python 2 plugin for nbdkit
|
|
||||||
License: BSD
|
|
||||||
Requires: nbdkit-server = %{version}-%{release} nbdkit-python-plugin-common = %{version}-%{release}
|
|
||||||
Provides: nbdkit-plugin-python = %{version}-%{release} nbdkit-plugin-python2 = %{version}-%{release}
|
|
||||||
Obsoletes: nbdkit-plugin-python <= %{version}-%{release} nbdkit-plugin-python2 <= %{version}-%{release}
|
|
||||||
|
|
||||||
%description python2-plugin
|
|
||||||
This package lets you write Python 2 plugins for nbdkit.
|
|
||||||
|
|
||||||
%package python3-plugin
|
%package python3-plugin
|
||||||
Summary: Python 3 plugin for nbdkit
|
Summary: Python 3 plugin for nbdkit
|
||||||
License: BSD
|
License: BSD
|
||||||
Requires: nbdkit-server = %{version}-%{release} nbdkit-python-plugin-common = %{version}-%{release}
|
Requires: nbdkit-server = %{version}-%{release}
|
||||||
Provides: nbdkit-plugin-python3 = %{version}-%{release}
|
Provides: nbdkit-plugin-python3 = %{version}-%{release}
|
||||||
Obsoletes: nbdkit-plugin-python3 <= %{version}-%{release}
|
Obsoletes: nbdkit-plugin-python3 <= %{version}-%{release}
|
||||||
|
Provides: nbdkit-python-plugin-common = %{version}-%{release}
|
||||||
|
Obsoletes: nbdkit-python-plugin-common <= %{version}-%{release}
|
||||||
|
|
||||||
%description python3-plugin
|
%description python3-plugin
|
||||||
This package lets you write Python 3 plugins for nbdkit.
|
This package lets you write Python 3 plugins for nbdkit.
|
||||||
@ -284,10 +264,11 @@ mv "$copy" python3
|
|||||||
%configure --disable-static --with-libguestfs --with-libvirt --with-tls-priority=@NBDKIT,SYSTEM
|
%configure --disable-static --with-libguestfs --with-libvirt --with-tls-priority=@NBDKIT,SYSTEM
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
pushd python3
|
pushd python3
|
||||||
export PYTHON=%{_bindir}/python3
|
export PYTHON=%{_bindir}/python3
|
||||||
%configure --disable-static --disable-lua --disable-perl --disable-ocaml --disable-ruby --disable-tcl \
|
%configure --disable-static --disable-lua --disable-tcl \
|
||||||
--without-curl --without-ext2 --without-libvirt --without-liblzma --without-zlib
|
--without-curl --without-liblzma --without-zlib
|
||||||
grep '^PYTHON_VERSION = 3' Makefile
|
grep '^PYTHON_VERSION = 3' Makefile
|
||||||
%make_build
|
%make_build
|
||||||
unset PYTHON
|
unset PYTHON
|
||||||
@ -301,12 +282,6 @@ popd
|
|||||||
pushd $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/
|
pushd $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/
|
||||||
mv nbdkit-python-plugin.so nbdkit-python3-plugin.so
|
mv nbdkit-python-plugin.so nbdkit-python3-plugin.so
|
||||||
popd
|
popd
|
||||||
%make_install
|
|
||||||
|
|
||||||
pushd $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/
|
|
||||||
mv nbdkit-python-plugin.so nbdkit-python2-plugin.so
|
|
||||||
ln -s nbdkit-python2-plugin.so nbdkit-python-plugin.so
|
|
||||||
popd
|
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||||
|
|
||||||
@ -319,6 +294,7 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/nbdkit-vddk-plugin.1*
|
|||||||
mkdir -p $HOME/.cache/libvirt
|
mkdir -p $HOME/.cache/libvirt
|
||||||
export LIBGUESTFS_DEBUG=1
|
export LIBGUESTFS_DEBUG=1
|
||||||
export LIBGUESTFS_TRACE=1
|
export LIBGUESTFS_TRACE=1
|
||||||
|
find -name *.log
|
||||||
make check -j1 || {
|
make check -j1 || {
|
||||||
cat tests/test-suite.log
|
cat tests/test-suite.log
|
||||||
exit 1
|
exit 1
|
||||||
@ -376,13 +352,8 @@ popd
|
|||||||
%doc README LICENSE
|
%doc README LICENSE
|
||||||
%{_libdir}/nbdkit/plugins/nbdkit-perl-plugin.so
|
%{_libdir}/nbdkit/plugins/nbdkit-perl-plugin.so
|
||||||
|
|
||||||
%files python-plugin-common
|
|
||||||
%doc README LICENSE
|
|
||||||
|
|
||||||
%files python2-plugin
|
|
||||||
%{_libdir}/nbdkit/plugins/{nbdkit-python-plugin.so,nbdkit-python2-plugin.so}
|
|
||||||
|
|
||||||
%files python3-plugin
|
%files python3-plugin
|
||||||
|
%doc README LICENSE
|
||||||
%{_libdir}/nbdkit/plugins/nbdkit-python3-plugin.so
|
%{_libdir}/nbdkit/plugins/nbdkit-python3-plugin.so
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -422,6 +393,9 @@ popd
|
|||||||
%{_mandir}/man3/nbdkit-*.3*
|
%{_mandir}/man3/nbdkit-*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.6.2-7
|
||||||
|
- Remove subpackage nbdkit-python2-plugin
|
||||||
|
|
||||||
* Wed Jun 24 2020 yaokai13 <yaokai13@huawei.com> - 1.6.2-6
|
* Wed Jun 24 2020 yaokai13 <yaokai13@huawei.com> - 1.6.2-6
|
||||||
- Fix the test error
|
- Fix the test error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user