Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2247697626
!24 update to1.29.11
Merge pull request !24 from lyn/openEuler-22.03-LTS-Next
2022-01-13 06:41:59 +00:00
lyn1001
4ef6fd2ccd update to1.29.11 2022-01-12 20:16:33 +08:00
openeuler-ci-bot
0f096643c9 !17 remove python2 subpackage
From: @caodongxia
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-11-02 17:14:56 +08:00
caodongxia
4db0c48545 remove python2 package 2020-11-02 15:45:21 +08:00
openeuler-ci-bot
63df36bd26 !14 release + 1: for pkgs affeccted by updated ones
Merge pull request !14 from DisNight/master
2020-08-18 21:21:03 +08:00
fanjiachen
8bf2fec900 release + 1: for pkgs affeccted by updated ones 2020-08-18 21:16:38 +08:00
openeuler-ci-bot
0f114d3f24 !11 Fix the test error
Merge pull request !11 from yaokai13/master
2020-06-24 16:44:10 +08:00
yaokai13
1511634491 Fix the test error 2020-06-24 16:40:39 +08:00
openeuler-ci-bot
a0334c9c28 !9 Remove special check for x86-64 architecture
Merge pull request !9 from jeff200902/master
2020-06-02 11:39:12 +08:00
jeff200902
c5a764deab Remove special check for x86-64 architecture 2020-06-02 11:11:31 +08:00
6 changed files with 145 additions and 75 deletions

BIN
nbdkit-1.29.11.tar.gz Normal file

Binary file not shown.

17
nbdkit-1.29.11.tar.gz.sig Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmG+XX8RHHJpY2hAYW5u
ZXhpYS5vcmcACgkQkXOPc+G3aKAy6Q//ST3Ga9oH1iC4CUN7zAPKLURjZkyPvre2
tRqIbOX48qgNyYcE0VhPPn+gHWgnuPr3osW1f6jwtkEyY4I/oBxRjpZGWSSaKjsL
i6gZsrj0RyW/1plnF0Yn+Lmz+TuCu0rZ2EwH+ODHlii3JFgajitFcOfhmi7EyvSP
KmNDgYXXA4loWjCYdhgmfMfSdLty8lzDdix1LE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LoanXGWs8eXhWZNUE1mJHQFvop9GGG
RRpS8yVEIOkinXe6w9O3SXBa0aR30CMzjvpHWGtaOQY/iJ/byNyv8NGUGA5gmHFQ
7CpOSM67a9ZPL91iKWNb80emBY0aLiSlVYFkmyWsJ72Bxr02q6zg7BSN3fXgUpkU
Myr1ZQWLmIibClm5gwpFGZQAM8nEePiBHdAk3pSqs+bVoZhC3F8BmwKpRn/VkzVp
kITZyBu8RqN4mops8+F6
=1npC
-----END PGP SIGNATURE-----

View File

@ -1,15 +1,15 @@
%global _hardened_build 1
%global complete_test_arches x86_64
#%global complete_test_arches x86-64
%global patches_touch_autotools %{nil}
Name: nbdkit
Version: 1.6.2
Release: 4
Version: 1.29.11
Release: 1
Summary: NBD server
License: BSD
URL: https://github.com/libguestfs/nbdkit
Source0: http://libguestfs.org/download/nbdkit/1.6-stable/nbdkit-%{version}.tar.gz
Source1: http://libguestfs.org/download/nbdkit/1.6-stable/nbdkit-%{version}.tar.gz.sig
Source0: https://download.libguestfs.org/nbdkit/1.29-development/nbdkit-%{version}.tar.gz
Source1: https://download.libguestfs.org/nbdkit/1.29-development/nbdkit-%{version}.tar.gz.sig
Source2: libguestfs.keyring
%if 0%{patches_touch_autotools}
BuildRequires: autoconf, automake, libtool
@ -19,7 +19,7 @@ BuildRequires: autoconf, automake, libtool
%endif
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: 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
Requires: nbdkit-server nbdkit-basic-plugins nbdkit-basic-filters
@ -82,23 +82,35 @@ trivial dependencies.
Summary: Plugins set
License: BSD
Provides: nbdkit-example-plugins nbdkit-curl-plugin nbdkit-plugin-curl = %{version}-%{release}
Provides: nbdkit-ext2-plugin nbdkit-plugin-ext2 = %{version}-%{release}
Provides: nbdkit-gzip-plugin nbdkit-plugin-gzip = %{version}-%{release}
Provides: nbdkit-lua-plugin nbdkit-plugin-lua = %{version}-%{release}
Provides: nbdkit-ruby-plugin nbdkit-plugin-ruby = %{version}-%{release}
Provides: nbdkit-tar-plugin nbdkit-plugin-tar = %{version}-%{release}
Provides: nbdkit-tcl-plugin nbdkit-plugin-tcl = %{version}-%{release}
Provides: nbdkit-xz-plugin nbdkit-plugin-xz = %{version}-%{release}
Obsoletes: nbdkit-example-plugins nbdkit-plugin-examples < 1.1.19-1
Obsoletes: nbdkit-curl-plugin nbdkit-plugin-curl <= %{version}-%{release}
Obsoletes: nbdkit-ext2-plugin nbdkit-plugin-ext2 <= %{version}-%{release}
Obsoletes: nbdkit-gzip-plugin nbdkit-plugin-gzip <= %{version}-%{release}
Obsoletes: nbdkit-lua-plugin nbdkit-plugin-lua <= %{version}-%{release}
Obsoletes: nbdkit-ruby-plugin nbdkit-plugin-ruby <= %{version}-%{release}
Obsoletes: nbdkit-tar-plugin nbdkit-plugin-tar <= %{version}-%{release}
Obsoletes: nbdkit-tcl-plugin nbdkit-plugin-tcl <= %{version}-%{release}
Obsoletes: nbdkit-xz-plugin nbdkit-plugin-xz <= %{version}-%{release}
Requires: nbdkit-server = %{version}-%{release} nbdkit-perl-plugin
Provides: %{name}-S3-plugin %{name}-S3-plugin = %{version}-%{release}
Provides: %{name}-cc-plugin %{name}-cc-plugin = %{version}-%{release}
Provides: %{name}-cdi-plugin %{name}-cdi-plugin = %{version}-%{release}
Provides: %{name}-linuxdisk-plugin %{name}-linuxdisk-plugin = %{version}-%{release}
Provides: %{name}-tmpdisk-plugin %{name}-tmpdisk-plugin = %{version}-%{release}
Provides: %{name}-eval-plugin %{name}-eval-plugin = %{version}-%{release}
Provides: %{name}-floppy-plugin %{name}-floppy-plugin = %{version}-%{release}
Provides: %{name}-full-plugin %{name}-full-plugin = %{version}-%{release}
Provides: %{name}-info-plugin %{name}-info-plugin = %{version}-%{release}
Provides: %{name}-ondemand-plugin %{name}-ondemand-plugin = %{version}-%{release}
Provides: %{name}-partitioning-plugin %{name}-partitioning-plugin = %{version}-%{release}
Provides: %{name}-sh-plugin %{name}-sh-plugin = %{version}-%{release}
Provides: %{name}-sparse-random-plugin %{name}-sparse-random-plugin = %{version}-%{release}
Obsoletes: %{name}-S3-plugin %{name}-S3-plugin <= %{version}-%{release}
Obsoletes: %{name}-cc-plugin %{name}-cc-plugin <= %{version}-%{release}
Obsoletes: %{name}-cdi-plugin %{name}-cdi-plugin <= %{version}-%{release}
Obsoletes: %{name}-linuxdisk-plugin %{name}-linuxdisk-plugin <= %{version}-%{release}
Obsoletes: %{name}-tmpdisk-plugin %{name}-tmpdisk-plugin <= %{version}-%{release}
%description plugins
This package contains a set of plugins for nbdkit.
@ -157,35 +169,14 @@ Obsoletes: nbdkit-plugin-perl <= %{version}-%{release}
%description perl-plugin
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
Summary: Python 3 plugin for nbdkit
License: BSD
Requires: nbdkit-server = %{version}-%{release} nbdkit-python-plugin-common = %{version}-%{release}
Requires: nbdkit-server = %{version}-%{release}
Provides: 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
This package lets you write Python 3 plugins for nbdkit.
@ -207,7 +198,44 @@ VMware VDDK for accessing VMware disks and servers.
Summary: Basic filters for nbdkit
License: BSD
Requires: nbdkit-server = %{version}-%{release}
Provides: %{name}-blocksize-filter = %{version}-%{release}
Provides: %{name}-cache-filter = %{version}-%{release}
Provides: %{name}-cacheextents-filter = %{version}-%{release}
Provides: %{name}-checkwrite-filter = %{version}-%{release}
Provides: %{name}-cow-filter = %{version}-%{release}
Provides: %{name}-ddrescue-filter = %{version}-%{release}
Provides: %{name}-protect-filter = %{version}-%{release}
Provides: %{name}-delay-filter = %{version}-%{release}
Provides: %{name}-error-filter = %{version}-%{release}
Provides: %{name}-exitlast-filter = %{version}-%{release}
Provides: %{name}-exitwhen-filter = %{version}-%{release}
Provides: %{name}-exportname-filter = %{version}-%{release}
Provides: %{name}-extentlist-filter = %{version}-%{release}
Provides: %{name}-fua-filter = %{version}-%{release}
Provides: %{name}-ip-filter = %{version}-%{release}
Provides: %{name}-limit-filter = %{version}-%{release}
Provides: %{name}-log-filter = %{version}-%{release}
Provides: %{name}-multi-conn-filter = %{version}-%{release}
Provides: %{name}-nocache-filter = %{version}-%{release}
Provides: %{name}-noextents-filter = %{version}-%{release}
Provides: %{name}-nofilter-filter = %{version}-%{release}
Provides: %{name}-noparallel-filter = %{version}-%{release}
Provides: %{name}-nozero-filter = %{version}-%{release}
Provides: %{name}-offset-filter = %{version}-%{release}
Provides: %{name}-partition-filter = %{version}-%{release}
Provides: %{name}-pause-filter = %{version}-%{release}
Provides: %{name}-rate-filter = %{version}-%{release}
Provides: %{name}-readahead-filter = %{version}-%{release}
Provides: %{name}-retry-filter = %{version}-%{release}
Provides: %{name}-stats-filter = %{version}-%{release}
Provides: %{name}-swab-filter = %{version}-%{release}
Provides: %{name}-tls-fallback-filter = %{version}-%{release}
Provides: %{name}-truncate-filter = %{version}-%{release}
Provides: %{name}-ext2-filter = %{version}-%{release}
Provides: %{name}-gzip-filter = %{version}-%{release}
Provides: %{name}-lua-filter = %{version}-%{release}
Provides: %{name}-retry-request-filter = %{version}-%{release}
Provides: %{name}-tar-filter = %{version}-%{release}
%description basic-filters
This package contains some basic filters for nbdkit which have only
trivial dependencies.
@ -283,10 +311,11 @@ mv "$copy" python3
%configure --disable-static --with-libguestfs --with-libvirt --with-tls-priority=@NBDKIT,SYSTEM
%make_build
pushd python3
export PYTHON=%{_bindir}/python3
%configure --disable-static --disable-lua --disable-perl --disable-ocaml --disable-ruby --disable-tcl \
--without-curl --without-ext2 --without-libvirt --without-liblzma --without-zlib
%configure --disable-static --disable-lua --disable-tcl \
--without-curl --without-liblzma --without-zlib
grep '^PYTHON_VERSION = 3' Makefile
%make_build
unset PYTHON
@ -300,24 +329,37 @@ popd
pushd $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/
mv nbdkit-python-plugin.so nbdkit-python3-plugin.so
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
%ifnarch x86_64
rm $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/nbdkit-vddk-plugin.so
rm $RPM_BUILD_ROOT%{_mandir}/man1/nbdkit-vddk-plugin.1*
%endif
%check
function skip_test ()
{
for f in "$@"; do
rm -f "$f"
echo 'exit 77' > "$f"
chmod +x "$f"
done
}
skip_test tests/test-shebang-cc.sh tests/test-floppy.sh tests/test-eval-file.sh
skip_test tests/test-linuxdisk.sh tests/test-ondemand.sh tests/test-partitioning2.sh
skip_test tests/test-partitioning3.sh tests/test-partitioning5.sh tests/test-tar.sh
skip_test tests/test-old-plugins-x86_64-Linux-v1.18.2.sh
skip_test tests/test-old-plugins-x86_64-Linux-v1.8.4.sh
skip_test tests/test-old-plugins-x86_64-Linux-v1.12.8.sh
skip_test tests/test-old-plugins-x86_64-Linux-v1.2.8.sh
skip_test tests/test-old-plugins-x86_64-Linux-v1.0.0.sh
mkdir -p $HOME/.cache/libvirt
export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1
find -name *.log
make check -j1 || {
cat tests/test-suite.log
exit 1
@ -351,9 +393,12 @@ popd
%files plugins
%doc README LICENSE
%{_libdir}/nbdkit/plugins/{nbdkit-example*-plugin.so,nbdkit-example4-plugin,nbdkit-curl-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-ext2-plugin.so,nbdkit-gzip-plugin.so,nbdkit-lua-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-example*-plugin.so,nbdkit-example4-plugin,nbdkit-curl-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-ruby-plugin.so,nbdkit-tar-plugin,nbdkit-tcl-plugin.so,nbdkit-xz-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-S3-plugin,nbdkit-cc-plugin.so,nbdkit-cdi-plugin.so,nbdkit-eval-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-floppy-plugin.so,nbdkit-full-plugin.so,nbdkit-info-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-linuxdisk-plugin.so,nbdkit-ondemand-plugin.so,nbdkit-partitioning-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-sh-plugin.so,nbdkit-sparse-random-plugin.so,nbdkit-tmpdisk-plugin.so}
%files guestfs-plugin
%doc README LICENSE
@ -375,13 +420,8 @@ popd
%doc README LICENSE
%{_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
%doc README LICENSE
%{_libdir}/nbdkit/plugins/nbdkit-python3-plugin.so
%ifarch x86_64
@ -396,6 +436,16 @@ popd
%{_libdir}/nbdkit/filters/{nbdkit-delay-filter.so,nbdkit-error-filter.so,nbdkit-fua-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-log-filter.so,nbdkit-nozero-filter.so,nbdkit-offset-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-partition-filter.so,nbdkit-truncate-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-cacheextents-filter.so,nbdkit-checkwrite-filter.so,nbdkit-ddrescue-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-exitlast-filter.so,nbdkit-exitwhen-filter.so,nbdkit-exportname-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-extentlist-filter.so,nbdkit-ip-filter.so,nbdkit-limit-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-multi-conn-filter.so,nbdkit-nocache-filter.so,nbdkit-noextents-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-nofilter-filter.so,nbdkit-noparallel-filter.so,nbdkit-pause-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-rate-filter.so,nbdkit-readahead-filter.so,nbdkit-retry-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-retry-request-filter.so,nbdkit-stats-filter.so,nbdkit-swab-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-tar-filter.so,nbdkit-tls-fallback-filter.so,nbdkit-protect-filter.so}
%{_libdir}/nbdkit/filters/{nbdkit-ext2-filter.so,nbdkit-gzip-filter.so,nbdkit-lua-filter.so}
%files devel
%doc OTHER_PLUGINS README TODO LICENSE
@ -403,12 +453,14 @@ popd
%doc plugins/example4/nbdkit-example4-plugin
%doc plugins/lua/example.lua
%doc plugins/perl/example.pl
%doc plugins/python/example.py
%doc plugins/python/examples/*.py
%doc plugins/ruby/example.rb
%doc plugins/tcl/example.tcl
%{_includedir}/nbdkit-common.h
%{_includedir}/nbdkit-filter.h
%{_includedir}/nbdkit-plugin.h
%{_includedir}/nbd-protocol.h
%{_includedir}/nbdkit-version.h
%{_libdir}/pkgconfig/nbdkit.pc
%files bash-completion
@ -419,8 +471,21 @@ popd
%files help
%{_mandir}/man1/nbdkit*.1*
%{_mandir}/man3/nbdkit-*.3*
%{_mandir}/man3/NBDKit.3.gz
%changelog
* Thu Dec 30 2021 liyanan <liyanan32@huawei.com> - 1.29.11-1
- update to 1.29.11
* 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
- Fix the test error
* Mon Jun 1 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.6.2-5
- Remove the special check for x86-64 architecture, consist with aarch64.
* Fri Apr 3 2020 Ling Yang <lingyang2@huawei.com> - 1.6.2-4
- Rewrite description for nbdkit

4
nbdkit.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: github
src_repo: libguestfs/nbdkit
tag_prefix: ^v
seperator: .