Blame SPECS/rhc.spec

d055f4
%define debug_package %{nil}
d055f4
d055f4
Name:    rhc
7d26d3
Version: 0.2.0
93d32d
Release: 1%{?dist}
d055f4
Epoch:   1
d055f4
Summary: Message dispatch agent for cloud-connected systems
d055f4
License: GPLv3
d055f4
URL:     https://github.com/redhatinsights/yggdrasil
d055f4
d055f4
Source0: %{name}-%{version}.tar.gz
d055f4
Source1: config.toml
d055f4
7d26d3
# Fixed upstream
7d26d3
Patch0:  0001-fix-Improve-output-during-disconnect.patch
7d26d3
Patch1:  0002-feat-Include-Description-in-help-output.patch
7d26d3
d055f4
ExclusiveArch: %{go_arches}
d055f4
d055f4
BuildRequires: git
d055f4
BuildRequires: golang
d055f4
BuildRequires: dbus-devel
d055f4
BuildRequires: systemd-devel
d055f4
d055f4
d055f4
%description
d055f4
%{name} is pair of utilities that register systems with RHSM and establishes
d055f4
a receiving queue for instructions to be sent to the system via a broker.
d055f4
d055f4
%prep
7d26d3
%autosetup -p1
d055f4
d055f4
d055f4
%build
d055f4
make PREFIX=%{_prefix} \
d055f4
     SYSCONFDIR=%{_sysconfdir} \
d055f4
     LOCALSTATEDIR=%{_localstatedir} \
d055f4
     SHORTNAME=%{name} \
d055f4
     LONGNAME=%{name} \
d055f4
     PKGNAME=%{name} \
d055f4
     'BRANDNAME=Red Hat connector' \
93d32d
     TOPICPREFIX=redhat/insights \
93d32d
     VERSION=%{version} \
7d26d3
     DATAHOST=cert.cloud.redhat.com \
7d26d3
     'PROVIDER=Red Hat'
d055f4
d055f4
d055f4
%install
d055f4
make PREFIX=%{_prefix} \
d055f4
     SYSCONFDIR=%{_sysconfdir} \
d055f4
     LOCALSTATEDIR=%{_localstatedir} \
d055f4
     DESTDIR=%{buildroot} \
d055f4
     SHORTNAME=%{name} \
d055f4
     LONGNAME=%{name} \
d055f4
     PKGNAME=%{name} \
d055f4
     'BRANDNAME=Red Hat connector' \
d055f4
     TOPICPREFIX=redhat/insights \
93d32d
     VERSION=%{version} \
93d32d
     DATAHOST=cert.cloud.redhat.com \
7d26d3
     'PROVIDER=Red Hat' \
d055f4
     install
d055f4
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/
d055f4
d055f4
d055f4
%files
d055f4
%doc README.md
d055f4
%{_bindir}/%{name}
d055f4
%{_sbindir}/%{name}d
7d26d3
%config(noreplace) %{_sysconfdir}/%{name}/config.toml
d055f4
%{_unitdir}/%{name}d.service
d055f4
%{_datadir}/bash-completion/completions/*
d055f4
%{_mandir}/man1/*
d055f4
%{_prefix}/share/pkgconfig/%{name}.pc
d055f4
%{_libexecdir}/%{name}
d055f4
d055f4
d055f4
%changelog
7d26d3
* Mon Aug 23 2021 Link Dupont <link@redhat.com> - 0.2.0-1
7d26d3
- New upstream release
7d26d3
- Mark config file as a noreplace config file
7d26d3
- Add two patches that fix some UX issues
7d26d3
93d32d
* Fri Apr  9 2021 Link Dupont <link@redhat.com> - 0.1.4-1
93d32d
- New upstream release
93d32d
d055f4
* Fri Feb 19 2021 Link Dupont <link@redhat.com> - 0.1.2-2
d055f4
- Update default broker URI
d055f4
- Set Epoch to 1
d055f4
d055f4
* Thu Feb 18 2021 Link Dupont <link@redhat.com> - 0.1.2-1
d055f4
- New upstream release
d055f4
d055f4
* Wed Feb 17 2021 Link Dupont <link@redhat.com> - 0.1.1-1
d055f4
- New upstream release
d055f4
d055f4
* Fri Feb 12 2021 Link Dupont <link@redhat.com> - 0.1-1
d055f4
- Initial release