spec: split out lvm2 support into sub-package
The LVM2 support bits, especially the host service, depend on lvm2 tooling. Since not every user of osbuild may want to build images with LVM2 split that out into its own sub-package and have that it depend on LVM2.
This commit is contained in:
parent
4d9a0b3e9f
commit
0261b96e55
1 changed files with 16 additions and 0 deletions
16
osbuild.spec
16
osbuild.spec
|
|
@ -68,6 +68,15 @@ Summary: %{summary}
|
|||
%description -n python3-%{pypi_name}
|
||||
A build system for OS images
|
||||
|
||||
%package lvm2
|
||||
Summary: LVM2 support
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: lvm2
|
||||
|
||||
%description lvm2
|
||||
Contains the necessary stages and device host
|
||||
services to build LVM2 based images.
|
||||
|
||||
%package ostree
|
||||
Summary: OSTree support
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
|
@ -167,6 +176,9 @@ exit 0
|
|||
%{_mandir}/man5/%{name}-manifest.5*
|
||||
%{_datadir}/osbuild/schemas
|
||||
%{pkgdir}
|
||||
# the following files are in the lvm2 sub-package
|
||||
%exclude %{pkgdir}/devices/org.osbuild.lvm2*
|
||||
%exclude %{pkgdir}/stages/org.osbuild.lvm2*
|
||||
# the following files are in the ostree sub-package
|
||||
%exclude %{pkgdir}/assemblers/org.osbuild.ostree*
|
||||
%exclude %{pkgdir}/inputs/org.osbuild.ostree*
|
||||
|
|
@ -180,6 +192,10 @@ exit 0
|
|||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
|
||||
%files lvm2
|
||||
%{pkgdir}/devices/org.osbuild.lvm2*
|
||||
%{pkgdir}/stages/org.osbuild.lvm2*
|
||||
|
||||
%files ostree
|
||||
%{pkgdir}/assemblers/org.osbuild.ostree*
|
||||
%{pkgdir}/inputs/org.osbuild.ostree*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue