|
|
e97745 |
%define debug_package %{nil}
|
|
|
e97745 |
|
|
|
ec5d98 |
%global buildflags -buildmode pie -compiler gc -a -v -x
|
|
|
ec5d98 |
%global goldflags %{expand:-linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'}
|
|
|
ec5d98 |
|
|
|
e97745 |
Name: rhc
|
|
|
f94f6d |
Version: 0.2.0
|
|
|
ec5d98 |
Release: 5%{?dist}
|
|
|
e97745 |
Epoch: 1
|
|
|
e97745 |
Summary: Message dispatch agent for cloud-connected systems
|
|
|
e97745 |
License: GPLv3
|
|
|
e97745 |
URL: https://github.com/redhatinsights/yggdrasil
|
|
|
e97745 |
|
|
|
e97745 |
Source0: %{name}-%{version}.tar.gz
|
|
|
e97745 |
Source1: config.toml
|
|
|
e97745 |
|
|
|
f94f6d |
# Fixed upstream
|
|
|
f94f6d |
Patch0: 0001-fix-Improve-output-during-disconnect.patch
|
|
|
f94f6d |
Patch1: 0002-feat-Include-Description-in-help-output.patch
|
|
|
c57bbd |
Patch2: 0003-fix-report-active-dispatchers-when-connecting-to-bro.patch
|
|
|
ec5d98 |
Patch3: ldflags-env.patch
|
|
|
f94f6d |
|
|
|
e97745 |
ExclusiveArch: %{go_arches}
|
|
|
e97745 |
|
|
|
e97745 |
BuildRequires: git
|
|
|
e97745 |
BuildRequires: golang
|
|
|
e97745 |
BuildRequires: dbus-devel
|
|
|
e97745 |
BuildRequires: systemd-devel
|
|
|
e97745 |
|
|
|
e97745 |
|
|
|
e97745 |
%description
|
|
|
e97745 |
%{name} is pair of utilities that register systems with RHSM and establishes
|
|
|
e97745 |
a receiving queue for instructions to be sent to the system via a broker.
|
|
|
e97745 |
|
|
|
e97745 |
%prep
|
|
|
f94f6d |
%autosetup -p1
|
|
|
e97745 |
|
|
|
e97745 |
|
|
|
e97745 |
%build
|
|
|
ec5d98 |
%set_build_flags
|
|
|
ec5d98 |
export BUILDFLAGS="%{buildflags}"
|
|
|
ec5d98 |
export LDFLAGS="%{goldflags}"
|
|
|
e97745 |
make PREFIX=%{_prefix} \
|
|
|
e97745 |
SYSCONFDIR=%{_sysconfdir} \
|
|
|
e97745 |
LOCALSTATEDIR=%{_localstatedir} \
|
|
|
e97745 |
SHORTNAME=%{name} \
|
|
|
e97745 |
LONGNAME=%{name} \
|
|
|
e97745 |
PKGNAME=%{name} \
|
|
|
e97745 |
'BRANDNAME=Red Hat connector' \
|
|
|
4d5422 |
TOPICPREFIX=redhat/insights \
|
|
|
4d5422 |
VERSION=%{version} \
|
|
|
f94f6d |
DATAHOST=cert.cloud.redhat.com \
|
|
|
f94f6d |
'PROVIDER=Red Hat'
|
|
|
e97745 |
|
|
|
e97745 |
|
|
|
e97745 |
%install
|
|
|
ec5d98 |
%set_build_flags
|
|
|
ec5d98 |
export BUILDFLAGS="%{buildflags}"
|
|
|
ec5d98 |
export LDFLAGS="%{goldflags}"
|
|
|
e97745 |
make PREFIX=%{_prefix} \
|
|
|
e97745 |
SYSCONFDIR=%{_sysconfdir} \
|
|
|
e97745 |
LOCALSTATEDIR=%{_localstatedir} \
|
|
|
e97745 |
DESTDIR=%{buildroot} \
|
|
|
e97745 |
SHORTNAME=%{name} \
|
|
|
e97745 |
LONGNAME=%{name} \
|
|
|
e97745 |
PKGNAME=%{name} \
|
|
|
e97745 |
'BRANDNAME=Red Hat connector' \
|
|
|
e97745 |
TOPICPREFIX=redhat/insights \
|
|
|
4d5422 |
VERSION=%{version} \
|
|
|
4d5422 |
DATAHOST=cert.cloud.redhat.com \
|
|
|
f94f6d |
'PROVIDER=Red Hat' \
|
|
|
e97745 |
install
|
|
|
e97745 |
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
e97745 |
|
|
|
e97745 |
|
|
|
e97745 |
%files
|
|
|
e97745 |
%doc README.md
|
|
|
e97745 |
%{_bindir}/%{name}
|
|
|
e97745 |
%{_sbindir}/%{name}d
|
|
|
f94f6d |
%config(noreplace) %{_sysconfdir}/%{name}/config.toml
|
|
|
e97745 |
%{_unitdir}/%{name}d.service
|
|
|
e97745 |
%{_datadir}/bash-completion/completions/*
|
|
|
e97745 |
%{_mandir}/man1/*
|
|
|
e97745 |
%{_prefix}/share/pkgconfig/%{name}.pc
|
|
|
e97745 |
%{_libexecdir}/%{name}
|
|
|
e97745 |
|
|
|
e97745 |
|
|
|
e97745 |
%changelog
|
|
|
ec5d98 |
* Tue Nov 16 2021 Link Dupont <link@redhat.com> - 0.2.0-5
|
|
|
ec5d98 |
- Enable building with PIE and other build flags (Resolves: RHBZ#2023489)
|
|
|
ec5d98 |
|
|
|
ec5d98 |
* Fri Sep 24 2021 Link Dupont <link@redhat.com> - 0.2.0-4
|
|
|
ec5d98 |
- Fix an issue reporting workers on reconnect (Resolves: RHBZ#2009641)
|
|
|
c57bbd |
|
|
|
f94f6d |
* Thu Jul 1 2021 Link Dupont <link@redhat.com> - 0.2.0-2
|
|
|
f94f6d |
- Add two patches that fix some UX issues
|
|
|
f94f6d |
|
|
|
f94f6d |
* Mon Jun 28 2021 Link Dupont <link@redhat.com> - 0.2.0-1
|
|
|
f94f6d |
- New upstream release
|
|
|
f94f6d |
- Mark config file as a noreplace config file
|
|
|
f94f6d |
|
|
|
fd385f |
* Wed Apr 28 2021 Link Dupont <link@redhat.com> - 0.1.4-2
|
|
|
fd385f |
- Rebuild for fixed binutils on aarch64 (Resolves: RHBZ#1954449)
|
|
|
fd385f |
|
|
|
4d5422 |
* Fri Apr 9 2021 Link Dupont <link@redhat.com> - 0.1.4-1
|
|
|
4d5422 |
- New upstream release
|
|
|
4d5422 |
|
|
|
e97745 |
* Fri Feb 19 2021 Link Dupont <link@redhat.com> - 0.1.2-2
|
|
|
e97745 |
- Update default broker URI
|
|
|
e97745 |
- Set Epoch to 1
|
|
|
e97745 |
|
|
|
e97745 |
* Thu Feb 18 2021 Link Dupont <link@redhat.com> - 0.1.2-1
|
|
|
e97745 |
- New upstream release
|
|
|
e97745 |
|
|
|
e97745 |
* Wed Feb 17 2021 Link Dupont <link@redhat.com> - 0.1.1-1
|
|
|
e97745 |
- New upstream release
|
|
|
e97745 |
|
|
|
e97745 |
* Fri Feb 12 2021 Link Dupont <link@redhat.com> - 0.1-1
|
|
|
e97745 |
- Initial release
|