%define debug_package %{nil} Name: rhc-worker-playbook Version: 0.0.git.54.208fc86 Release: 1%{?dist} Summary: Python worker for Red Hat connector that launches Ansible Runner License: GPLv2+ URL: https://github.com/redhatinsights/rhc-worker-playbook Source: rhc-worker-playbook-0.0.git.54.208fc86.tar.gz %{?__python3:Requires: %{__python3}} BuildRequires: python3-devel BuildRequires: platform-python-pip BuildRequires: openssl-devel BuildRequires: c-ares-devel BuildRequires: zlib-devel BuildRequires: python3dist(cython) %description Python-based worker for Red Hat connect, used to launch Ansible playbooks via Ansible Runner. %prep %setup -q %build export GRPC_PYTHON_BUILD_WITH_CYTHON=True export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True export GRPC_PYTHON_BUILD_SYSTEM_CARES=True export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=True %{__make} PREFIX=%{_prefix} LIBDIR=%{_libdir} installed-lib-dir %{make_build} build %install %{make_install} PREFIX=%{_prefix} LIBDIR=%{_libdir} %files %{_libexecdir}/rhc/rhc-worker-playbook.worker %{python3_sitelib}/rhc_worker_playbook/ %{python3_sitelib}/rhc_worker_playbook*.egg-info/ %{_libdir}/rhc-worker-playbook/ %doc %changelog