Skip to content

Commit

Permalink
buildrpm: include release in the version
Browse files Browse the repository at this point in the history
The result should be that we get version strings like "1.1.1+1.el9".
This will provide some implicit information about what OS corelens runs
on (if different from the kernel it analyzes). It will also provide
confirmation that an RPM installation was used, rather than some source
version of drgn-tools.

Orabug: 37503503
Signed-off-by: Stephen Brennan <[email protected]>
  • Loading branch information
brenns10 committed Feb 4, 2025
1 parent 0f73ca2 commit 90a3e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildrpm/python-drgn-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Requires: python3.12-drgn >= %{drgn_min}, python3.12-drgn < %{drgn_max}

%prep
%autosetup -n drgn-tools-%{version}
echo '__version__ = "%{version}"' > drgn_tools/_version.py
echo '__version__ = "%{version}+%{release}"' > drgn_tools/_version.py

%build
%py3_build
Expand Down

0 comments on commit 90a3e35

Please sign in to comment.