# SPDX-License-Identifier: Apache-2.0 %bcond check 1 %global app_dir complytime # https://github.com/complytime/complytime-providers %global goipath github.com/complytime/complytime-providers Version: 0.3.0 %gometa -f Name: complytime-providers Release: 1.20261112012504755874.pr239.50.g8f55233%{?dist} Summary: Compliance scanning providers for complyctl # License includes vendored dependency licenses. # Generated by go-vendor-tools; verify with: # go_vendor_license --config go-vendor-tools.toml report expression License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: complytime-providers-0.3.0.tar.gz # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools ExclusiveArch: %{go_arches} %description Compliance scanning providers that extend complyctl with support for different policy validation platforms (PVPs). Each provider communicates with complyctl via gRPC and follows the complyctl-provider-* discovery convention. Providers are distributed as separate sub-packages so users can install only the providers they need. # --- OpenSCAP provider sub-package --- %package openscap Summary: OpenSCAP scanning provider for complyctl Requires: %{name} = %{version}-%{release} Requires: complyctl >= 1.0.0 Requires: openscap-scanner Requires: scap-security-guide %description openscap OpenSCAP scanning provider that extends complyctl with OpenSCAP evaluation capabilities. It receives assessment configurations from complyctl, generates XCCDF tailoring files, executes scans via the OpenSCAP engine, and returns structured results. Communicates via gRPC (Describe, Generate, Scan RPCs) and follows the complyctl-provider-* discovery convention. # --- Ampel provider sub-package --- %package ampel Summary: Ampel scanning provider for complyctl Requires: %{name} = %{version}-%{release} Requires: complyctl >= 1.0.0 %description ampel Ampel scanning provider that extends complyctl with Ampel evaluation capabilities. It communicates via gRPC and follows the complyctl-provider-* discovery convention. NOTE: Requires the 'snappy' and 'ampel' CLI tools at runtime. These are not currently packaged in Fedora and must be installed separately. # --- OPA provider sub-package --- %package opa Summary: OPA/Conftest scanning provider for complyctl Requires: %{name} = %{version}-%{release} Requires: complyctl >= 1.0.0 Requires: git %description opa OPA scanning provider that extends complyctl with Open Policy Agent evaluation capabilities via Conftest. It communicates via gRPC and follows the complyctl-provider-* discovery convention. NOTE: Requires the 'conftest' CLI tool at runtime. This tool is not currently packaged in Fedora and must be installed separately. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} -n complytime-providers-0.3.0 %autopatch -p1 # Lower the go.mod directive to match the system Go version so # rpmbuild succeeds with GOTOOLCHAIN=local. This handles cases where # the system Go has the same major.minor but an older patch version # than what go.mod requires (e.g., system Go 1.26.7 vs go.mod 1.26.8). # Reference: https://packages.fedoraproject.org/pkgs/golang/golang/ SYSTEM_GO_VERSION=$(go version | grep -oP 'go\K[0-9]+\.[0-9]+\.[0-9]+') sed -i "s/^go [0-9].*/go ${SYSTEM_GO_VERSION}/" go.mod sed -i "/^## explicit; go /s/go [0-9]\..*/go ${SYSTEM_GO_VERSION}/" vendor/modules.txt %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X %{goipath}/internal/version.version=%{version}" %gobuild -o %{gobuilddir}/bin/complyctl-provider-openscap %{goipath}/cmd/openscap-provider %gobuild -o %{gobuilddir}/bin/complyctl-provider-ampel %{goipath}/cmd/ampel-provider %gobuild -o %{gobuilddir}/bin/complyctl-provider-opa %{goipath}/cmd/opa-provider %install %go_vendor_license_install -c %{S:2} install -d -m 0755 %{buildroot}%{_libexecdir}/%{app_dir}/providers install -p -m 0755 %{gobuilddir}/bin/complyctl-provider-openscap %{buildroot}%{_libexecdir}/%{app_dir}/providers/complyctl-provider-openscap install -p -m 0755 %{gobuilddir}/bin/complyctl-provider-ampel %{buildroot}%{_libexecdir}/%{app_dir}/providers/complyctl-provider-ampel install -p -m 0755 %{gobuilddir}/bin/complyctl-provider-opa %{buildroot}%{_libexecdir}/%{app_dir}/providers/complyctl-provider-opa install -d %{buildroot}%{_mandir}/man1 install -p -m 0644 docs/man/complyctl-provider-openscap.1 %{buildroot}%{_mandir}/man1/complyctl-provider-openscap.1 install -p -m 0644 docs/man/complyctl-provider-ampel.1 %{buildroot}%{_mandir}/man1/complyctl-provider-ampel.1 install -p -m 0644 docs/man/complyctl-provider-opa.1 %{buildroot}%{_mandir}/man1/complyctl-provider-opa.1 %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck2 %endif # Main package: shared license files and documentation %files -f %{go_vendor_license_filelist} %doc README.md %files openscap %attr(0755, root, root) %{_libexecdir}/%{app_dir}/providers/complyctl-provider-openscap %{_mandir}/man1/complyctl-provider-openscap.1* %files ampel %attr(0755, root, root) %{_libexecdir}/%{app_dir}/providers/complyctl-provider-ampel %{_mandir}/man1/complyctl-provider-ampel.1* %files opa %attr(0755, root, root) %{_libexecdir}/%{app_dir}/providers/complyctl-provider-opa %{_mandir}/man1/complyctl-provider-opa.1* %changelog * Thu Nov 12 2026 Packit - 0.3.0-1.20261112012504755874.pr239.50.g8f55233 - chore(deps): Bump github.com/complytime/complyctl from 1.1.0 to 1.2.0 (dependabot[bot]) - docs(spec): clarify evidence preservation boundaries (Marcus Burghardt) - docs(spec): make evidence retention provider-only (Marcus Burghardt) - docs(spec): clarify evidence retention prerequisites (Marcus Burghardt) - docs(spec): align evidence retention with OPA isolation (Marcus Burghardt) - docs(spec): clarify evidence preservation boundary (Marcus Burghardt) - docs(spec): propose retained scan evidence (Marcus Burghardt) - fix(ci): address release baseline review findings (Yvonne Devlin) - fix(ci): replace the resolved complyctl module (Yvonne Devlin) - fix(ci): support major-version release baselines (Yvonne Devlin) - fix(ci): centralize conftest release metadata (Yvonne Devlin) - docs(openspec): reconcile release compatibility records (Yvonne Devlin) - fix(ci): validate released complyctl harness (Yvonne Devlin) - fix(ci): use indexed artifact compatibility harness (Yvonne Devlin) - fix(ci): repair release baseline checks (Yvonne Devlin) - fix(ci): validate released baseline prerequisites (Yvonne Devlin) - ci: validate providers against released complyctl (Yvonne Devlin) - docs(openspec): plan complyctl release compatibility (Yvonne Devlin) - fix: update stale command references and remove website gate (Marcus Burghardt) - chore: update uf scaffolded files to v0.21.0 (Marcus Burghardt) - fix(opa): isolate scans from cyclic workspace clones (Marcus Burghardt) - docs(opa): explain input isolation and migration (Marcus Burghardt) - test(opa): verify conftest isolation and compatibility behavior (Marcus Burghardt) - fix(opa)!: exclude workspace input and reject incomplete targets (Marcus Burghardt) - docs(spec): define OPA workspace input isolation (Marcus Burghardt) - ci(deps): pin carabiner-dev/actions to the v1.3.1 release tag (Marcus Burghardt) - chore(deps): bump golang.org/x/net to v0.62.0 (Marcus Burghardt) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_scheduled.yml (#226) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_release_preflight.yml (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_ci.yml (#223) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_crapload_analysis.yml (#222) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_deps_reviewer.yml (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_vuln_scan.yml (#218) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_release_goreleaser.yml (#219) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_security.yml (#217) (dependabot[bot]) - ci(deps): Bump complytime/org-infra/.github/workflows/reusable_dependabot_reviewer.yml (#220) (dependabot[bot]) - fix(packit): use GOTOOLCHAIN=auto in post-modifications action (Marcus Burghardt) - ci(deps): Bump carabiner-dev/actions/install/ampel (dependabot[bot]) - ci(deps): Bump carabiner-dev/actions/install/snappy (dependabot[bot]) * Tue Sep 01 2026 Marcus Burghardt - 0.2.1-1 - Bump to upstream version v0.2.1 - Fix go-vendor-tools.toml license override path for go.yaml.in/yaml/v3 - Add local RPM build and test documentation to RELEASE_PROCESS.md * Tue Sep 01 2026 Marcus Burghardt - 0.2.0-1 - Bump to upstream version v0.2.0 - XDG Base Directory paths for provider discovery - CPE-based datastream auto-detection for OpenSCAP - Aggregate extraction limits for complypack archives - Shared archive extraction in internal/archive package - Ampel tenet message and guidance surfacing - OPA complypack content path and mapping requirement - Remove Export RPC (upstream complyctl removed Exporter interface) * Wed Aug 26 2026 Marcus Burghardt - 0.1.0-1 - Modernize spec for Fedora Go packaging guidelines - Adopt go-vendor-tools for vendored license verification - Fix debuginfo generation by switching to %%gobuild macro - Use %%gocheck2 for unit tests - Use %%autorelease for automatic release numbering - Bump complyctl dependency to >= 1.0.0 - Add Fedora 43 Go 1.25 compatibility workaround - Add main package for shared license files - Add aggregated vendored license expression * Fri Jun 12 2026 Marcus Burghardt - 0.1.0-1 - Bump to version 0.1.0 - Add OPA provider sub-package - Add build-time version injection via ldflags * Fri Apr 24 2026 Marcus Burghardt - 0.0.1-1 - Initial RPM packaging for complytime-providers - OpenSCAP and Ampel provider sub-packages