Fix EPEL8 subpackage conflict
See: https://bugzilla.redhat.com/show_bug.cgi?id=2254077 Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
This commit is contained in:
parent
e5698686f8
commit
dd46d151e7
@ -1,3 +1,10 @@
|
|||||||
|
# Disable the growpart subpackage in EPEL, as RHEL ships it on its own
|
||||||
|
%if 0%{?epel}
|
||||||
|
%bcond_with growpart
|
||||||
|
%else
|
||||||
|
%bcond_without growpart
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Cloud image management utilities
|
Summary: Cloud image management utilities
|
||||||
Name: cloud-utils
|
Name: cloud-utils
|
||||||
Version: 0.33
|
Version: 0.33
|
||||||
@ -25,6 +32,7 @@ cloud-utils package provides several scripts that wrap the complicated tasks
|
|||||||
with a much simpler interface.
|
with a much simpler interface.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with growpart}
|
||||||
%package growpart
|
%package growpart
|
||||||
Summary: A script for growing a partition
|
Summary: A script for growing a partition
|
||||||
|
|
||||||
@ -41,6 +49,7 @@ Recommends: lvm2
|
|||||||
This package provides the growpart script for growing a partition. It is
|
This package provides the growpart script for growing a partition. It is
|
||||||
primarily used in cloud images in conjunction with the dracut-modules-growroot
|
primarily used in cloud images in conjunction with the dracut-modules-growroot
|
||||||
package to grow the root partition on first boot.
|
package to grow the root partition on first boot.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package cloud-localds
|
%package cloud-localds
|
||||||
@ -143,17 +152,24 @@ rm -f %{buildroot}%{_mandir}/man1/cloud-run-instances.*
|
|||||||
rm -f %{buildroot}%{_bindir}/cloud-publish-*
|
rm -f %{buildroot}%{_bindir}/cloud-publish-*
|
||||||
rm -f %{buildroot}%{_mandir}/man1/cloud-publish-*
|
rm -f %{buildroot}%{_mandir}/man1/cloud-publish-*
|
||||||
|
|
||||||
|
%if %{without growpart}
|
||||||
|
rm -f %{buildroot}%{_bindir}/growpart
|
||||||
|
rm -f %{buildroot}%{_mandir}/man1/growpart.*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with growpart}
|
||||||
%files growpart
|
%files growpart
|
||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/growpart
|
%{_bindir}/growpart
|
||||||
%doc %{_mandir}/man1/growpart.*
|
%doc %{_mandir}/man1/growpart.*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files cloud-localds
|
%files cloud-localds
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user