mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
spec: Add --with=virtconvert
We may consider removing virt-convert in the future, and we don't want to ship it on RHEL. So app some spec machinery to exclude it from the RPM
This commit is contained in:
parent
4973564e65
commit
9ed926a898
@ -8,6 +8,7 @@
|
||||
# https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Python_bytecompilation
|
||||
%global __python %{__python3}
|
||||
|
||||
%bcond_with virtconvert
|
||||
|
||||
%global with_guestfs 0
|
||||
%global default_hvs "qemu,xen,lxc"
|
||||
@ -95,8 +96,10 @@ Requires: libvirt-client
|
||||
|
||||
Provides: virt-install
|
||||
Provides: virt-clone
|
||||
Provides: virt-convert
|
||||
Provides: virt-xml
|
||||
%if %{with virtconvert}
|
||||
Provides: virt-convert
|
||||
%endif
|
||||
|
||||
%description -n virt-install
|
||||
Package includes several command line utilities, including virt-install
|
||||
@ -123,6 +126,11 @@ machine).
|
||||
install -O1 --root=%{buildroot}
|
||||
%find_lang %{name}
|
||||
|
||||
%if %{without virtconvert}
|
||||
find %{buildroot} -name virt-convert\* -delete
|
||||
rm -rf %{buildroot}/%{_datadir}/%{name}/virtconv
|
||||
%endif
|
||||
|
||||
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
||||
# The format is ideal for upstream, but not a distro. See:
|
||||
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
||||
@ -152,27 +160,32 @@ done
|
||||
%files common -f %{name}.lang
|
||||
%dir %{_datadir}/%{name}
|
||||
|
||||
%if %{with virtconvert}
|
||||
%{_datadir}/%{name}/virtconv
|
||||
%endif
|
||||
%{_datadir}/%{name}/virtinst
|
||||
|
||||
|
||||
%files -n virt-install
|
||||
%{_mandir}/man1/virt-install.1*
|
||||
%{_mandir}/man1/virt-clone.1*
|
||||
%{_mandir}/man1/virt-convert.1*
|
||||
%{_mandir}/man1/virt-xml.1*
|
||||
|
||||
%{_datadir}/%{name}/virt-install
|
||||
%{_datadir}/%{name}/virt-clone
|
||||
%{_datadir}/%{name}/virt-convert
|
||||
%{_datadir}/%{name}/virt-xml
|
||||
|
||||
%{_datadir}/bash-completion/completions/virt-install
|
||||
%{_datadir}/bash-completion/completions/virt-clone
|
||||
%{_datadir}/bash-completion/completions/virt-convert
|
||||
%{_datadir}/bash-completion/completions/virt-xml
|
||||
|
||||
%{_bindir}/virt-install
|
||||
%{_bindir}/virt-clone
|
||||
%{_bindir}/virt-convert
|
||||
%{_bindir}/virt-xml
|
||||
|
||||
%if %{with virtconvert}
|
||||
%{_bindir}/virt-convert
|
||||
%{_datadir}/bash-completion/completions/virt-convert
|
||||
%{_datadir}/%{name}/virt-convert
|
||||
%{_mandir}/man1/virt-convert.1*
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user