Skip to content

Modernize RPM macro comments and conditional building#111

Open
mavit wants to merge 2 commits into
LMS-Community:public/9.2from
mavit:obsolete-date-macros
Open

Modernize RPM macro comments and conditional building#111
mavit wants to merge 2 commits into
LMS-Community:public/9.2from
mavit:obsolete-date-macros

Conversation

@mavit

@mavit mavit commented Jun 17, 2026

Copy link
Copy Markdown
Contributor
  • Drop mention of obsolete RPM macros %_branch, %_rpm_date and %_src_date. It looks like we haven’t made use of these for many years.
  • Mention the %_revision macro.
  • Drop our custom %build_trunk, %build_branch and %build_release macros, in favour of the standard %{with …} macro.
  • Provide explicit defaults for %_with_trunk, %_with_branch and %_with_release, using the %bcond macro.

The %bcond macro requires rpmbuild 4.17.1 (released 2022).

mavit added 2 commits June 17, 2026 13:38
- Drop mention of obsolete RPM macros _branch, _rpm_date and _src_date.  It looks like we haven’t made use of these for many years.
- Mention the _revision macro.

Signed-off-by: Peter Oliver <git@mavit.org.uk>
The %bcond macro requires rpmbuild 4.17.1 (released 2022).

https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html#using-bcond-new-in-rpm-4171

Signed-off-by: Peter Oliver <git@mavit.org.uk>
@michaelherger michaelherger requested a review from JohanSaaw June 17, 2026 14:26
@michaelherger

Copy link
Copy Markdown
Member

@JohanSaaw - may I ask you to give this a minute? Thanks!

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.

2 participants