Blame SPECS/rhc.spec

15b0da
%define debug_package %{nil}
15b0da
15b0da
%global go_arches x86_64 s390x ppc64le
15b0da
15b0da
Name:    rhc
15b0da
Version: 0.2.0
15b0da
Release: 2%{?dist}
15b0da
Epoch:   1
15b0da
Summary: Message dispatch agent for cloud-connected systems
15b0da
License: GPLv3
15b0da
URL:     https://github.com/redhatinsights/yggdrasil
15b0da
15b0da
Source0: %{name}-%{version}.tar.gz
15b0da
Source1: config.toml
15b0da
15b0da
Patch0:  Use-gzip-c-instead-of-k.patch
15b0da
Patch1:  build-Remove-the-Makefile-preamble.patch
15b0da
15b0da
ExclusiveArch: %{go_arches}
15b0da
15b0da
BuildRequires: git
15b0da
BuildRequires: go-toolset-1.15-golang
15b0da
BuildRequires: dbus-devel
15b0da
BuildRequires: systemd-devel
15b0da
15b0da
15b0da
%description
15b0da
%{name} is pair of utilities that register systems with RHSM and establishes
15b0da
a receiving queue for instructions to be sent to the system via a broker.
15b0da
15b0da
%prep
15b0da
%autosetup -p1
15b0da
15b0da
%global ldflags %{expand:-linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'}
15b0da
%global buildflags %{expand:-compiler gc -buildmode pie -tags=\\"rpm_crashtraceback libtrust_openssl\\" -ldflags \\"%ldflags\\" -a -v -x %{?**}}
15b0da
15b0da
%build
15b0da
CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all"  \
15b0da
BUILDFLAGS="%buildflags" \
15b0da
scl enable go-toolset-1.15 -- \
15b0da
make PREFIX=%{_prefix} \
15b0da
     SYSCONFDIR=%{_sysconfdir} \
15b0da
     LOCALSTATEDIR=%{_localstatedir} \
15b0da
     SHORTNAME=%{name} \
15b0da
     LONGNAME=%{name} \
15b0da
     PKGNAME=%{name} \
15b0da
     'BRANDNAME=Red Hat connector' \
15b0da
     TOPICPREFIX=redhat/insights \
15b0da
     VERSION=%{version} \
15b0da
     DATAHOST=cert.cloud.redhat.com \
15b0da
     'PROVIDER=Red Hat'
15b0da
15b0da
15b0da
%install
15b0da
CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all"  \
15b0da
BUILDFLAGS="%buildflags" \
15b0da
scl enable go-toolset-1.15 -- \
15b0da
make PREFIX=%{_prefix} \
15b0da
     SYSCONFDIR=%{_sysconfdir} \
15b0da
     LOCALSTATEDIR=%{_localstatedir} \
15b0da
     DESTDIR=%{buildroot} \
15b0da
     SHORTNAME=%{name} \
15b0da
     LONGNAME=%{name} \
15b0da
     PKGNAME=%{name} \
15b0da
     'BRANDNAME=Red Hat connector' \
15b0da
     TOPICPREFIX=redhat/insights \
15b0da
     VERSION=%{version} \
15b0da
     DATAHOST=cert.cloud.redhat.com \
15b0da
     'PROVIDER=Red Hat' \
15b0da
     install
15b0da
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/
15b0da
15b0da
15b0da
%files
15b0da
%doc README.md
15b0da
%{_bindir}/%{name}
15b0da
%{_sbindir}/%{name}d
15b0da
%config(noreplace) %{_sysconfdir}/%{name}/config.toml
15b0da
%{_unitdir}/%{name}d.service
15b0da
%{_datadir}/bash-completion/completions/*
15b0da
%{_mandir}/man1/*
15b0da
%{_prefix}/share/pkgconfig/%{name}.pc
15b0da
%{_libexecdir}/%{name}
15b0da
15b0da
15b0da
%changelog
15b0da
* Wed Aug 25 2021 Link Dupont <link@redhat.com> - 0.2.0-2
15b0da
- Rebuild for new build target
15b0da
15b0da
* Mon Jun 28 2021 Link Dupont <link@redhat.com> - 0.2.0-1
15b0da
- New upstream release
15b0da
- Mark config file as a noreplace config file
15b0da
15b0da
* Fri Apr  9 2021 Link Dupont <link@redhat.com> - 0.1.4-1
15b0da
- New upstream release
15b0da
15b0da
* Fri Feb 19 2021 Link Dupont <link@redhat.com> - 0.1.2-2
15b0da
- Update default broker URI
15b0da
- Set Epoch to 1
15b0da
15b0da
* Thu Feb 18 2021 Link Dupont <link@redhat.com> - 0.1.2-1
15b0da
- New upstream release
15b0da
15b0da
* Wed Feb 17 2021 Link Dupont <link@redhat.com> - 0.1.1-1
15b0da
- New upstream release
15b0da
15b0da
* Fri Feb 12 2021 Link Dupont <link@redhat.com> - 0.1-1
15b0da
- Initial release