Blame SPECS/rhc-worker-playbook.spec

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