diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:56:03 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:56:03 -0300 |
commit | 94c1735f80ed1f5e4c372f2e00141e5a26d36484 (patch) | |
tree | 9f757347abbf4e2f9e143ccbe4ad88a1f440dc1b /CMakeLists.txt | |
parent | a876d6315a66bb185d5da95a7eaa58f324c73f9a (diff) | |
parent | 522813da585389c158c6a84e688bc9f53daea38d (diff) |
Update upstream source from tag 'upstream/2.0.12'
Update to upstream version '2.0.12'
with Debian dir 8ded00cf606959e9bc04514728f08f7c22251458
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ffa7b08..28182192 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0.0) cmake_policy(VERSION 3.0.0) project(hardinfo2) -set(HARDINFO2_VERSION "2.0.11") +set(HARDINFO2_VERSION "2.0.12") option(HARDINFO2_GTK3 "Build for GTK3 (0/off for GTK2)" 1) option(HARDINFO2_LIBSOUP3 "Build for libsoup-3.0(EXPERIMENTAL) (0/off for libsoup-2.4)" 0) @@ -134,6 +134,11 @@ else() endif() #Put it together string(REPLACE " " "_" CPACK_PACKAGE_FILE_NAME "hardinfo${PACKAGE_DELIMITER}${PACKAGE_DISTRO}${PACKAGE_ARCHITECTURE}") +if(${RPM}) + string(REPLACE " " "_" CPACK_SOURCE_PACKAGE_FILE_NAME "hardinfo${PACKAGE_DELIMITER}${HARDINFO2_VERSION}.src") +else() + string(REPLACE " " "_" CPACK_SOURCE_PACKAGE_FILE_NAME "hardinfo-${HARDINFO2_VERSION}") +endif() message("-- Found Package Target ${CPACK_PACKAGE_FILE_NAME}") message("-- Found Package Version ${CPACK_PACKAGE_VERSION}") @@ -522,11 +527,16 @@ install(FILES pixmaps/hardinfo2.png #Please update here for building packages #keep package name as hardinfo to allow for upgrading in distro SET(CPACK_PACKAGE_NAME "hardinfo") +SET(CPACK_SOURCE_PACKAGE_NAME "hardinfo") SET(CPACK_PACKAGE_HOMEPAGE_URL "https://www.hardinfo2.org") if(${RPM}) + SET(CPACK_SOURCE_IGNORE_FILES "/build/;/.git/;/.github/;.gitignore;.gitmodules;*.po.old;*~;*.mo;*.dsc;/debian/") + SET(CPACK_SOURCE_GENERATOR "RPM") SET(CPACK_GENERATOR "RPM") SET(PACKAGE_GTK2 "libgtk-2-0") else() + SET(CPACK_SOURCE_IGNORE_FILES "/build/;/.git/;/.github/;.gitignore;.gitmodules;*.po.old;*~;*.mo") + SET(CPACK_SOURCE_GENERATOR "TGZ") SET(CPACK_GENERATOR "DEB") SET(PACKAGE_GTK2 "libgtk2.0-0") endif() |