forked from RedHatInsights/yggdrasil
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathyggdrasil.spec.in
79 lines (62 loc) · 1.91 KB
/
yggdrasil.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This RPM spec file exists primarily to enable CI/CD pipelines and automatic
# testing of built RPMs. This RPM can be used as a suitable baseline for a
# proper distribution package, but changes should be made to suit the needs of
# the package.
%define debug_package %{nil}
Name: @LONGNAME@
Version: @VERSION@
Release: @RELEASE@
Summary: Message dispatch agent for cloud-connected systems
License: GPLv3
URL: https://github.com/redhatinsights/yggdrasil
Source: %{name}-%{version}-%{release}.tar.gz
ExclusiveArch: %{go_arches}
BuildRequires: git
BuildRequires: golang
BuildRequires: dbus-devel
BuildRequires: systemd-devel
%description
yggdrasil is pair of utilities that register systems with RHSM and establishes
a receiving queue for instructions to be sent to the system via a broker.
%prep
%autosetup -n %{name}-%{version}-%{release}
%build
export CGO_ENABLED=0
make PREFIX=%{_prefix} \
SYSCONFDIR=%{_sysconfdir} \
LOCALSTATEDIR=%{_localstatedir} \
LIBEXECDIR=%{_libexecdir} \
SHORTNAME=@SHORTNAME@ \
LONGNAME=@LONGNAME@ \
PKGNAME=@PKGNAME@ \
BRANDNAME=@BRANDNAME@ \
TOPICPREFIX=@TOPICPREFIX@ \
VERSION=%{version} \
DATAHOST=@DATAHOST@ \
'PROVIDER=@PROVIDER@' \
ARCH=%{_arch}
%install
make PREFIX=%{_prefix} \
SYSCONFDIR=%{_sysconfdir} \
LOCALSTATEDIR=%{_localstatedir} \
LIBEXECDIR=%{_libexecdir} \
DESTDIR=%{buildroot} \
SHORTNAME=@SHORTNAME@ \
LONGNAME=@LONGNAME@ \
PKGNAME=@PKGNAME@ \
BRANDNAME=@BRANDNAME@ \
TOPICPREFIX=@TOPICPREFIX@ \
VERSION=%{version} \
DATAHOST=@DATAHOST@ \
'PROVIDER=@PROVIDER@' \
install
%files
%doc README.md doc/tags.toml
%{_sbindir}/@SHORTNAME@d
%config(noreplace) %{_sysconfdir}/@LONGNAME@/config.toml
%{_unitdir}/@[email protected]
%{_datadir}/bash-completion/completions/*
%{_mandir}/man1/*
%{_prefix}/share/pkgconfig/@[email protected]
%{_libexecdir}/@LONGNAME@
%changelog