Blame SPECS/rhc-worker-playbook.spec

9a984e
%define debug_package %{nil}
9a984e
d3519e
Name:       rhc-worker-playbook
d3519e
Summary:    Red Hat connect worker for launching Ansible Runner
9a984e
Version:    0.1.4
9a984e
Release:    1%{?dist}
d3519e
License:    GPLv2+
9a984e
Source:     rhc-worker-playbook-0.1.4.tar.gz
9a984e
9a984e
ExclusiveArch: %{go_arches}
d3519e
d3519e
%{?__python3:Requires: %{__python3}}
9a984e
Requires: insights-client
9a984e
Requires: python3dist(requests)
9a984e
BuildRequires: rhc
9a984e
BuildRequires: pkgconfig
d3519e
BuildRequires: python3-devel
9a984e
BuildRequires: python3dist(pip)
9a984e
BuildRequires: python3dist(wheel)
d3519e
BuildRequires: openssl-devel
d3519e
BuildRequires: c-ares-devel
d3519e
BuildRequires: zlib-devel
d3519e
BuildRequires: python3dist(cython)
d3519e
d3519e
%description
d3519e
Python-based worker for Red Hat connect, used to launch Ansible playbooks via Ansible Runner.
d3519e
d3519e
%prep
d3519e
%setup -q
d3519e
9a984e
%build
d3519e
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
d3519e
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
d3519e
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
d3519e
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
d3519e
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=True
9a984e
%define rhc_config_dir $(pkg-config rhc --variable workerconfdir)
d3519e
9a984e
%{__make} PREFIX=%{_prefix} LIBDIR=%{_libdir} installed-lib-dir CONFIG_DIR=%{rhc_config_dir}
9a984e
%{make_build} build
d3519e
9a984e
%install
9a984e
%{make_install} PREFIX=%{_prefix} LIBDIR=%{_libdir} CONFIG_DIR=%{rhc_config_dir}
d3519e
d3519e
%files
d3519e
%{_libexecdir}/rhc/rhc-worker-playbook.worker
d3519e
%{python3_sitelib}/rhc_worker_playbook/
d3519e
%{python3_sitelib}/rhc_worker_playbook*.egg-info/
d3519e
%{_libdir}/rhc-worker-playbook/
9a984e
%config %{_sysconfdir}/rhc/workers/rhc-worker-playbook.toml
d3519e
d3519e
%doc
d3519e
d3519e
%changelog
9a984e
* Thu Mar 25 2021 Jeremy Crafts <jcrafts@redhat.com> - 0.1.4-1
9a984e
- Enhancements to playbook validation
9a984e
- Fixes for regular execution status updates
9a984e
- Configuration fixes