-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxen-guest-agent.spec.in
51 lines (39 loc) · 1.25 KB
/
xen-guest-agent.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name: xen-guest-agent
Version: @@VERSION@@
%define upstreamversion @@UPSTREAMVERSION@@
Release: 0%{dist}
Summary: Agent for Xen virtual machine
License: AGPL-3.0-only
URL: https://gitlab.com/xen-project/xen-guest-agent/
# main "source" is binary built with Rustup
Source0: xen-guest-agent
Source1: xen-guest-agent.service
BuildRequires: systemd-devel
Conflicts: xe-guest-utilities
Obsoletes: xe-guest-utilities
Conflicts: xe-guest-utilities-latest
Obsoletes: xe-guest-utilities-latest
%global _description %{expand:
%{summary}.}
%define _debugsource_template %{nil}
%debug_package
%description %{_description}
%install
%{__install} -m755 -d %{buildroot}%{_sbindir}
%{__install} -m755 %{SOURCE0} %{buildroot}/%{_sbindir}/xen-guest-agent
%{__install} -m 755 -d %{buildroot}%{_unitdir}
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
%files
%{_sbindir}/xen-guest-agent
%{_unitdir}/xen-guest-agent.service
%post
%systemd_post xen-guest-agent.service
# enable on first install
if [ $1 -eq 1 ]; then
/usr/bin/systemctl enable --now xen-guest-agent.service
fi
%postun
%systemd_postun xen-guest-agent.service
%changelog
* @@DATE@@ @@AUTHOR@@ - @@VERSION@@-0
- Upstream package from release binaries