try fix issues when being dep

This commit is contained in:
Mahno 2025-04-08 14:27:09 +08:00
parent 6677d654a2
commit 7b4b71a79b
2 changed files with 13 additions and 2 deletions

12
findtqt-name-fix.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Naur orig/modules/FindTQt.cmake tde-cmake-trinity-14.1.3/modules/FindTQt.cmake
--- orig/modules/FindTQt.cmake 2024-10-15 00:00:02.000000000 +0800
+++ tde-cmake-trinity-14.1.3/modules/FindTQt.cmake 2025-04-08 14:23:21.174115911 +0800
@@ -88,7 +88,7 @@
list( APPEND CMAKE_REQUIRED_LIBRARIES ${TQT_LIBRARIES} )
check_cxx_source_compiles("
- #include <tqapplication.h>
+ #include <ntqapplication.h>
int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; } "
HAVE_USABLE_TQT )

View File

@ -6,7 +6,7 @@ Summary:CMake templates and modules used by TDE
License:GPL-2.0-only License:GPL-2.0-only
URL:http://www.trinitydesktop.org URL:http://www.trinitydesktop.org
Source0:https://mirror.ppa.trinitydesktop.org/trinity/releases/R%{version}/main/dependencies/%{name}-%{version}.tar.xz Source0:https://mirror.ppa.trinitydesktop.org/trinity/releases/R%{version}/main/dependencies/%{name}-%{version}.tar.xz
Patch0: findtqt-name-fix.patch
BuildRequires:cmake BuildRequires:cmake
BuildRequires:gcc-c++ BuildRequires:gcc-c++
Requires:cmake Requires:cmake
@ -17,7 +17,6 @@ CMake templates and modules used by TDE
%prep %prep
%autosetup -n %{name}-%{version} %autosetup -n %{name}-%{version}
%build %build