Move supermin appliance to a subpackage
https://bugzilla.redhat.com/show_bug.cgi?id=1989514 Move the appliance to a subpackage (libguestfs-appliance). The main package depends on this new subpackage so in effect nothing changes for most users. However this allows the appliance to be replaced if there exists a package called "libguestfs-noappliance". This package is not provided anywhere, you have to provide the dependency or make the package yourself. But if you do this then libguestfs won't install the appliance and you are free to replace it with (eg) a fixed appliance.
This commit is contained in:
parent
4c961db464
commit
941da64078
@ -57,7 +57,7 @@ Summary: Access and modify virtual machine disk images
|
||||
Name: libguestfs
|
||||
Epoch: 1
|
||||
Version: 1.45.6
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
License: LGPLv2+
|
||||
|
||||
# Build only for architectures that have a kernel
|
||||
@ -309,8 +309,13 @@ BuildRequires: zfs-fuse
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# For building the appliance.
|
||||
Requires: supermin >= 5.1.18
|
||||
# Main package requires the appliance. This allows the appliance to
|
||||
# be replaced if there exists a package called
|
||||
# "libguestfs-noappliance". This package is not provided anywhere,
|
||||
# you have to provide the dependency or make the package yourself. If
|
||||
# you do then libguestfs won't install the appliance and you are free
|
||||
# to replace it with (eg) a fixed appliance.
|
||||
Requires: (%{name}-appliance = %{epoch}:%{version}-%{release} or %{name}-noappliance)
|
||||
|
||||
# The daemon dependencies are not included automatically, because it
|
||||
# is buried inside the appliance, so list them here.
|
||||
@ -417,6 +422,15 @@ Language bindings:
|
||||
%endif
|
||||
|
||||
|
||||
%package appliance
|
||||
Summary: Appliance for %{name}
|
||||
Requires: supermin >= 5.1.18
|
||||
|
||||
|
||||
%description appliance
|
||||
%{name}-appliance provides the appliance used by libguestfs.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development tools and libraries for %{name}
|
||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
@ -918,8 +932,6 @@ rm ocaml/html/.gitignore
|
||||
%{_bindir}/virt-copy-out
|
||||
%{_bindir}/virt-tar-in
|
||||
%{_bindir}/virt-tar-out
|
||||
%{_libdir}/guestfs/
|
||||
%exclude %{_libdir}/guestfs/supermin.d/zz-packages-*
|
||||
%{_libdir}/libguestfs.so.*
|
||||
%{_mandir}/man1/guestfish.1*
|
||||
%{_mandir}/man1/guestfs-faq.1*
|
||||
@ -940,6 +952,11 @@ rm ocaml/html/.gitignore
|
||||
%config(noreplace) %{_sysconfdir}/libguestfs-tools.conf
|
||||
|
||||
|
||||
%files appliance
|
||||
%{_libdir}/guestfs/
|
||||
%exclude %{_libdir}/guestfs/supermin.d/zz-packages-*
|
||||
|
||||
|
||||
%files devel
|
||||
%doc AUTHORS BUGS HACKING TODO README
|
||||
%doc examples/*.c
|
||||
@ -1122,6 +1139,10 @@ rm ocaml/html/.gitignore
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Aug 06 2021 Richard W.M. Jones <rjones@redhat.com> - 1:1.45.6-11
|
||||
- Fix license files.
|
||||
- Move appliance to separate subpackage (RHBZ#1989514).
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.45.6-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user