Re: How can I add in a spec file the build version and distribution version in a spec file?
Have you tried using something like "-DANTIMICROX_PKG_VERSION=\"'%{version}-%{release} (openSUSE Leap/x86_64)'\"" in your SPEC? [cid:dd6920b0-e198-4ad7-ac2d-fba2ac510d7d] Erico Mendonca Premium Services SUSE ________________________________ From: Carsten Ziepke Sent: Wednesday, March 17, 2021 2:45 PM To: opensuse-buildservice@opensuse.org Subject: How can I add in a spec file the build version and distribution version in a spec file? Hello, a package I maintain in OBS added a new feature to enable reproducible builds: https://github.com/AntiMicroX/antimicrox/pull/143 "By default, the date and time of the build are embedded into the binary as sort of origin/version/etc. marker. This is not, however, reproducible. This patch makes it so that packagers can define a præprocessor macro, ANTIMICROX_PKG_VERSION, to a C string which is then used instead; if this macro is not defined nothing changes." For example: "-DANTIMICROX_PKG_VERSION=\"'3.1.4-1 (Debian sid/amd64)'\"" How can I do this in the same way in OBS (add buildversion and distribution version) via spec file? Thank you, Carsten -- Anyone who thinks UNIX is intuitive should be forced to write 5000 lines of code using nothing but vi or emacs. AAAAACK! -- Discussion on the intuitiveness of commands, especially Emacs
participants (1)
-
Erico Mendonca