osbuild-dev: include in fedora package
This commit is contained in:
parent
9525655fb4
commit
6ad906085c
2 changed files with 13 additions and 1 deletions
11
osbuild.spec
11
osbuild.spec
|
|
@ -116,6 +116,13 @@ Summary: Extra tools and utilities
|
|||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: python3-pyyaml
|
||||
|
||||
# These are required for `osbuild-dev`, only packaged for Fedora
|
||||
%if 0%{?fedora}
|
||||
Requires: python3-rich
|
||||
Requires: python3-attrs
|
||||
Requires: python3-typer
|
||||
%endif
|
||||
|
||||
%description tools
|
||||
Contains additional tools and utilities for development of
|
||||
manifests and osbuild.
|
||||
|
|
@ -181,6 +188,9 @@ install -D -p -m 0644 selinux/osbuild.if %{buildroot}%{_datadir}/selinux/devel/i
|
|||
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||
install -p -m 0755 data/10-osbuild-inhibitor.rules %{buildroot}%{_udevrulesdir}
|
||||
|
||||
# Remove `osbuild-dev` on non-fedora systems
|
||||
%{!?fedora:rm %{buildroot}%{_bindir}/osbuild-dev}
|
||||
|
||||
%check
|
||||
exit 0
|
||||
# We have some integration tests, but those require running a VM, so that would
|
||||
|
|
@ -249,6 +259,7 @@ fi
|
|||
|
||||
%files tools
|
||||
%{_bindir}/osbuild-mpp
|
||||
%{?fedora:%{_bindir}/osbuild-dev}
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -15,6 +15,7 @@ setuptools.setup(
|
|||
]
|
||||
},
|
||||
scripts=[
|
||||
"tools/osbuild-mpp"
|
||||
"tools/osbuild-mpp",
|
||||
"tools/osbuild-dev"
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue