Compare commits
10 Commits
2e9b07192a
...
ac2e5e6470
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac2e5e6470 | ||
|
|
6ac4e52aff | ||
|
|
3e7d6a146e | ||
|
|
ab1dbb45e3 | ||
|
|
a8b86a0f54 | ||
|
|
e6f43ec2a4 | ||
|
|
f2278bf852 | ||
|
|
a11dc4378f | ||
|
|
a2ef403289 | ||
|
|
3239b6ba21 |
118
0001-update-Qt5LinguistToolsMacros.cmake.patch
Normal file
118
0001-update-Qt5LinguistToolsMacros.cmake.patch
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
From 57fd5853a7b56818fa137afe931feec18cf0942d Mon Sep 17 00:00:00 2001
|
||||||
|
From: peijiankang <peijiankang@kylinos.cn>
|
||||||
|
Date: Wed, 30 Aug 2023 11:09:46 +0800
|
||||||
|
Subject: [PATCH] update Qt5LinguistToolsMacros.cmake
|
||||||
|
|
||||||
|
---
|
||||||
|
src/linguist/Qt5LinguistToolsMacros.cmake | 46 ++++-------------------
|
||||||
|
1 file changed, 7 insertions(+), 39 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/linguist/Qt5LinguistToolsMacros.cmake b/src/linguist/Qt5LinguistToolsMacros.cmake
|
||||||
|
index 6a45e57..09f5845 100644
|
||||||
|
--- a/src/linguist/Qt5LinguistToolsMacros.cmake
|
||||||
|
+++ b/src/linguist/Qt5LinguistToolsMacros.cmake
|
||||||
|
@@ -42,17 +42,6 @@ function(QT5_CREATE_TRANSLATION _qm_files)
|
||||||
|
set(_lupdate_files ${_LUPDATE_UNPARSED_ARGUMENTS})
|
||||||
|
set(_lupdate_options ${_LUPDATE_OPTIONS})
|
||||||
|
|
||||||
|
- list(FIND _lupdate_options "-extensions" _extensions_index)
|
||||||
|
- if(_extensions_index GREATER -1)
|
||||||
|
- math(EXPR _extensions_index "${_extensions_index} + 1")
|
||||||
|
- list(GET _lupdate_options ${_extensions_index} _extensions_list)
|
||||||
|
- string(REPLACE "," ";" _extensions_list "${_extensions_list}")
|
||||||
|
- list(TRANSFORM _extensions_list STRIP)
|
||||||
|
- list(TRANSFORM _extensions_list REPLACE "^\\." "")
|
||||||
|
- list(TRANSFORM _extensions_list PREPEND "*.")
|
||||||
|
- else()
|
||||||
|
- set(_extensions_list "*.java;*.jui;*.ui;*.c;*.c++;*.cc;*.cpp;*.cxx;*.ch;*.h;*.h++;*.hh;*.hpp;*.hxx;*.js;*.qs;*.qml;*.qrc")
|
||||||
|
- endif()
|
||||||
|
set(_my_sources)
|
||||||
|
set(_my_tsfiles)
|
||||||
|
foreach(_file ${_lupdate_files})
|
||||||
|
@@ -64,27 +53,15 @@ function(QT5_CREATE_TRANSLATION _qm_files)
|
||||||
|
list(APPEND _my_sources ${_abs_FILE})
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
- set(stamp_file_dir "${CMAKE_CURRENT_BINARY_DIR}/.lupdate")
|
||||||
|
- if(NOT EXISTS "${stamp_file_dir}")
|
||||||
|
- file(MAKE_DIRECTORY "${stamp_file_dir}")
|
||||||
|
- endif()
|
||||||
|
foreach(_ts_file ${_my_tsfiles})
|
||||||
|
- get_filename_component(_ts_name ${_ts_file} NAME)
|
||||||
|
if(_my_sources)
|
||||||
|
# make a list file to call lupdate on, so we don't make our commands too
|
||||||
|
# long for some systems
|
||||||
|
+ get_filename_component(_ts_name ${_ts_file} NAME)
|
||||||
|
set(_ts_lst_file "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${_ts_name}_lst_file")
|
||||||
|
set(_lst_file_srcs)
|
||||||
|
- set(_dependencies)
|
||||||
|
foreach(_lst_file_src ${_my_sources})
|
||||||
|
set(_lst_file_srcs "${_lst_file_src}\n${_lst_file_srcs}")
|
||||||
|
- if(IS_DIRECTORY ${_lst_file_src})
|
||||||
|
- list(TRANSFORM _extensions_list PREPEND "${_lst_file_src}/" OUTPUT_VARIABLE _directory_glob)
|
||||||
|
- file(GLOB_RECURSE _directory_contents CONFIGURE_DEPENDS ${_directory_glob})
|
||||||
|
- list(APPEND _dependencies ${_directory_contents})
|
||||||
|
- else()
|
||||||
|
- list(APPEND _dependencies "${_lst_file_src}")
|
||||||
|
- endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
get_directory_property(_inc_DIRS INCLUDE_DIRECTORIES)
|
||||||
|
@@ -95,15 +72,13 @@ function(QT5_CREATE_TRANSLATION _qm_files)
|
||||||
|
|
||||||
|
file(WRITE ${_ts_lst_file} "${_lst_file_srcs}")
|
||||||
|
endif()
|
||||||
|
- set(stamp_file "${stamp_file_dir}/${_ts_name}.stamp")
|
||||||
|
- add_custom_command(OUTPUT ${stamp_file}
|
||||||
|
+ add_custom_command(OUTPUT ${_ts_file}
|
||||||
|
COMMAND ${Qt5_LUPDATE_EXECUTABLE}
|
||||||
|
ARGS ${_lupdate_options} "@${_ts_lst_file}" -ts ${_ts_file}
|
||||||
|
- COMMAND ${CMAKE_COMMAND} -E touch "${stamp_file}"
|
||||||
|
- DEPENDS ${_dependencies}
|
||||||
|
- VERBATIM)
|
||||||
|
+ DEPENDS ${_my_sources}
|
||||||
|
+ BYPRODUCTS ${_ts_lst_file} VERBATIM)
|
||||||
|
endforeach()
|
||||||
|
- qt5_add_translation(${_qm_files} __QT_INTERNAL_DEPEND_ON_TIMESTAMP_FILE ${_my_tsfiles})
|
||||||
|
+ qt5_add_translation(${_qm_files} ${_my_tsfiles})
|
||||||
|
set(${_qm_files} ${${_qm_files}} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
@@ -120,7 +95,7 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
|
function(QT5_ADD_TRANSLATION _qm_files)
|
||||||
|
- set(options __QT_INTERNAL_DEPEND_ON_TIMESTAMP_FILE)
|
||||||
|
+ set(options)
|
||||||
|
set(oneValueArgs)
|
||||||
|
set(multiValueArgs OPTIONS)
|
||||||
|
|
||||||
|
@@ -130,7 +105,6 @@ function(QT5_ADD_TRANSLATION _qm_files)
|
||||||
|
foreach(_current_FILE ${_lrelease_files})
|
||||||
|
get_filename_component(_abs_FILE ${_current_FILE} ABSOLUTE)
|
||||||
|
get_filename_component(qm ${_abs_FILE} NAME)
|
||||||
|
- set(ts_stamp_file "${CMAKE_CURRENT_BINARY_DIR}/.lupdate/${qm}.stamp")
|
||||||
|
# everything before the last dot has to be considered the file name (including other dots)
|
||||||
|
string(REGEX REPLACE "\\.[^.]*$" "" FILE_NAME ${qm})
|
||||||
|
get_source_file_property(output_location ${_abs_FILE} OUTPUT_LOCATION)
|
||||||
|
@@ -141,16 +115,10 @@ function(QT5_ADD_TRANSLATION _qm_files)
|
||||||
|
set(qm "${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}.qm")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
- if(_LRELEASE___QT_INTERNAL_DEPEND_ON_TIMESTAMP_FILE)
|
||||||
|
- set(qm_dep "${ts_stamp_file}")
|
||||||
|
- else()
|
||||||
|
- set(qm_dep "${_abs_FILE}")
|
||||||
|
- endif()
|
||||||
|
-
|
||||||
|
add_custom_command(OUTPUT ${qm}
|
||||||
|
COMMAND ${Qt5_LRELEASE_EXECUTABLE}
|
||||||
|
ARGS ${_LRELEASE_OPTIONS} ${_abs_FILE} -qm ${qm}
|
||||||
|
- DEPENDS ${qm_dep} VERBATIM
|
||||||
|
+ DEPENDS ${_abs_FILE} VERBATIM
|
||||||
|
)
|
||||||
|
list(APPEND ${_qm_files} ${qm})
|
||||||
|
endforeach()
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,5 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Qt5 Assistant
|
Name=Qt5 Assistant
|
||||||
|
Name[zh_CN]=Qt5助手
|
||||||
GenericName=Documentation viewer
|
GenericName=Documentation viewer
|
||||||
Comment=Shows Qt5 documentation and examples
|
Comment=Shows Qt5 documentation and examples
|
||||||
Exec=assistant-qt5
|
Exec=assistant-qt5
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Qt5 Designer
|
Name=Qt5 Designer
|
||||||
|
Name[zh_CN]=Qt5设计
|
||||||
GenericName=Interface Designer
|
GenericName=Interface Designer
|
||||||
Comment=Design GUIs for Qt5 applications
|
Comment=Design GUIs for Qt5 applications
|
||||||
Exec=designer-qt5
|
Exec=designer-qt5
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Qt5 Linguist
|
Name=Qt5 Linguist
|
||||||
|
Name[zh_CN]=Qt5语言工具
|
||||||
GenericName=Translation tool
|
GenericName=Translation tool
|
||||||
Comment=Add translations to Qt5 applications
|
Comment=Add translations to Qt5 applications
|
||||||
Exec=linguist-qt5
|
Exec=linguist-qt5
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Qt5 QDbusViewer
|
Name=Qt5 QDbusViewer
|
||||||
|
Name[zh_CN]=Qt5 D-Bus调试
|
||||||
GenericName=D-Bus Debugger
|
GenericName=D-Bus Debugger
|
||||||
Comment=Debug D-Bus applications
|
Comment=Debug D-Bus applications
|
||||||
Exec=qdbusviewer-qt5
|
Exec=qdbusviewer-qt5
|
||||||
|
|||||||
221
qt5-qttools.spec
221
qt5-qttools.spec
@ -1,11 +1,16 @@
|
|||||||
|
# Disable automatic .la file removal
|
||||||
|
%global __brp_remove_la_files %nil
|
||||||
|
|
||||||
|
%global qt_module qttools
|
||||||
|
|
||||||
Name: qt5-qttools
|
Name: qt5-qttools
|
||||||
Version: 5.15.2
|
Version: 5.15.10
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Qt5 QtTool module
|
Summary: Qt5 QtTool module
|
||||||
License: LGPLv3 or LGPLv2
|
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
Url: http://www.qt.io
|
Url: http://www.qt.io
|
||||||
%global majmin %(echo %{version} | cut -d. -f1-2)
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
||||||
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/qttools-everywhere-src-%{version}.tar.xz
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
|
||||||
Source1: assistant.desktop
|
Source1: assistant.desktop
|
||||||
Source2: designer.desktop
|
Source2: designer.desktop
|
||||||
Source3: linguist.desktop
|
Source3: linguist.desktop
|
||||||
@ -15,21 +20,27 @@ Patch0: qttools-opensource-src-5.13.2-runqttools-with-qt5-suffix.patch
|
|||||||
Patch1: qttools-opensource-src-5.7-add-libatomic.patch
|
Patch1: qttools-opensource-src-5.7-add-libatomic.patch
|
||||||
Patch2: 0001-Link-against-libclang-cpp.so-instead-of-the-clang-co.patch
|
Patch2: 0001-Link-against-libclang-cpp.so-instead-of-the-clang-co.patch
|
||||||
Patch3: 0001-modify-lupdate-qt5-run-error.patch
|
Patch3: 0001-modify-lupdate-qt5-run-error.patch
|
||||||
|
Patch4: 0001-update-Qt5LinguistToolsMacros.cmake.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: cmake desktop-file-utils /usr/bin/file qt5-rpm-macros >= %{version}
|
BuildRequires: cmake desktop-file-utils /usr/bin/file qt5-rpm-macros >= %{version}
|
||||||
BuildRequires: qt5-qtbase-private-devel qt5-qtbase-devel >= %{version} qt5-qtbase-static >= %{version}
|
BuildRequires: qt5-qtbase-private-devel qt5-qtbase-devel >= %{version} qt5-qtbase-static >= %{version}
|
||||||
BuildRequires: clang-devel llvm-devel qt5-qtdeclarative-devel >= %{version} pkgconfig(Qt5Qml)
|
BuildRequires: clang-devel llvm-devel qt5-qtdeclarative-devel >= %{version} pkgconfig(Qt5Qml) qt5-qtdeclarative-static >= %{version}
|
||||||
%{?_qt5:Requires: %{_qt5} = %{_qt5_version}}
|
%{?_qt5:Requires: %{_qt5} = %{_qt5_version}}
|
||||||
|
|
||||||
Provides: %{name}-common = %{version}-%{release} %{name}-libs-designer = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Obsoletes: %{name}-common < %{version}-%{release} %{name}-libs-designer < %{version}-%{release}
|
|
||||||
Provides: %{name}-libs-designercomponents = %{version}-%{release} %{name}-libs-help = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-libs-designercomponents < %{version}-%{release} %{name}-libs-help < %{version}-%{release}
|
|
||||||
Obsoletes: qt5-qttools-libs-clucene < 5.9.0 qt5-designer-plugin-webkit < 5.9.0
|
|
||||||
Conflicts: qt5-tools < 5.4.0-0.2
|
|
||||||
%description
|
%description
|
||||||
This package contains Qt5 QtTool module core files.
|
%{summary}.
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Summary: Common files for %{name}
|
||||||
|
BuildArch: noarch
|
||||||
|
Obsoletes: qt5-qttools-libs-clucene < 5.9.0
|
||||||
|
%if ! 0%{?webkit}
|
||||||
|
Obsoletes: qt5-designer-plugin-webkit < 5.9.0
|
||||||
|
%endif
|
||||||
|
%description common
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: %{name} development files
|
Summary: %{name} development files
|
||||||
@ -37,56 +48,106 @@ Requires: %{name} = %{version}-%{release} %{name}-libs-designer = %{version
|
|||||||
Requires: %{name}-libs-designercomponents = %{version}-%{release} %{name}-libs-help = %{version}-%{release}
|
Requires: %{name}-libs-designercomponents = %{version}-%{release} %{name}-libs-help = %{version}-%{release}
|
||||||
Requires: qt5-doctools = %{version}-%{release} qt5-designer = %{version}-%{release}
|
Requires: qt5-doctools = %{version}-%{release} qt5-designer = %{version}-%{release}
|
||||||
Requires: qt5-linguist = %{version}-%{release} qt5-qtbase-devel
|
Requires: qt5-linguist = %{version}-%{release} qt5-qtbase-devel
|
||||||
Provides: qt5-qttools-static = %{version}-%{release} qt5-qttools-examples = %{version}-%{release}
|
|
||||||
Obsoletes: qt5-qttools-static < %{version}-%{release} qt5-qttools-examples < %{version}-%{release}
|
|
||||||
%description devel
|
%description devel
|
||||||
The devel package contains libraries and header files for developing applications that use %{name}.
|
%{summary}.
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Static library files for %{name}
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
%description static
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package libs-designer
|
||||||
|
Summary: Qt5 Designer runtime library
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
%description libs-designer
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package libs-designercomponents
|
||||||
|
Summary: Qt5 Designer Components runtime library
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
%description libs-designercomponents
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package libs-help
|
||||||
|
Summary: Qt5 Help runtime library
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
# when split happened
|
||||||
|
Conflicts: qt5-tools < 5.4.0-0.2
|
||||||
|
%description libs-help
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
%package -n qt5-assistant
|
%package -n qt5-assistant
|
||||||
Summary: Qt5 Documentation browser
|
Summary: Documentation browser for Qt5
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
%description -n qt5-assistant
|
%description -n qt5-assistant
|
||||||
This package contains Qt5 Documentation browser files.
|
%{summary}.
|
||||||
|
|
||||||
%package -n qt5-designer
|
%package -n qt5-designer
|
||||||
Summary: Qt5 Design GUI
|
Summary: Design GUIs for Qt5 applications
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}-libs-designer%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: %{name}-libs-designercomponents%{?_isa} = %{version}-%{release}
|
||||||
%description -n qt5-designer
|
%description -n qt5-designer
|
||||||
This package contains Qt5 Design GUI files.
|
%{summary}.
|
||||||
|
|
||||||
|
%if 0%{?webkit}
|
||||||
|
%package -n qt5-designer-plugin-webkit
|
||||||
|
Summary: Qt5 designer plugin for WebKit
|
||||||
|
BuildRequires: pkgconfig(Qt5WebKitWidgets)
|
||||||
|
Requires: %{name}-libs-designer%{?_isa} = %{version}-%{release}
|
||||||
|
%description -n qt5-designer-plugin-webkit
|
||||||
|
%{summary}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n qt5-linguist
|
%package -n qt5-linguist
|
||||||
Summary: Tools for Qt5 Linguist
|
Summary: Qt5 Linguist Tools
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
%description -n qt5-linguist
|
%description -n qt5-linguist
|
||||||
This package contains tools to add translations to Qt5 applications.
|
Tools to add translations to Qt5 applications.
|
||||||
|
|
||||||
%package -n qt5-qdbusviewer
|
%package -n qt5-qdbusviewer
|
||||||
Summary: Qt5 D-Bus debugger and viewer
|
Summary: D-Bus debugger and viewer
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
%{?_qt5:Requires: %{_qt5} >= %{_qt5_version}}
|
%{?_qt5:Requires: %{_qt5}%{?_isa} >= %{_qt5_version}}
|
||||||
%description -n qt5-qdbusviewer
|
%description -n qt5-qdbusviewer
|
||||||
This package is created for debugging D-Bus objects.
|
QDbusviewer can be used to inspect D-Bus objects of running programs
|
||||||
|
and invoke methods on those objects.
|
||||||
|
|
||||||
%package -n qt5-doctools
|
%package -n qt5-doctools
|
||||||
Summary: Tools for Qt5 doc
|
Summary: Qt5 doc tools package
|
||||||
Provides: qt5-qdoc = %{version} qt5-qhelpgenerator = %{version} qt5-qtattributionsscanner = %{version}
|
Provides: qt5-qdoc = %{version}
|
||||||
Obsoletes: qt5-qdoc < 5.8.0 qt5-qhelpgenerator < 5.8.0 qt5-qtattributionsscanner < 5.8.0
|
Obsoletes: qt5-qdoc < 5.8.0
|
||||||
Requires: qt5-qtattributionsscanner = %{version}
|
Provides: qt5-qhelpgenerator = %{version}
|
||||||
|
Obsoletes: qt5-qhelpgenerator < 5.8.0
|
||||||
|
Provides: qt5-qtattributionsscanner = %{version}
|
||||||
|
Obsoletes: qt5-qtattributionsscanner < 5.8.0
|
||||||
|
Requires: qt5-qtattributionsscanner = %{version}
|
||||||
|
|
||||||
%description -n qt5-doctools
|
%description -n qt5-doctools
|
||||||
This package contains tools for Qt5 doc.
|
%{summary}.
|
||||||
|
|
||||||
|
%package examples
|
||||||
|
Summary: Programming examples for %{name}
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
%description examples
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n qttools-everywhere-src-%{version}
|
%setup -q -n %{qt_module}-everywhere-src-%{version}
|
||||||
%patch0 -p1 -b ..runqttools-with-qt5-suffix.patch
|
|
||||||
|
%patch -P0 -p1 -b ..runqttools-with-qt5-suffix.patch
|
||||||
%ifarch %{mips32}
|
%ifarch %{mips32}
|
||||||
%patch1 -p1 -b .libatomic
|
%patch -P1 -p1 -b .libatomic
|
||||||
%endif
|
%endif
|
||||||
%patch2 -p1 -b .libclang-cpp
|
%patch -P2 -p1 -b .libclang-cpp
|
||||||
%patch3 -p1
|
%patch -P3 -p1
|
||||||
|
%patch -P4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{qmake_qt5}
|
%{qmake_qt5} \
|
||||||
|
%{?no_examples}
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
@ -136,7 +197,7 @@ sed -i -e 's| Qt5UiPlugin||g' %{buildroot}%{_qt5_libdir}/pkgconfig/Qt5Designer.p
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
|
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig:$PKG_CONFIG_PATH
|
||||||
pkg-config --print-requires --print-requires-private Qt5Designer
|
pkg-config --print-requires --print-requires-private Qt5Designer
|
||||||
export CMAKE_PREFIX_PATH=%{buildroot}%{_qt5_prefix}:%{buildroot}%{_prefix}
|
export CMAKE_PREFIX_PATH=%{buildroot}%{_qt5_prefix}:%{buildroot}%{_prefix}
|
||||||
export PATH=%{buildroot}%{_qt5_bindir}:%{_qt5_bindir}:$PATH
|
export PATH=%{buildroot}%{_qt5_bindir}:%{_qt5_bindir}:$PATH
|
||||||
@ -157,24 +218,25 @@ for RES in $(ls hicolor); do
|
|||||||
done
|
done
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/ldconfig
|
|
||||||
%postun
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/qdbus-qt5
|
%{_bindir}/qdbus-qt5
|
||||||
%{_bindir}/qtpaths
|
%{_bindir}/qtpaths
|
||||||
%{_qt5_bindir}/qdbus
|
%{_qt5_bindir}/qdbus
|
||||||
%{_qt5_bindir}/qdbus-qt5
|
%{_qt5_bindir}/qdbus-qt5
|
||||||
%{_qt5_bindir}/qtpaths
|
%{_qt5_bindir}/qtpaths
|
||||||
%{_qt5_libdir}/libQt5Designer.so.5*
|
|
||||||
%dir %{_qt5_libdir}/cmake/Qt5Designer/
|
%files common
|
||||||
%{_qt5_libdir}/libQt5DesignerComponents.so.5*
|
|
||||||
%{_qt5_libdir}/libQt5Help.so.5*
|
|
||||||
%license LICENSE.LGPL*
|
%license LICENSE.LGPL*
|
||||||
|
|
||||||
|
%files libs-designer
|
||||||
|
%{_qt5_libdir}/libQt5Designer.so.5*
|
||||||
|
%dir %{_qt5_libdir}/cmake/Qt5Designer/
|
||||||
|
|
||||||
|
%files libs-designercomponents
|
||||||
|
%{_qt5_libdir}/libQt5DesignerComponents.so.5*
|
||||||
|
|
||||||
|
%files libs-help
|
||||||
|
%{_qt5_libdir}/libQt5Help.so.5*
|
||||||
|
|
||||||
%files -n qt5-assistant
|
%files -n qt5-assistant
|
||||||
%{_bindir}/assistant-qt5
|
%{_bindir}/assistant-qt5
|
||||||
@ -199,12 +261,20 @@ cd -
|
|||||||
%{_datadir}/icons/hicolor/*/apps/designer*.*
|
%{_datadir}/icons/hicolor/*/apps/designer*.*
|
||||||
%{_qt5_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig*.cmake
|
%{_qt5_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig*.cmake
|
||||||
|
|
||||||
|
%if 0%{?webkit}
|
||||||
|
%files -n qt5-designer-plugin-webkit
|
||||||
|
%{_qt5_plugindir}/designer/libqwebview.so
|
||||||
|
%{_qt5_libdir}/cmake/Qt5Designer/Qt5Designer_QWebViewPlugin.cmake
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n qt5-linguist
|
%files -n qt5-linguist
|
||||||
%{_bindir}/linguist*
|
%{_bindir}/linguist*
|
||||||
%{_qt5_bindir}/linguist*
|
%{_qt5_bindir}/linguist*
|
||||||
|
# phrasebooks used by linguist
|
||||||
%{_qt5_datadir}/phrasebooks/
|
%{_qt5_datadir}/phrasebooks/
|
||||||
%{_datadir}/applications/*linguist.desktop
|
%{_datadir}/applications/*linguist.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/linguist*.*
|
%{_datadir}/icons/hicolor/*/apps/linguist*.*
|
||||||
|
# linguist friends
|
||||||
%{_bindir}/lconvert*
|
%{_bindir}/lconvert*
|
||||||
%{_bindir}/lrelease*
|
%{_bindir}/lrelease*
|
||||||
%{_bindir}/lupdate*
|
%{_bindir}/lupdate*
|
||||||
@ -213,11 +283,11 @@ cd -
|
|||||||
%{_qt5_bindir}/lrelease*
|
%{_qt5_bindir}/lrelease*
|
||||||
%{_qt5_bindir}/lupdate*
|
%{_qt5_bindir}/lupdate*
|
||||||
%{_qt5_bindir}/lprodump*
|
%{_qt5_bindir}/lprodump*
|
||||||
|
# cmake config
|
||||||
%dir %{_qt5_libdir}/cmake/Qt5LinguistTools/
|
%dir %{_qt5_libdir}/cmake/Qt5LinguistTools/
|
||||||
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig*.cmake
|
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig*.cmake
|
||||||
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake
|
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake
|
||||||
|
|
||||||
|
|
||||||
%files -n qt5-qdbusviewer
|
%files -n qt5-qdbusviewer
|
||||||
%{_bindir}/qdbusviewer*
|
%{_bindir}/qdbusviewer*
|
||||||
%{_qt5_bindir}/qdbusviewer*
|
%{_qt5_bindir}/qdbusviewer*
|
||||||
@ -235,31 +305,68 @@ cd -
|
|||||||
%{_qt5_bindir}/qcollectiongenerator*
|
%{_qt5_bindir}/qcollectiongenerator*
|
||||||
#{_qt5_bindir}/qhelpconverter*
|
#{_qt5_bindir}/qhelpconverter*
|
||||||
%{_qt5_bindir}/qtplugininfo*
|
%{_qt5_bindir}/qtplugininfo*
|
||||||
%{_qt5_libdir}/pkgconfig/Qt5*.pc
|
%{_qt5_headerdir}/QtDesigner/
|
||||||
%{_qt5_headerdir}/Qt*/
|
%{_qt5_headerdir}/QtDesignerComponents/
|
||||||
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_*.pri
|
%{_qt5_headerdir}/QtHelp/
|
||||||
|
%{_qt5_headerdir}/QtUiPlugin
|
||||||
%{_qt5_libdir}/libQt5Designer*.prl
|
%{_qt5_libdir}/libQt5Designer*.prl
|
||||||
%{_qt5_libdir}/libQt5Designer*.so
|
%{_qt5_libdir}/libQt5Designer*.so
|
||||||
%{_qt5_libdir}/libQt5Help.prl
|
%{_qt5_libdir}/libQt5Help.prl
|
||||||
%{_qt5_libdir}/libQt5Help.so
|
%{_qt5_libdir}/libQt5Help.so
|
||||||
%{_qt5_libdir}/libQt5UiTools.*a
|
|
||||||
%{_qt5_libdir}/libQt5UiTools.prl
|
|
||||||
%{_qt5_libdir}/Qt5UiPlugin.la
|
%{_qt5_libdir}/Qt5UiPlugin.la
|
||||||
%{_qt5_libdir}/libQt5UiPlugin.prl
|
%{_qt5_libdir}/libQt5UiPlugin.prl
|
||||||
%{_qt5_libdir}/cmake/Qt5Designer/Qt5DesignerConfig*.cmake
|
%{_qt5_libdir}/cmake/Qt5Designer/Qt5DesignerConfig*.cmake
|
||||||
%dir %{_qt5_libdir}/cmake/Qt5Help/
|
%dir %{_qt5_libdir}/cmake/Qt5Help/
|
||||||
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfig*.cmake
|
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfig*.cmake
|
||||||
%{_qt5_libdir}/cmake/Qt5UiPlugin/
|
%{_qt5_libdir}/cmake/Qt5UiPlugin/
|
||||||
|
%{_qt5_libdir}/pkgconfig/Qt5Designer.pc
|
||||||
|
%{_qt5_libdir}/pkgconfig/Qt5Help.pc
|
||||||
|
%{_qt5_libdir}/pkgconfig/Qt5UiPlugin.pc
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_designer.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_designer_private.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_designercomponents_private.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_help.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_help_private.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_uiplugin.pri
|
||||||
|
# putting these here for now, new stuff in 5.14, review for accuracy -- rdieter
|
||||||
%{_qt5_libdir}/cmake/Qt5AttributionsScannerTools/
|
%{_qt5_libdir}/cmake/Qt5AttributionsScannerTools/
|
||||||
%{_qt5_libdir}/cmake/Qt5DocTools/
|
%{_qt5_libdir}/cmake/Qt5DocTools/
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%{_qt5_headerdir}/QtUiTools/
|
||||||
|
%{_qt5_libdir}/libQt5UiTools.*a
|
||||||
|
%{_qt5_libdir}/libQt5UiTools.prl
|
||||||
%{_qt5_libdir}/cmake/Qt5UiTools/
|
%{_qt5_libdir}/cmake/Qt5UiTools/
|
||||||
%dir %{_qt5_libdir}/cmake/Qt5Designer
|
%{_qt5_libdir}/pkgconfig/Qt5UiTools.pc
|
||||||
%{_qt5_libdir}/cmake/Qt5Designer/Qt5Designer_*
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_uitools.pri
|
||||||
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_uitools_private.pri
|
||||||
|
|
||||||
|
%if ! 0%{?no_examples:1}
|
||||||
|
%files examples
|
||||||
%{_qt5_examplesdir}/
|
%{_qt5_examplesdir}/
|
||||||
%{_qt5_plugindir}/designer/*
|
%{_qt5_plugindir}/designer/*
|
||||||
|
%dir %{_qt5_libdir}/cmake/Qt5Designer
|
||||||
|
%{_qt5_libdir}/cmake/Qt5Designer/Qt5Designer_*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 29 2024 Funda Wang <fundawang@yeah.net> - 5.15.10-4
|
||||||
|
- Disable automatic .la file removal
|
||||||
|
- cleanup spec
|
||||||
|
|
||||||
|
* Wed Jan 03 2024 wangqia <wangqia@uniontech.com> - 5.15.10-3
|
||||||
|
- rebuild for clang update
|
||||||
|
|
||||||
|
* Wed Aug 30 2023 douyan <douyan@kylinos.cn> - 5.15.10-2
|
||||||
|
- add 0001-update-Qt5LinguistToolsMacros.cmake.patch
|
||||||
|
|
||||||
|
* Tue Aug 22 2023 douyan <douyan@kylinos.cn> - 5.15.10-1
|
||||||
|
- update to upstream version 5.15.10
|
||||||
|
|
||||||
|
* Wed Mar 30 2022 ouyangminxiang <ouyangminxiang@kylinsec.com.cn> - 5.15.2-4
|
||||||
|
- Add Chinese translation
|
||||||
|
|
||||||
* Fri Mar 11 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.15.2-3
|
* Fri Mar 11 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.15.2-3
|
||||||
- modify lupdate-qt5 run error
|
- modify lupdate-qt5 run error
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user