Skip to content

Modernize RPM macro comments and conditional building#111

Merged
michaelherger merged 2 commits into
LMS-Community:public/9.2from
mavit:obsolete-date-macros
Jun 26, 2026
Merged

Modernize RPM macro comments and conditional building#111
michaelherger merged 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!

Comment on lines +7 to +8
# The following is required with trunk or branch:
# %%define _revision 1781670901

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The revision number would change all the time. Can this be provided by the build script?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is provided by the build script. These comments simply provide examples of plausible values.

@michaelherger michaelherger merged commit 8225467 into LMS-Community:public/9.2 Jun 26, 2026
1 check passed
@michaelherger

Copy link
Copy Markdown
Member

Thanks!

@JohanSaaw

Copy link
Copy Markdown
Contributor

Hi,

I was on holidays the last weeks and I didn't check github in that time. I assume that the request for a review is now obsolete as the pull request has been merged.

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.

3 participants