Skip to content

Commit 4b863c7

Browse files
author
marcel
committed
Use VERSION file instead of hardcoded version strings
- pkg/rpm/sems.spec: Read version from VERSION file at build time, with fallback to 2.0.1 if file is not available - Dockerfile-debian11: Use $(cat VERSION) in dch command - Dockerfile-debian13: Use $(cat VERSION) in dch command This ensures version consistency across the project. The VERSION file (currently 2.0.1) is the single source of truth, already used by CMakeLists.txt and Makefile.defs.
1 parent 65a1b61 commit 4b863c7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile-debian11

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WORKDIR /sems
1919
RUN ls -al pkg/deb/bullseye/*
2020
RUN ln -s pkg/deb/bullseye ./debian
2121
RUN ls -al debian/*
22-
RUN dch -b -v 1.8.0 "sems"
22+
RUN dch -b -v $(cat VERSION) "sems"
2323
RUN dpkg-buildpackage -rfakeroot -us -uc
2424
RUN ls -al ..
2525

Dockerfile-debian13

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN git clone --depth 1 --branch master https://github.com/sems-server/sems.git
1919
WORKDIR /sems
2020

2121
RUN mv pkg/deb/trixie ./debian
22-
RUN dch -b -v 1.8.0 "sems"
22+
RUN dch -b -v $(cat VERSION) "sems"
2323
RUN dpkg-buildpackage -rfakeroot -us -uc
2424
RUN ls -al ..
2525

pkg/rpm/sems.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# defines
22
%global build_timestamp %(date +"%Y%m%d%H%M")
33
%define _unpackaged_files_terminate_build 0
4-
%define version 2.0.0
4+
%define version %(cat VERSION)
55

66
%global debug_package %{nil}
77

0 commit comments

Comments
 (0)