nbdkit/nbdkit.spec

503 lines
20 KiB
RPMSpec
Raw Permalink Normal View History

2019-12-17 16:40:49 +08:00
%global _hardened_build 1
#%global complete_test_arches x86-64
2019-12-17 16:40:49 +08:00
%global patches_touch_autotools %{nil}
Name: nbdkit
2023-10-17 17:30:19 +08:00
Version: 1.32.6
Release: 1
2019-12-17 16:40:49 +08:00
Summary: NBD server
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2019-12-17 16:40:49 +08:00
URL: https://github.com/libguestfs/nbdkit
2023-10-17 17:30:19 +08:00
Source0: https://download.libguestfs.org/nbdkit/1.36-stable/nbdkit-%{version}.tar.gz
Source1: https://download.libguestfs.org/nbdkit/1.36-stable/nbdkit-%{version}.tar.gz.sig
2020-04-03 11:58:14 +08:00
Source2: libguestfs.keyring
2019-12-17 16:40:49 +08:00
%if 0%{patches_touch_autotools}
2020-04-03 11:58:14 +08:00
BuildRequires: autoconf, automake, libtool
2019-12-17 16:40:49 +08:00
%endif
%ifnarch %{complete_test_arches}
BuildRequires: autoconf, automake, libtool
%endif
2020-04-03 11:58:14 +08:00
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
2023-10-17 17:30:19 +08:00
BuildRequires: bash-completion perl-devel perl(ExtUtils::Embed) ocaml >= 4.03 ocaml-ocamldoc
2020-04-03 11:58:14 +08:00
BuildRequires: ruby-devel tcl-devel perl-podlators qemu-img
2023-10-17 17:30:19 +08:00
#BuildRequires: gcc gcc-c++ perl-podlators zstd-devel libssh-devel
#BuildRequires: bc gnutls-utils coreutils expect util-linux iproute jq socat
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server nbdkit-basic-plugins nbdkit-basic-filters
2019-12-17 16:40:49 +08:00
%description
2020-04-03 14:14:18 +08:00
NBD (Network Block Device) is a protocol for accessing Block Devices (hard disks and disk-like things)
over a Network. nbdkit is a toolkit for creating NBD servers.
2019-12-17 16:40:49 +08:00
The key features are:
2020-04-03 14:14:18 +08:00
* Multithreaded NBD server written in C with good performance.
* Minimal dependencies for the basic server.
* Liberal license (BSD) allows nbdkit to be linked to proprietary libraries or included in proprietary code.
* Well-documented, simple plugin API with a stable ABI guarantee. Lets you export “unconventional”
block devices easily.
* You can write plugins in C, Lua, Perl, Python, OCaml, Ruby, Rust, shell script or Tcl.
* Filters can be stacked in front of plugins to transform the output.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package server
Summary: The nbdkit server
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description server
This package contains the nbdkit server with no plugins or filters.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package basic-plugins
Summary: Basic plugins for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Obsoletes: nbdkit-plugin-file < 1.1.19-1 nbdkit-plugin-nbd < 1.1.19-1 nbdkit-plugin-streaming < 1.1.19-1
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description basic-plugins
This package contains some basic plugins for nbdkit which have only
2019-12-17 16:40:49 +08:00
trivial dependencies.
* nbdkit-data-plugin
Serve small files directly from the command line.
* nbdkit-file-plugin
A file serving plugin.
* nbdkit-memory-plugin
A virtual memory plugin.
* nbdkit-nbd-plugin
An NBD forwarding plugin.
It provides an NBD server that forwards all traffic as a client to
another existing NBD server. A primary usage of this setup is to
alter the set of features available to the ultimate end client,
without having to change the original server (for example, to
convert between oldstyle and newtyle, or to add TLS support where
the original server lacks it).
* nbdkit-null-plugin
A null (bitbucket) plugin.
* nbdkit-pattern-plugin
Fixed test pattern.
* nbdkit-random-plugin
Random content plugin for testing.
* nbdkit-split-plugin
Concatenate one or more files into a single virtual disk.
* nbdkit-streaming-plugin
A streaming file serving plugin.
* nbdkit-zero-plugin
Zero-length plugin for testing.
2020-04-03 11:58:14 +08:00
%package plugins
Summary: Plugins set
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Provides: nbdkit-example-plugins nbdkit-curl-plugin nbdkit-plugin-curl = %{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-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}
2020-04-03 11:58:14 +08:00
%description plugins
This package contains a set of plugins for nbdkit.
%package guestfs-plugin
Summary: libguestfs plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Provides: nbdkit-plugin-guestfs = %{version}-%{release}
Obsoletes: nbdkit-plugin-guestfs <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description guestfs-plugin
This package is a libguestfs plugin for nbdkit.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package libvirt-plugin
Summary: Libvirt plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Provides: nbdkit-plugin-libvirt = %{version}-%{release}
Obsoletes: nbdkit-plugin-libvirt <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description libvirt-plugin
This package is a libvirt plugin for nbdkit. It lets you access
2019-12-17 16:40:49 +08:00
libvirt guest disks readonly. It is implemented using the libvirt
virDomainBlockPeek API.
2020-04-03 11:58:14 +08:00
%package ocaml-plugin
Summary: OCaml plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Provides: nbdkit-plugin-ocaml = %{version}-%{release}
Obsoletes: nbdkit-plugin-ocaml <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description ocaml-plugin
This package lets you run OCaml plugins for nbdkit.
2019-12-17 16:40:49 +08:00
To compile OCaml plugins you will also need to install
2020-04-03 11:58:14 +08:00
nbdkit-ocaml-plugin-devel.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package ocaml-plugin-devel
Summary: OCaml development environment for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release} nbdkit-ocaml-plugin = %{version}-%{release}
Provides: nbdkit-plugin-ocaml-devel = %{version}-%{release}
Obsoletes: nbdkit-plugin-ocaml-devel <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description ocaml-plugin-devel
This package lets you write OCaml plugins for nbdkit.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package perl-plugin
Summary: Perl plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Provides: nbdkit-plugin-perl = %{version}-%{release}
Obsoletes: nbdkit-plugin-perl <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description perl-plugin
This package lets you write Perl plugins for nbdkit.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package python3-plugin
Summary: Python 3 plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-11-02 15:45:21 +08:00
Requires: nbdkit-server = %{version}-%{release}
2020-04-03 11:58:14 +08:00
Provides: nbdkit-plugin-python3 = %{version}-%{release}
Obsoletes: nbdkit-plugin-python3 <= %{version}-%{release}
2020-11-02 15:45:21 +08:00
Provides: nbdkit-python-plugin-common = %{version}-%{release}
Obsoletes: nbdkit-python-plugin-common <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description python3-plugin
This package lets you write Python 3 plugins for nbdkit.
2019-12-17 16:40:49 +08:00
%ifarch x86_64
2020-04-03 11:58:14 +08:00
%package vddk-plugin
Summary: VMware VDDK plugin for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release}
Provides: nbdkit-plugin-vddk = %{version}-%{release}
Obsoletes: nbdkit-plugin-vddk <= %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description vddk-plugin
This package is a plugin for nbdkit which connects to
2019-12-17 16:40:49 +08:00
VMware VDDK for accessing VMware disks and servers.
%endif
2020-04-03 11:58:14 +08:00
%package basic-filters
Summary: Basic filters for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
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}
2020-04-03 11:58:14 +08:00
%description basic-filters
This package contains some basic filters for nbdkit which have only
2019-12-17 16:40:49 +08:00
trivial dependencies.
* nbdkit-blocksize-filter
Adjust block size of requests sent to plugins.
* nbdkit-cache-filter
Server-side cache.
* nbdkig-cow-filter
Copy-on-write overlay for read-only plugins.
* nbdkit-delay-filter
Inject read and write delays.
* nbdkit-error-filter
Inject errors.
* nbdkit-fua-filter
Modify flush behaviour in plugins.
* nbdkit-log-filter
Log all transactions to a file.
* nbdkit-nozero-filter
Adjust handling of zero requests by plugins.
* nbdkit-offset-filter
Serve an offset and range.
* nbdkit-partition-filter
Serve a single partition.
* nbdkit-truncate-filter
Truncate, expand, round up or round down a plugin size.
2020-04-03 11:58:14 +08:00
%package devel
Summary: Development files and documentation for nbdkit
2023-10-17 17:30:19 +08:00
License: BSD-3-Clause
2020-04-03 11:58:14 +08:00
Requires: nbdkit-server = %{version}-%{release} pkgconfig
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description devel
2019-12-17 16:40:49 +08:00
This package contains development files and documentation
2020-04-03 11:58:14 +08:00
for nbdkit. Install this package if you want to develop
plugins for nbdkit.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package bash-completion
Summary: Bash tab-completion for nbdkit
BuildArch: noarch
Requires: bash-completion >= 2.0 nbdkit-server = %{version}-%{release}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description bash-completion
2019-12-17 16:40:49 +08:00
Install this package if you want intelligent bash tab-completion
2020-04-03 11:58:14 +08:00
for nbdkit.
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%package help
Summary: Documents for nbdkit
Buildarch: noarch
Requires: man info
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%description help
Man pages and other related documents for nbdkit
2019-12-17 16:40:49 +08:00
%prep
tmphome="$(mktemp -d)"
gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%autosetup -p1
%if 0%{patches_touch_autotools}
autoreconf -i
%endif
%ifnarch %{complete_test_arches}
sed -i -e '/^if HAVE_LIBGUESTFS/,/^endif HAVE_LIBGUESTFS/d' tests/Makefile.am
sed -i -e '/^if HAVE_GUESTFISH/,/^endif HAVE_GUESTFISH/d' tests/Makefile.am
autoreconf -i
%endif
%build
export LDFLAGS="$LDFLAGS -Wl,-z,now"
copy="$(mktemp -d)"
cp -a . "$copy"
mv "$copy" python3
2020-04-03 11:58:14 +08:00
%configure --disable-static --with-libguestfs --with-libvirt --with-tls-priority=@NBDKIT,SYSTEM
%make_build
2019-12-17 16:40:49 +08:00
2020-11-02 15:45:21 +08:00
2019-12-17 16:40:49 +08:00
pushd python3
export PYTHON=%{_bindir}/python3
2020-11-02 15:45:21 +08:00
%configure --disable-static --disable-lua --disable-tcl \
--without-curl --without-liblzma --without-zlib
2019-12-17 16:40:49 +08:00
grep '^PYTHON_VERSION = 3' Makefile
2020-04-03 11:58:14 +08:00
%make_build
2019-12-17 16:40:49 +08:00
unset PYTHON
popd
%install
pushd python3
%make_install
popd
pushd $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins/
mv nbdkit-python-plugin.so nbdkit-python3-plugin.so
popd
find $RPM_BUILD_ROOT -name '*.la' -delete
%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
2019-12-17 16:40:49 +08:00
mkdir -p $HOME/.cache/libvirt
export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1
2020-11-02 15:45:21 +08:00
find -name *.log
2019-12-17 16:40:49 +08:00
make check -j1 || {
cat tests/test-suite.log
exit 1
}
%ifarch %{complete_test_arches}
pushd python3
make check -j1 -C tests TESTS=test-python || {
cat tests/test-suite.log
exit 1
}
popd
%endif
2020-04-03 11:58:14 +08:00
%post ocaml-plugin -p /sbin/ldconfig
%postun ocaml-plugin -p /sbin/ldconfig
2019-12-17 16:40:49 +08:00
%files
%files server
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2019-12-17 16:40:49 +08:00
%{_sbindir}/nbdkit
2020-04-03 11:58:14 +08:00
%dir %{_libdir}/nbdkit/{plugins,filters}
2019-12-17 16:40:49 +08:00
%files basic-plugins
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/{nbdkit-data-plugin.so,nbdkit-file-plugin.so,nbdkit-memory-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-nbd-plugin.so,nbdkit-null-plugin.so,nbdkit-pattern-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-random-plugin.so,nbdkit-split-plugin.so}
%{_libdir}/nbdkit/plugins/{nbdkit-streaming-plugin.so,nbdkit-zero-plugin.so}
2019-12-17 16:40:49 +08:00
%files plugins
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
%{_libdir}/nbdkit/plugins/{nbdkit-example*-plugin.so,nbdkit-example4-plugin,nbdkit-curl-plugin.so}
2020-04-03 11:58:14 +08:00
%{_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}
2023-10-17 17:30:19 +08:00
#%%{_libdir}/nbdkit/plugins/{nbdkit-ones-plugin.so,nbdkit-ssh-plugin.so}
2019-12-17 16:40:49 +08:00
2020-04-03 11:58:14 +08:00
%files guestfs-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/nbdkit-guestfs-plugin.so
2019-12-17 16:40:49 +08:00
%files libvirt-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/nbdkit-libvirt-plugin.so
2019-12-17 16:40:49 +08:00
%files ocaml-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2019-12-17 16:40:49 +08:00
%{_libdir}/libnbdkitocaml.so.*
%files ocaml-plugin-devel
%{_libdir}/libnbdkitocaml.so
%{_libdir}/ocaml/NBDKit.*
%files perl-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/nbdkit-perl-plugin.so
2019-12-17 16:40:49 +08:00
%files python3-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/nbdkit-python3-plugin.so
2019-12-17 16:40:49 +08:00
%ifarch x86_64
%files vddk-plugin
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/plugins/nbdkit-vddk-plugin.so
2019-12-17 16:40:49 +08:00
%endif
%files basic-filters
2023-10-17 17:30:19 +08:00
%doc README.md LICENSE
2020-04-03 11:58:14 +08:00
%{_libdir}/nbdkit/filters/{nbdkit-blocksize-filter.so,nbdkit-cache-filter.so,nbdkit-cow-filter.so}
%{_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}
2023-10-17 17:30:19 +08:00
%{_libdir}/nbdkit/filters/{nbdkit-blocksize-policy-filter.so,nbdkit-evil-filter.so,nbdkit-luks-filter.so,nbdkit-qcow2dec-filter.so,nbdkit-scan-filter.so}
2019-12-17 16:40:49 +08:00
%files devel
2023-10-17 17:30:19 +08:00
%doc OTHER_PLUGINS README.md TODO LICENSE
2019-12-17 16:40:49 +08:00
%doc plugins/example*/*.c
%doc plugins/example4/nbdkit-example4-plugin
%doc plugins/lua/example.lua
%doc plugins/perl/example.pl
%doc plugins/python/examples/*.py
2019-12-17 16:40:49 +08:00
%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
2019-12-17 16:40:49 +08:00
%{_libdir}/pkgconfig/nbdkit.pc
%files bash-completion
2020-04-03 11:58:14 +08:00
%doc LICENSE
2019-12-17 16:40:49 +08:00
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/nbdkit
%files help
2020-04-03 11:58:14 +08:00
%{_mandir}/man1/nbdkit*.1*
%{_mandir}/man3/nbdkit-*.3*
%{_mandir}/man3/NBDKit.3.gz
2019-12-17 16:40:49 +08:00
%changelog
2023-10-17 17:30:19 +08:00
* Tue Oct 17 2023 Ge Wang <wang__ge@126.com> - 1.32.6-1
- update to version 1.32.6
* Thu Dec 30 2021 liyanan <liyanan32@huawei.com> - 1.29.11-1
- update to 1.29.11
2020-11-02 15:45:21 +08:00
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.6.2-7
- Remove subpackage nbdkit-python2-plugin
2020-06-24 16:40:39 +08:00
* 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.
2020-04-03 14:14:18 +08:00
* Fri Apr 3 2020 Ling Yang <lingyang2@huawei.com> - 1.6.2-4
- Rewrite description for nbdkit
2020-04-03 11:58:14 +08:00
* Fri Apr 3 2020 Ling Yang <lingyang2@huawei.com> - 1.6.2-3
- Fixed format for spec file
2019-12-17 16:40:49 +08:00
* Thu Dec 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.2-2
- Package init