Private
Public Access
1
0

gtk: auto versioning from git tags

This commit is contained in:
2026-02-22 00:02:33 -08:00
parent d40eb1886e
commit 335ded4752
2 changed files with 5 additions and 4 deletions

View File

@@ -5,11 +5,12 @@ all: setup
setup: build/ setup: build/
meson build meson build
VER := 1.0.2 VER_RAW := $(shell git -C .. describe --tags --abbrev=0 2>/dev/null || git -C .. describe --tags 2>/dev/null || printf '0.0.0')
VER := $(patsubst v%,%,$(VER_RAW))
TMP := $(shell mktemp -d) TMP := $(shell mktemp -d)
rpm: rpm:
git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(TMP)/v$(VER).tar.gz HEAD git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(TMP)/v$(VER).tar.gz HEAD
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)" rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)" --define "app_version $(VER)"
deb: deb:
./dist/deb/build-deb.sh $(VER) ./dist/deb/build-deb.sh $(VER)

View File

@@ -1,5 +1,6 @@
%global app_version %{!?app_version:1.3.0}
Name: kordophone Name: kordophone
Version: 1.0.2 Version: %{app_version}
Release: 1%{?dist} Release: 1%{?dist}
Summary: GTK4/Libadwaita client for Kordophone Summary: GTK4/Libadwaita client for Kordophone
@@ -49,4 +50,3 @@ popd
%changelog %changelog
* Fri Aug 8 2025 James Magahern <james@magahern.com> * Fri Aug 8 2025 James Magahern <james@magahern.com>
- Updated rpmspec - Updated rpmspec