public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/AusweisApp2] f45: Fix application claiming to be beta
@ 2026-10-08 15:45 Julian Sikorski
  0 siblings, 0 replies; 2+ messages in thread
From: Julian Sikorski @ 2026-10-08 15:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/AusweisApp2
Branch : f45
Commit : e1bc1be499185bb30106f4a8322fb5212c764cc3
Author : Julian Sikorski <belegdol@fedoraproject.org>
Date   : 2026-10-08T17:42:31+02:00
Stats  : +150/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/AusweisApp2/c/e1bc1be499185bb30106f4a8322fb5212c764cc3?branch=f45

Log:
Fix application claiming to be beta

---
diff --git a/version.patch b/version.patch
new file mode 100644
index 0000000..79a8012
--- /dev/null
+++ b/version.patch
@@ -0,0 +1,150 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -138,6 +138,7 @@ endif()
+ 
+ include(Tools)
+ include(DVCS)
++GET_DVCS_INFO(${CMAKE_SOURCE_DIR})
+ add_subdirectory(docs)
+ 
+ include(Messages)
+diff --git a/ci/runner/Script.cmake b/ci/runner/Script.cmake
+--- a/ci/runner/Script.cmake
++++ b/ci/runner/Script.cmake
+@@ -164,6 +164,7 @@ macro(FETCH_VERSION)
+ 	PROPAGATE_PARAM(USE_APPSTORE_PROFILE)
+ 	include(Version)
+ 	include(DVCS)
++	GET_DVCS_INFO(${CMAKE_SOURCE_DIR})
+ 	list(POP_BACK CMAKE_MODULE_PATH)
+ 
+ 	set(BRANCH ${dvcs_branch})
+diff --git a/cmake/DVCS.cmake b/cmake/DVCS.cmake
+--- a/cmake/DVCS.cmake
++++ b/cmake/DVCS.cmake
+@@ -41,52 +41,59 @@ function(DVCS_CALL _name ${ARGN})
+ endfunction()
+ 
+ 
+-macro(GET_DVCS_INFO)
+-	set(USE_ARTIFACT_DEV_VERSION ON)
++macro(GET_DVCS_INFO _source_dir)
++	option(ENABLE_DVCS "Check consistency of version/tag and get additional revision data" ON)
++	if(ENABLE_DVCS)
++		FIND_DVCS(${_source_dir})
++	endif()
++
++	if(DVCS_FOUND)
++		set(USE_ARTIFACT_DEV_VERSION ON)
+ 
+-	if(DEFINED PROJECT_VERSION)
+-		if(HG_FOUND)
+-			DVCS_CALL("tag" id -t)
+-		elseif(GIT_FOUND)
+-			DVCS_CALL("tag" tag -l --points-at HEAD)
+-		endif()
+-		if(NOT "${dvcs_tag}" STREQUAL "tip" AND NOT "${dvcs_tag}" STREQUAL "" AND NOT "${dvcs_tag}" STREQUAL "undefined")
+-			if(NOT dvcs_tag STREQUAL PROJECT_VERSION)
+-				message(FATAL_ERROR "DVCS Tag and defined PROJECT_VERSION is not equal")
++		if(DEFINED PROJECT_VERSION)
++			if(HG_FOUND)
++				DVCS_CALL("tag" id -t)
++			elseif(GIT_FOUND)
++				DVCS_CALL("tag" tag -l --points-at HEAD)
+ 			endif()
+-			set(USE_ARTIFACT_DEV_VERSION OFF)
+-		else()
+-			if(HG_FOUND)
+-				DVCS_EXECUTE(dvcs_distance log -r ${PROJECT_VERSION}::. --template 1)
+-				string(LENGTH "${dvcs_distance}" dvcs_distance)
+-				message(STATUS "DVCS distance: ${dvcs_distance}")
+-			elseif(GIT_FOUND)
+-				DVCS_CALL("distance" rev-list --count ${PROJECT_VERSION}...HEAD)
++			if(NOT "${dvcs_tag}" STREQUAL "tip" AND NOT "${dvcs_tag}" STREQUAL "" AND NOT "${dvcs_tag}" STREQUAL "undefined")
++				if(NOT dvcs_tag STREQUAL PROJECT_VERSION)
++					message(FATAL_ERROR "DVCS Tag and defined PROJECT_VERSION is not equal")
++				endif()
++				set(USE_ARTIFACT_DEV_VERSION OFF)
++			else()
++				if(HG_FOUND)
++					DVCS_EXECUTE(dvcs_distance log -r ${PROJECT_VERSION}::. --template 1)
++					string(LENGTH "${dvcs_distance}" dvcs_distance)
++					message(STATUS "DVCS distance: ${dvcs_distance}")
++				elseif(GIT_FOUND)
++					DVCS_CALL("distance" rev-list --count ${PROJECT_VERSION}...HEAD)
++				endif()
+ 			endif()
+ 		endif()
+-	endif()
+ 
+-	if(HG_FOUND)
+-		DVCS_CALL("branch" branch)
+-	elseif(GIT_FOUND)
+-		DVCS_CALL("branch" rev-parse --abbrev-ref HEAD)
+-	endif()
++		if(HG_FOUND)
++			DVCS_CALL("branch" branch)
++		elseif(GIT_FOUND)
++			DVCS_CALL("branch" rev-parse --abbrev-ref HEAD)
++		endif()
+ 
+-	if(HG_FOUND)
+-		DVCS_CALL("revision" id -i)
+-	elseif(GIT_FOUND)
+-		DVCS_CALL("revision" rev-parse --verify --short HEAD)
+-	endif()
++		if(HG_FOUND)
++			DVCS_CALL("revision" id -i)
++		elseif(GIT_FOUND)
++			DVCS_CALL("revision" rev-parse --verify --short HEAD)
++		endif()
+ 
+-	if(HG_FOUND)
+-		DVCS_CALL("phase" log -r . -T {phase})
+-		if(DEFINED dvcs_phase)
+-			if("${dvcs_phase}" STREQUAL "public")
+-				if("${dvcs_revision}" MATCHES "\\+")
+-					set(dvcs_phase "draft")
+-					message(STATUS "DVCS phase: ${dvcs_phase} (override)")
+-				else()
+-					unset(dvcs_phase)
++		if(HG_FOUND)
++			DVCS_CALL("phase" log -r . -T {phase})
++			if(DEFINED dvcs_phase)
++				if("${dvcs_phase}" STREQUAL "public")
++					if("${dvcs_revision}" MATCHES "\\+")
++						set(dvcs_phase "draft")
++						message(STATUS "DVCS phase: ${dvcs_phase} (override)")
++					else()
++						unset(dvcs_phase)
++					endif()
+ 				endif()
+ 			endif()
+ 		endif()
+@@ -142,11 +149,3 @@ macro(GET_DVCS_INFO)
+ 		endif()
+ 	endif()
+ endmacro()
+-
+-FIND_DVCS(${CMAKE_SOURCE_DIR})
+-if(DVCS_FOUND)
+-	option(ENABLE_DVCS "Check consistency of version/tag and get additional revision data" true)
+-	if(ENABLE_DVCS)
+-		GET_DVCS_INFO()
+-	endif()
+-endif()
+diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
+--- a/libs/CMakeLists.txt
++++ b/libs/CMakeLists.txt
+@@ -855,9 +855,8 @@ endif()
+ 
+ string(TIMESTAMP stamp "%Y-%m-%d")
+ set(IDENTIFIER ${stamp})
+-FIND_DVCS(${PROJECT_SOURCE_DIR}/..)
++GET_DVCS_INFO(${PROJECT_SOURCE_DIR}/..)
+ if(DVCS_FOUND)
+-	GET_DVCS_INFO()
+ 	list(APPEND LIBS_ID_SALT ${dvcs_branch})
+ 
+ 	if(DEFINED dvcs_phase)

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [rpms/AusweisApp2] f45: Fix application claiming to be beta
@ 2026-10-08 15:45 Julian Sikorski
  0 siblings, 0 replies; 2+ messages in thread
From: Julian Sikorski @ 2026-10-08 15:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/AusweisApp2
Branch : f45
Commit : 3bfda407e9b21861ebb93c64bde48d42d0573127
Author : Julian Sikorski <belegdol@fedoraproject.org>
Date   : 2026-10-08T17:43:59+02:00
Stats  : +2/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/AusweisApp2/c/3bfda407e9b21861ebb93c64bde48d42d0573127?branch=f45

Log:
Fix application claiming to be beta

---
diff --git a/AusweisApp2.spec b/AusweisApp2.spec
index ae85add..a42f9b0 100644
--- a/AusweisApp2.spec
+++ b/AusweisApp2.spec
@@ -58,6 +58,8 @@ Source0003:       %{rel_url}/%{newname}-%{version}.tar.gz.sha256
 Source0004:       https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/2020-03/EUPL-1.2%%20EN.txt#/EUPL-12_EN.txt
 Source1000:       gen_openssl_cnf.py
 
+# Fix 2.6.0 showing as beta
+Patch00001:       https://raw.githubusercontent.com/flathub/de.bund.ausweisapp.ausweisapp2/refs/heads/master/version.patch
 # Downstream.
 Patch01000:       %{name}-1.24.1-use_Qt_TranslationsPath.patch
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-08 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 15:45 [rpms/AusweisApp2] f45: Fix application claiming to be beta Julian Sikorski
  -- strict thread matches above, loose matches on Subject: below --
2026-10-08 15:45 Julian Sikorski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox