From d055f4f395795ad2b71f00da7bf8b7d2afcd3de8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 18 2021 07:02:23 +0000 Subject: import rhc-0.1.2-2.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80c3eb9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rhc-0.1.2.tar.gz diff --git a/.rhc.metadata b/.rhc.metadata new file mode 100644 index 0000000..35b81e9 --- /dev/null +++ b/.rhc.metadata @@ -0,0 +1 @@ +8e753a9b4a9047ee557ba0db57f1fd60eca5614d SOURCES/rhc-0.1.2.tar.gz diff --git a/SOURCES/config.toml b/SOURCES/config.toml new file mode 100644 index 0000000..b6fc5be --- /dev/null +++ b/SOURCES/config.toml @@ -0,0 +1,6 @@ +# yggdrasil global configuration settings + +broker = ["wss://connect.cloud.redhat.com:443"] +cert-file = "/etc/pki/consumer/cert.pem" +key-file = "/etc/pki/consumer/key.pem" +log-level = "error" diff --git a/SPECS/rhc.spec b/SPECS/rhc.spec new file mode 100644 index 0000000..34a21b5 --- /dev/null +++ b/SPECS/rhc.spec @@ -0,0 +1,79 @@ +%define debug_package %{nil} + +Name: rhc +Version: 0.1.2 +Release: 2%{?dist} +Epoch: 1 +Summary: Message dispatch agent for cloud-connected systems +License: GPLv3 +URL: https://github.com/redhatinsights/yggdrasil + +Source0: %{name}-%{version}.tar.gz +Source1: config.toml + +ExclusiveArch: %{go_arches} + +BuildRequires: git +BuildRequires: golang +BuildRequires: dbus-devel +BuildRequires: systemd-devel + + +%description +%{name} 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 + + +%build +make PREFIX=%{_prefix} \ + SYSCONFDIR=%{_sysconfdir} \ + LOCALSTATEDIR=%{_localstatedir} \ + SHORTNAME=%{name} \ + LONGNAME=%{name} \ + PKGNAME=%{name} \ + 'BRANDNAME=Red Hat connector' \ + TOPICPREFIX=redhat/insights + + +%install +make PREFIX=%{_prefix} \ + SYSCONFDIR=%{_sysconfdir} \ + LOCALSTATEDIR=%{_localstatedir} \ + DESTDIR=%{buildroot} \ + SHORTNAME=%{name} \ + LONGNAME=%{name} \ + PKGNAME=%{name} \ + 'BRANDNAME=Red Hat connector' \ + TOPICPREFIX=redhat/insights \ + install +%{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/ + + +%files +%doc README.md +%{_bindir}/%{name} +%{_sbindir}/%{name}d +%{_sysconfdir}/%{name}/config.toml +%{_unitdir}/%{name}d.service +%{_datadir}/bash-completion/completions/* +%{_mandir}/man1/* +%{_prefix}/share/pkgconfig/%{name}.pc +%{_libexecdir}/%{name} + + +%changelog +* Fri Feb 19 2021 Link Dupont - 0.1.2-2 +- Update default broker URI +- Set Epoch to 1 + +* Thu Feb 18 2021 Link Dupont - 0.1.2-1 +- New upstream release + +* Wed Feb 17 2021 Link Dupont - 0.1.1-1 +- New upstream release + +* Fri Feb 12 2021 Link Dupont - 0.1-1 +- Initial release