From 81073163114357d47ee0d29ce57920999941f3b9 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Mon, 6 Jan 2020 16:56:36 -0500 Subject: [PATCH] Add coreos-installer-systemd subpackage Systemd units and supporting executables were added upstream in https://github.com/coreos/coreos-installer/pull/119. Let's add a subpackage so we can deliver them in Fedora, but separate from the main installer binary that people may want to execute outside of the service. --- rust-coreos-installer.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/rust-coreos-installer.spec b/rust-coreos-installer.spec index 396083f..0ea2b43 100644 --- a/rust-coreos-installer.spec +++ b/rust-coreos-installer.spec @@ -20,6 +20,7 @@ Patch0: coreos-installer-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging +BuildRequires: systemd-rpm-macros %global _description %{expand: coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal @@ -58,6 +59,25 @@ Obsoletes: coreos-installer-dracut < 0.0.1 %install %cargo_install +# Install binaries, units, targets, generators for running via systemd +install -D -m 0750 -t %{buildroot}%{_libexecdir} systemd/coreos-installer-service +install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.service +install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-reboot.service +install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-noreboot.service +install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.target +install -D -m 0750 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator + +%package -n %{crate}-systemd +Summary: Systemd service files for %{crate} +Requires: %{crate} = %{version}-%{release} + +%description -n %{crate}-systemd +Systemd service files for %{crate} + +%files -n %{crate}-systemd +%{_libexecdir}/* +%{_unitdir}/* +%{_systemdgeneratordir}/* %if %{with check} %check @@ -68,6 +88,8 @@ Obsoletes: coreos-installer-dracut < 0.0.1 * Wed Jan 08 2020 Dusty Mabe - 0.1.2-1 - Bump to new upstream release 0.1.2 - Release notes: https://github.com/coreos/coreos-installer/releases/tag/v0.1.2 +- Update spec file to include systemd units from upstream + - These were added upstream in https://github.com/coreos/coreos-installer/pull/119 * Fri Dec 20 17:57:28 UTC 2019 Robert Fairley - 0.1.1-1 - Initial package