|
|
6981de |
%define debug_package %{nil}
|
|
|
6981de |
|
|
|
6981de |
Name: rhc-worker-playbook
|
|
|
6981de |
Version: 0.1.6
|
|
|
6981de |
Release: 3%{?dist}
|
|
|
6981de |
Summary: Python worker for Red Hat connector that launches Ansible Runner
|
|
|
6981de |
License: GPLv2+
|
|
|
6981de |
URL: https://github.com/redhatinsights/rhc-worker-playbook
|
|
|
6981de |
Source: rhc-worker-playbook-0.1.6.tar.gz
|
|
|
6981de |
|
|
|
6981de |
%{?__python3:Requires: %{__python3}}
|
|
|
6981de |
Requires: insights-client
|
|
|
6981de |
Requires: python3dist(requests)
|
|
|
6981de |
Requires: python3dist(pyyaml)
|
|
|
6981de |
BuildRequires: rhc
|
|
|
6981de |
BuildRequires: pkgconfig
|
|
|
6981de |
BuildRequires: python3-devel
|
|
|
6981de |
BuildRequires: python3dist(pip)
|
|
|
6981de |
BuildRequires: python3dist(wheel)
|
|
|
6981de |
BuildRequires: python3dist(setuptools)
|
|
|
6981de |
BuildRequires: openssl-devel
|
|
|
6981de |
BuildRequires: c-ares-devel
|
|
|
6981de |
BuildRequires: zlib-devel
|
|
|
6981de |
BuildRequires: python3dist(cython)
|
|
|
6981de |
BuildRequires: gcc
|
|
|
6981de |
BuildRequires: gcc-c++
|
|
|
6981de |
|
|
|
6981de |
ExclusiveArch: x86_64 s390x ppc64 ppc64le
|
|
|
6981de |
|
|
|
6981de |
%description
|
|
|
6981de |
Python-based worker for Red Hat connect, used to launch Ansible playbooks via Ansible Runner.
|
|
|
6981de |
|
|
|
6981de |
%prep
|
|
|
6981de |
%setup -q
|
|
|
6981de |
|
|
|
6981de |
%build
|
|
|
6981de |
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
|
|
|
6981de |
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
|
|
|
6981de |
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
|
|
|
6981de |
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
|
|
|
6981de |
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=True
|
|
|
6981de |
%define rhc_config_dir $(pkg-config rhc --variable workerconfdir)
|
|
|
6981de |
|
|
|
6981de |
%define _lto_cflags %{nil}
|
|
|
6981de |
%set_build_flags
|
|
|
6981de |
%{__make} PREFIX=%{_prefix} LIBDIR=%{_libdir} CONFIG_DIR=%{rhc_config_dir} PYTHON_PKGDIR=%{python3_sitelib} installed-lib-dir
|
|
|
6981de |
%{make_build} build
|
|
|
6981de |
|
|
|
6981de |
%install
|
|
|
6981de |
%{make_install} PREFIX=%{_prefix} LIBDIR=%{_libdir} CONFIG_DIR=%{rhc_config_dir} PYTHON_PKGDIR=%{python3_sitelib}
|
|
|
6981de |
|
|
|
6981de |
%files
|
|
|
6981de |
%{_libexecdir}/rhc/rhc-worker-playbook.worker
|
|
|
6981de |
%{python3_sitelib}/rhc_worker_playbook/
|
|
|
6981de |
%{python3_sitelib}/rhc_worker_playbook*.egg-info/
|
|
|
6981de |
%{_libdir}/rhc-worker-playbook/
|
|
|
6981de |
%config %{_sysconfdir}/rhc/workers/rhc-worker-playbook.toml
|
|
|
6981de |
|
|
|
6981de |
%doc
|
|
|
6981de |
|
|
|
6981de |
%changelog
|
|
|
6981de |
* Mon Nov 1 2021 Link Dupont <link@redhat.com> - 0.1.6-3
|
|
|
6981de |
- Disable LTO due to RHBZ#1893533
|
|
|
6981de |
|
|
|
6981de |
* Thu Sep 23 2021 Link Dupont <link@redhat.com> - 0.1.6-2
|
|
|
6981de |
- Ensure build flags are exported to the build environment
|
|
|
6981de |
|
|
|
6981de |
* Thu Aug 26 2021 Link Dupont <link@redhat.com> - 0.1.6-1
|
|
|
6981de |
- New upstream version
|
|
|
6981de |
|
|
|
6981de |
* Fri Aug 6 2021 Link Dupont <link@redhat.com> - 0.1.5^0.9ef03b90.wtree.0663ne
|
|
|
6981de |
- New upstream version
|
|
|
6981de |
|
|
|
6981de |
* Mon Apr 19 2021 Jeremy Crafts <jcrafts@redhat.com> - 0.1.5-1
|
|
|
6981de |
- Changes to playbook validation logic
|
|
|
6981de |
- Enhancements for logging to rhcd
|
|
|
6981de |
- Fix for subprocess environment
|
|
|
6981de |
|
|
|
6981de |
* Thu Mar 25 2021 Jeremy Crafts <jcrafts@redhat.com> - 0.1.4-1
|
|
|
6981de |
- Enhancements to playbook validation
|
|
|
6981de |
- Fixes for regular execution status updates
|
|
|
6981de |
- Configuration fixes
|