## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %{?!python3_pkgversion:%global python3_pkgversion 3} %global srcname steampunk-spotter %bcond check 1 Name: python-%{srcname} Version: 5.12.0 Release: %autorelease Summary: Scan, analyze, enhance, and provide insights for your playbooks using Spotter # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 URL: https://spotter.steampunk.si/ Source0: https://gitlab.com/xlab-steampunk/steampunk-spotter-client/spotter-cli/-/archive/%{version}/spotter-cli-%{version}.tar.bz2 # Vendor archive for the terraform parser go binary built into this package Source1: spotter-cli-%{version}-go-vendor.tar.bz2 Source2: go-vendor-tools.toml # fix building with newer ruamel-yaml # see https://gitlab.com/xlab-steampunk/steampunk-spotter-client/spotter-cli/-/merge_requests/422 Patch0: %{name}-ruamel.patch # keep building as noarch Patch1: %{name}-noarch.patch Patch2: %{name}-tfp-path.patch BuildRequires: python%{python3_pkgversion}-devel %if %{with check} BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-xdist %endif ExclusiveArch: %{golang_arches} BuildRequires: go-rpm-macros BuildRequires: go-vendor-tools %global _description %{expand: Steampunk Spotter is an Ansible Playbook Platform that offers valuable insights into your playbooks to help you optimize and maximize your automation. It was created by XLAB Steampunk, an IT automation specialist and leading expert in building Enterprise Ansible Collections.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} License: Apache-2.0 BuildArch: noarch Recommends: spotter-terraform-parser = %{version} %description -n python%{python3_pkgversion}-%{srcname} %_description %package -n spotter-terraform-parser Summary: Terraform parser utility for Spotter # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 %description -n spotter-terraform-parser This package contains the terraform-parser utility used by Spotter %prep %autosetup -p1 -n spotter-cli-%{version} # Unpack Go vendor archive tar -xf %{S:1} # work around _ ERROR collecting tests/integration/scan_export_collection_exclude/collection/library/test_info.py _ import file mismatch mv tests/integration/scan_export_collection_exclude/collection/library/test_info{,_exclude}.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires # Install go-vendor-tools dynamic BuildRequires %go_vendor_license_buildrequires -c %{S:2} %build # Build the terraform parser go binary. # It needs to be built before the wheel. pushd terraform/src export CGO_CFLAGS="%{build_cflags}" CGO_LDFLAGS="%{build_ldflags}" %global gomodulesmode GO111MODULE=on %gobuild -o "terraform-parser" popd export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files -l spotter install -dm755 %{buildroot}%{_libexecdir} install -pm755 terraform/src/terraform-parser %{buildroot}%{_libexecdir} # Install go vendor license files %go_vendor_license_install -c %{S:2} %check %pyproject_check_import %if %{with check} %pytest %endif # Verify go-vendor-tools-generated License: tag %go_vendor_license_check -c %{S:2} %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc CHANGELOG.txt README.md %{_bindir}/spotter %files -n spotter-terraform-parser -f %{go_vendor_license_filelist} %{_libexecdir}/terraform-parser %changelog ## START: Generated by rpmautospec * Sun Apr 26 2026 Maxwell G - 5.12.0-2 - Build the embeded terraform-parser go binary * Thu Apr 16 2026 Dominik 'Rathann' Mierzejewski - 5.12.0-1 - update to 5.12.0 (resolves rhbz#2458888) - fix building with newer ruamel-yaml - keep building as noarch * Thu Feb 26 2026 Dominik 'Rathann' Mierzejewski - 5.11.0-1 - update to 5.11.0 (resolves rhbz#2442614) * Tue Feb 17 2026 Dominik 'Rathann' Mierzejewski - 5.10.0-1 - update to 5.10.0 (resolves rhbz#2435307) * Sat Jan 17 2026 Fedora Release Engineering - 5.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Dec 19 2025 Dominik 'Rathann' Mierzejewski - 5.9.0-1 - update to 5.9.0 (resolves rhbz#2423206) * Mon Dec 15 2025 Dominik 'Rathann' Mierzejewski - 5.8.0-1 - update to 5.8.0 (resolves rhbz#2419314) * Wed Sep 24 2025 Dominik 'Rathann' Mierzejewski - 5.7.0-1 - update to 5.7.0 (resolves rhbz#2397788) * Fri Sep 19 2025 Python Maint - 5.6.0-2 - Rebuilt for Python 3.14.0rc3 bytecode * Thu Aug 28 2025 Dominik Mierzejewski - 5.6.0-1 - update to 5.6.0 (resolves rhbz#2391238) * Sat Aug 16 2025 Dominik 'Rathann' Mierzejewski - 5.5.1-2 - drop duplicate license file * Fri Aug 15 2025 Dominik 'Rathann' Mierzejewski - 5.5.1-1 - initial import (resolves rhbz#2283066) ## END: Generated by rpmautospec