Blame SPECS/rhc-worker-playbook.spec

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