# Build configuration flags: by default enable all packages # To disable use: --without services %bcond_without services %bcond_without observability # Disable debug information package creation %define debug_package %{nil} # Define the Go Import Path %global goipath github.com/flightctl/flightctl # SELinux specifics %global selinuxtype targeted %define selinux_policyver 3.14.3-67 Name: flightctl # Version and Release are automatically updated by Packit during build # Do not manually change these values - they will be overwritten Version: 1.0.0~main~158~gc9d4e88e Release: 1.20251023100956702756.pr1834.158.gc9d4e88e%{?dist} Summary: Flight Control service %gometa License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: flightctl-1.0.0~main~158~gc9d4e88e.tar.gz BuildRequires: golang BuildRequires: make BuildRequires: git BuildRequires: openssl-devel BuildRequires: systemd-rpm-macros Requires: openssl %global flightctl_target flightctl.target # --- Restart these on upgrade --- %global flightctl_services_restart flightctl-api.service flightctl-ui.service flightctl-worker.service flightctl-alertmanager.service flightctl-alert-exporter.service flightctl-alertmanager-proxy.service flightctl-cli-artifacts.service flightctl-periodic.service flightctl-db-migrate.service flightctl-db-wait.service %{expand:%(cat packaging/rpm/packages/main.spec)} %{expand:%(cat packaging/rpm/packages/licences.spec)} %{expand:%(cat packaging/rpm/packages/cli.spec)} %{expand:%(cat packaging/rpm/packages/agent.spec)} %{expand:%(cat packaging/rpm/packages/selinux.spec)} %{expand:%(cat packaging/rpm/packages/telemetry-gateway.spec)} %{expand:%(cat packaging/rpm/packages/services.spec)} %{expand:%(cat packaging/rpm/packages/observability.spec)} %prep %goprep -A %setup -q %{forgesetupargs} -n flightctl-1.0.0~main~158~gc9d4e88e %build # if this is a buggy version of go we need to set GOPROXY as workaround # see https://github.com/golang/go/issues/61928 GOENVFILE=$(go env GOROOT)/go.env if [[ ! -f "${GOENVFILE}" ]]; then export GOPROXY='https://proxy.golang.org,direct' fi # Prefer values injected by Makefile/CI; fall back to RPM macros when unset SOURCE_GIT_TAG="%{?SOURCE_GIT_TAG:%{SOURCE_GIT_TAG}}%{!?SOURCE_GIT_TAG:%(echo "v%{version}" | tr '~' '-')}" \ SOURCE_GIT_TREE_STATE="%{?SOURCE_GIT_TREE_STATE:%{SOURCE_GIT_TREE_STATE}}%{!?SOURCE_GIT_TREE_STATE:clean}" \ SOURCE_GIT_COMMIT="%{?SOURCE_GIT_COMMIT:%{SOURCE_GIT_COMMIT}}%{!?SOURCE_GIT_COMMIT:%(echo %{version} | grep -o '[-~]g[0-9a-f]*' | sed 's/[-~]g//' || echo unknown)}" \ SOURCE_GIT_TAG_NO_V="%{?SOURCE_GIT_TAG_NO_V:%{SOURCE_GIT_TAG_NO_V}}%{!?SOURCE_GIT_TAG_NO_V:%{version}}" \ # Execute modular build commands %if 0%{?rhel} == 9 %{cli_build_commands_rhel9} %{agent_build_commands_rhel9} %else %{cli_build_commands_default} %{agent_build_commands_default} %endif %{selinux_build_commands} %install # Execute modular install commands %{licences_install_commands} %{cli_install_commands} %{agent_install_commands} %{selinux_install_commands} %{services_install_commands} %{observability_install_commands} %{telemetry_gateway_install_commands} %check %{buildroot}%{_bindir}/flightctl-agent version %changelog * Thu Oct 23 2025 Packit - 1.0.0~main~158~gc9d4e88e-1.20251023100956702756.pr1834.158.gc9d4e88e - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-2017: Phase 1 - split RPM to make it manageable (Gregory Shilin) - EDM-1961: Enhance CLI Login error handling and Docs (Siddarth R) - EDM-2396: Fix build source tag detection (Ben Keith) - EDM-2387: Allow flightctl_agent_t to get status of systemd services (Ben Keith) - NO-ISSUE: Fix commit message check for backport branches (Avishay Traeger) - EDM-2322: Flightctl is using the Internal database when enabling the … (#1797) (Gregory Shilin) - EDM-2354: agent: remove klog as dependency (Sam Batschelet) - EDM-2354: device/systeminfo: improve context handling (Sam Batschelet) - EDM-2354: packaging/greenboot: bump timeout (Sam Batschelet) - EDM-2354: test/agent: use drop-in for system-info config (Sam Batschelet) - EDM-2350-v2: Fix documentation to reference correct telemetery gateway export listen port (9464) for prometheus (Ori Amizur) - NO-ISSUE: move files (JasonN3) - EDM-2350: [documenttion] Telemetry quadlets configuration is wrong in the doc (Ori Amizur) - EDM-2236: use require package for approve command tests (Gal Elharar) - EDM-2351: Update doc refs from new utilty usage, accept stdin input in py yaml utility (Dakota Crowder) - EDM-2253: Add hostname support to systeminfo and improve agent config (Gal Elharar) - EDM-2251: remove start condition for db-migrate (#1815) (Ilya) - NO-ISSUE: workflow disk cleanup config update (Ilya) - EDM-2367: Separate last seen from device (Ori Amizur) - EDM-2161: detect integration tests base (#1809) (Ilya) - EDM-2236: Add support for space-separated approve command syntax (Gal Elharar) - EDM-2341: flightctl-userinfo-proxy container doesn't support the Memory setting (Ori Amizur) - EDM-1834: Agent attempts to reconcile before reboot on OS upgrade (noga-magen) - EDM-2351: Add python utility for transforming yaml (Dakota Crowder) - EDM-2352: improve e2e beforeEach stability (sserafin) - EDM-1392: Add fallback for immediate /var/lib/flightctl creation (Gal Elharar) - EDM-2214: create migration pod just once and retry without a limit (#1794) (Ilya) - EDM-2288: remove yq dependency (Siddarth R) - EDM-1601: Prevent Invalid Memory monitor type path fields (Gal Elharar) - EDM-1601: Add unit tests for ResourceMonitor validation (Gal Elharar) - EDM-1601: Prevent duplicate monitorType and invalid CPU path fields (Gal Elharar) - EDM-1601: Add validation to prevent duplicate monitorType in fleet resources (Gal Elharar) - NO-ISSUE: dont shutdown deployments in ACM (#1793) (Ilya) - NO-ISSUE: fix broken link (#1796) (Ilya) - NO-ISSUE: Fix custom-info examples in agent-vm (Celia Amador) - NO-ISSUE: Fix git container on deploy (#1772) (Siddarth Royapally) - EDM-2214: helm add migration wait init containers to services (#1785) (Siddarth Royapally) - EDM-2286: Add correct selinux policy to custom-info directory (#1788) (kkyrazis) - EDM-2259: Fix draining workloads on shutdown (#1786) (kkyrazis) - NO-ISSUE: deploy/helm: fix doc links (Sam Batschelet) - EMD-2207: Remove Docs and duplicate licenses from RPMs (#1781) (kkyrazis) - Merge pull request #1779 from keitwb/rhel-build-note (Ben Keith) - EDM-2254: Fix directory drop in reference for db/kv (Dakota Crowder) - Add doc on how to access downstream builds (#1774) (Ben Keith) - NO-ISSUE: Various doc fixes (Frank A. Zdarsky) - EDM-2043: Create SSH known_hosts file during installation (#1775) (Siddarth Royapally) - EDM-2273: device/dependency: ensure stale images are removed on version change (Sam Batschelet) - EDM-2271: Fix TPM Activate Credential with tracing disabled (#1763) (kkyrazis) - EDM-2255: added flightctl-restore to the rpm (Asaf Ben Natan) - EDM-2272: device/application/podman: ensure pods are cleaned up on removal (Sam Batschelet) - EDM-2266: Append org id param to console requests from cli and address outdated const refs (Dakota Crowder) - EDM-1870: automation of quadlets installation in RHEL9 vm (sserafin) - NO-ISSUE: Update repo to rpm.flightctl.io (Frank A. Zdarsky) - EDM-2254: fixed quadlets docs, added restore version option (Asaf Ben Natan) - EDM-1183: Encapsulate template detection logic (Gal Elharar) - EDM-2171: Update dry run script (Siddarth R) - EDM-2043: bypass known_hosts check for skip verification (#1602) (Siddarth Royapally) - EDM-2036: CLI Update Flightctl completion (#1601) (Siddarth Royapally) - EDM-2211: docs: clarify bootc image building dep (Sam Batschelet) - EDM-2248: Replace yq dep with jq/pyyaml (Dakota Crowder) - EDM-2246: Ensure alertmanager-proxy tag is updated from :latest when installing rpm (Dakota Crowder) - NO-ISSUE: agent: remove stop and unnecessary locking (Sam Batschelet) - EDM-2088: docs: revert downgrade support (Sam Batschelet) - EDM-2232: Explicitly set device fields unset by ApplyJSONPatch (Dakota Crowder) - NO-ISSUE: fixed race condition when stop is called before start is finished on agent (Asaf Ben Natan) - NO-ISSUE: create clean snap and verify snapshot revert (Asaf Ben Natan) - EDM-2224: setting awaitingReconnect annotation on ERs based on renderedVersion parameter ( new parameter) (Asaf Ben Natan) - EDM-2169: ERs marked when restoring (Asaf Ben Natan) - EDM-1246: Add FIPS validator (Frank A. Zdarsky) - NO-ISSUE: Fix mismatch in RPM version calculation across builds (#1729) (#1730) (Assaf Albo) - NO-ISSUE: agent: clarify concurrency model (Sam Batschelet) - EDM-959: Add documentation for device observability with Telemetry Gateway and otelcol (#1695) (Assaf Albo) - EDM-552: support for cli format (Asaf Ben Natan) - EDM-2228: Installation fails when using an external database with sslmode verify-ca (#1716) (Gregory Shilin) - Bump tj-actions/changed-files from 44 to 46 in /.github/workflows (dependabot[bot]) - EDM-1183: Add comprehensive unit tests for template OCI image validation (Gal Elharar) - EDM-1183: Enhance OCI image reference validation to support template parameters (Gal Elharar) - EDM-1392: Remove test containerfiles (Gal Elharar) - EDM-1392: Fix bootc linting issue with tmpfiles.d configuration (Gal Elharar) * Wed Oct 8 2025 Ilya Skornyakov - 0.10.0 - Add pre-upgrade database migration dry-run capability * Tue Jul 15 2025 Sam Batschelet - 0.9.0-2 - Improve selinux policy deps and install * Sun Jul 6 2025 Ori Amizur - 0.9.0-1 - Add support for Flight Control standalone observability stack * Tue Apr 15 2025 Dakota Crowder - 0.6.0-4 - Add ability to create an AAP Oauth Application within flightctl-services sub-package * Fri Apr 11 2025 Dakota Crowder - 0.6.0-3 - Add versioning to container images within flightctl-services sub-package * Thu Apr 3 2025 Ori Amizur - 0.6.0-2 - Add sos report plugin support * Mon Mar 31 2025 Dakota Crowder - 0.6.0-1 - Add services sub-package for installation of containerized flightctl services * Fri Feb 7 2025 Miguel Angel Ajo - 0.4.0-1 - Add selinux support for console pty access * Mon Nov 4 2024 Miguel Angel Ajo - 0.3.0-1 - Move the Release field to -1 so we avoid auto generating packages with -5 all the time. * Wed Aug 21 2024 Sam Batschelet - 0.0.1-5 - Add must-gather script to provide a simple mechanism to collect agent debug * Wed Aug 7 2024 Sam Batschelet - 0.0.1-4 - Add basic greenboot support for failed flightctl-agent service * Wed Mar 13 2024 Ricardo Noriega - 0.0.1-3 - New specfile for both CLI and agent packages