- libguestfs is available only on selected arches
This commit is contained in:
parent
fc4520f139
commit
89736ecc17
17
nbdkit.spec
17
nbdkit.spec
@ -1,5 +1,9 @@
|
|||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
|
%ifarch %{arm} %{ix86} x86_64 ppc %{power64}
|
||||||
|
%global have_libguestfs 1
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: nbdkit
|
Name: nbdkit
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 3%{?dist}
|
Release: 3%{?dist}
|
||||||
@ -16,7 +20,9 @@ Patch2: 0002-tests-Test-the-nbdkit-command-line-more-thoroughly.patch
|
|||||||
Patch3: autotools.patch
|
Patch3: autotools.patch
|
||||||
|
|
||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
|
%if 0%{?have_libguestfs}
|
||||||
BuildRequires: libguestfs-devel
|
BuildRequires: libguestfs-devel
|
||||||
|
%endif
|
||||||
BuildRequires: libvirt-devel
|
BuildRequires: libvirt-devel
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
@ -69,6 +75,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
This package is a file serving plugin for %{name}.
|
This package is a file serving plugin for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?have_libguestfs}
|
||||||
%package plugin-guestfs
|
%package plugin-guestfs
|
||||||
Summary: libguestfs plugin for %{name}
|
Summary: libguestfs plugin for %{name}
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -78,6 +85,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
%description plugin-guestfs
|
%description plugin-guestfs
|
||||||
This package is a libguestfs plugin for %{name}.
|
This package is a libguestfs plugin for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package plugin-gzip
|
%package plugin-gzip
|
||||||
@ -179,9 +187,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|||||||
# libguestfs 1.20 in Fedora 18 doesn't support NBD client protocol, so
|
# libguestfs 1.20 in Fedora 18 doesn't support NBD client protocol, so
|
||||||
# the tests cannot be run.
|
# the tests cannot be run.
|
||||||
%if 0%{?fedora} >= 19
|
%if 0%{?fedora} >= 19
|
||||||
# Unlikely that libguestfs will work on ARM, so don't try running the
|
# Unlikely that libguestfs will work on ARM and PPC, so don't try running the
|
||||||
# tests there.
|
# tests there.
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm} ppc %{power64}
|
||||||
make check
|
make check
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -207,10 +215,12 @@ make check
|
|||||||
%{_mandir}/man1/nbdkit-file-plugin.1*
|
%{_mandir}/man1/nbdkit-file-plugin.1*
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?have_libguestfs}
|
||||||
%files plugin-guestfs
|
%files plugin-guestfs
|
||||||
%doc LICENSE README
|
%doc LICENSE README
|
||||||
%{_libdir}/%{name}/plugins/nbdkit-guestfs-plugin.so
|
%{_libdir}/%{name}/plugins/nbdkit-guestfs-plugin.so
|
||||||
%{_mandir}/man1/nbdkit-guestfs-plugin.1*
|
%{_mandir}/man1/nbdkit-guestfs-plugin.1*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files plugin-gzip
|
%files plugin-gzip
|
||||||
@ -254,6 +264,9 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 06 2014 Dan Horák <dan[at]danny.cz> - 1.1.6-4
|
||||||
|
- libguestfs is available only on selected arches
|
||||||
|
|
||||||
* Fri Feb 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.1.6-3
|
* Fri Feb 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.1.6-3
|
||||||
- Backport some upstream patches, fixing a minor bug and adding more tests.
|
- Backport some upstream patches, fixing a minor bug and adding more tests.
|
||||||
- Enable the tests since kernel bug is fixed.
|
- Enable the tests since kernel bug is fixed.
|
||||||
|
Loading…
Reference in New Issue
Block a user