Skip to content

Feat/rpm spec macros#332

Open
eximius313 wants to merge 1 commit intofastforgedev:mainfrom
eximius313:fix/spec-macros
Open

Feat/rpm spec macros#332
eximius313 wants to merge 1 commit intofastforgedev:mainfrom
eximius313:fix/spec-macros

Conversation

@eximius313
Copy link
Copy Markdown

@eximius313 eximius313 commented Apr 15, 2026

Fixes #330

  • feat: add support for rpm spec macros configuration
  • Add spec_macros list parameter to MakeRPMConfig
  • Update JSON/YAML parser to safely handle spec_macros array
  • Prepend spec macros at the absolute top of the generated .spec file string
  • Allow developers to pass global RPM directives (like %global or %define)
  • Solve cross-distro ABI conflicts (e.g., libcurl auto-requires) by enabling custom exclusions

Usage in linux/packaging/rpm/make_config.yaml:
spec_macros:

  • "%global __requires_exclude .*libcurl.CURL_OPENSSL."

* feat: add support for rpm spec macros configuration

- Add spec_macros list parameter to MakeRPMConfig
- Update JSON/YAML parser to safely handle spec_macros array
- Prepend spec macros at the absolute top of the generated .spec file string
- Allow developers to pass global RPM directives (like %global or %define)
- Solve cross-distro ABI conflicts (e.g., libcurl auto-requires) by enabling custom exclusions

Usage in linux/packaging/rpm/make_config.yaml:
spec_macros:
  - "%global __requires_exclude .*libcurl.*CURL_OPENSSL.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant