public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Julian Sikorski <belegdol@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/AusweisApp2] f44: Fix application claiming to be beta
Date: Thu, 08 Oct 2026 15:46:03 GMT [thread overview]
Message-ID: <179147436368.1.7037880890774496471.rpms-AusweisApp2-9ce763434443@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/AusweisApp2
Branch : f44
Commit : 9ce763434443741abc3db3b7b08cf83070742375
Author : Julian Sikorski <belegdol@fedoraproject.org>
Date : 2026-10-08T17:45:55+02:00
Stats : +152/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/AusweisApp2/c/9ce763434443741abc3db3b7b08cf83070742375?branch=f44
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
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)
reply other threads:[~2026-10-08 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179147436368.1.7037880890774496471.rpms-AusweisApp2-9ce763434443@fedoraproject.org \
--to=belegdol@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox