diff --git a/CHANGELOG.md b/CHANGELOG.md index 0181c07d..c3e3c386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Possiblity to define patches templates with variables to replace (#128). - web: Report fatbuildr version in footer of fatbuildrweb HTML pages (#108). - conf: Add `containerized` parameter in `[format:osi]` section. +- pkgs: Add patch to define upstream version at build time. - docs: - Mention `containerized` parameter in `[format:osi]` section of system configuration. diff --git a/pkgs/fatbuildr/patches/generic/0003-replace-version b/pkgs/fatbuildr/patches/generic/0003-replace-version new file mode 100644 index 00000000..92b8f461 --- /dev/null +++ b/pkgs/fatbuildr/patches/generic/0003-replace-version @@ -0,0 +1,16 @@ +Description: replace the software hard-coded version number with the +Last-Update: 2023-07-25 +Template: yes +Author: RĂ©mi Palancher + + +diff --git a/fatbuildr/version.py b/fatbuildr/version.py +index b5d3800..db13aee 100644 +--- a/fatbuildr/version.py ++++ b/fatbuildr/version.py +@@ -17,4 +17,4 @@ + # You should have received a copy of the GNU General Public License + # along with Fatbuildr. If not, see . + +-__version__ = '2.0.0' ++__version__ = '{{ version.main }}'