Blame SPECS/rhc.spec

d055f4
%define debug_package %{nil}
d055f4
d055f4
Name:    rhc
93d32d
Version: 0.1.4
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
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
d055f4
%autosetup
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} \
93d32d
     DATAHOST=cert.cloud.redhat.com
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 \
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
d055f4
%{_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
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