Blame SPECS/rhc.spec

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