package init
This commit is contained in:
parent
336b9c06d4
commit
578ec7ce0d
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# qt5-qttools
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
||||
# qt5-qttools
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
9
assistant.desktop
Normal file
9
assistant.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Qt5 Assistant
|
||||
GenericName=Documentation viewer
|
||||
Comment=Shows Qt5 documentation and examples
|
||||
Exec=assistant-qt5
|
||||
Icon=assistant-qt5
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;Documentation;
|
||||
10
designer.desktop
Normal file
10
designer.desktop
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Qt5 Designer
|
||||
GenericName=Interface Designer
|
||||
Comment=Design GUIs for Qt5 applications
|
||||
Exec=designer-qt5
|
||||
Icon=designer-qt5
|
||||
MimeType=application/x-designer;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;
|
||||
10
linguist.desktop
Normal file
10
linguist.desktop
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Qt5 Linguist
|
||||
GenericName=Translation tool
|
||||
Comment=Add translations to Qt5 applications
|
||||
Exec=linguist-qt5
|
||||
Icon=linguist-qt5
|
||||
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;
|
||||
10
qdbusviewer.desktop
Normal file
10
qdbusviewer.desktop
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Qt5 QDbusViewer
|
||||
GenericName=D-Bus Debugger
|
||||
Comment=Debug D-Bus applications
|
||||
Exec=qdbusviewer-qt5
|
||||
Icon=qdbusviewer-qt5
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;Debugger;
|
||||
|
||||
244
qt5-qttools.spec
Normal file
244
qt5-qttools.spec
Normal file
@ -0,0 +1,244 @@
|
||||
Name: qt5-qttools
|
||||
Version: 5.11.1
|
||||
Release: 3
|
||||
Summary: Qt5 QtTool module
|
||||
License: LGPLv3 or LGPLv2
|
||||
Url: http://www.qt.io
|
||||
Source0: qttools-everywhere-src-%{version}.tar.xz
|
||||
Source1: assistant.desktop
|
||||
Source2: designer.desktop
|
||||
Source3: linguist.desktop
|
||||
Source4: qdbusviewer.desktop
|
||||
|
||||
Patch0001: qttools-opensource-src-5.5.0-qmake-qt5.patch
|
||||
|
||||
BuildRequires: cmake desktop-file-utils /usr/bin/file qt5-rpm-macros >= %{version}
|
||||
BuildRequires: qt5-qtbase-private-devel qt5-qtbase-devel >= %{version}
|
||||
BuildRequires: clang-devel llvm-devel qt5-qtdeclarative-devel >= %{version} pkgconfig(Qt5Qml)
|
||||
%{?_qt5:Requires: %{_qt5} = %{_qt5_version}}
|
||||
|
||||
Provides: %{name}-common = %{version}-%{release} %{name}-libs-designer = %{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
|
||||
This package contains Qt5 QtTool module core files.
|
||||
|
||||
%package devel
|
||||
Summary: %{name} development files
|
||||
Requires: %{name} = %{version}-%{release} %{name}-libs-designer = %{version}-%{release}
|
||||
Requires: %{name}-libs-designercomponents = %{version}-%{release} %{name}-libs-help = %{version}-%{release}
|
||||
Requires: qt5-doctools = %{version}-%{release} qt5-designer = %{version}-%{release}
|
||||
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
|
||||
The devel package contains libraries and header files for developing applications that use %{name}.
|
||||
|
||||
%package -n qt5-assistant
|
||||
Summary: Qt5 Documentation browser
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description -n qt5-assistant
|
||||
This package contains Qt5 Documentation browser files.
|
||||
|
||||
%package -n qt5-designer
|
||||
Summary: Qt5 Design GUI
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description -n qt5-designer
|
||||
This package contains Qt5 Design GUI files.
|
||||
|
||||
%package -n qt5-linguist
|
||||
Summary: Tools for Qt5 Linguist
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description -n qt5-linguist
|
||||
This package contains tools to add translations to Qt5 applications.
|
||||
|
||||
%package -n qt5-qdbusviewer
|
||||
Summary: Qt5 D-Bus debugger and viewer
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%{?_qt5:Requires: %{_qt5} >= %{_qt5_version}}
|
||||
%description -n qt5-qdbusviewer
|
||||
This package is created for debugging D-Bus objects.
|
||||
|
||||
%package -n qt5-doctools
|
||||
Summary: Tools for Qt5 doc
|
||||
Provides: qt5-qdoc = %{version} qt5-qhelpgenerator = %{version} qt5-qtattributionsscanner = %{version}
|
||||
Obsoletes: qt5-qdoc < 5.8.0 qt5-qhelpgenerator < 5.8.0 qt5-qtattributionsscanner < 5.8.0
|
||||
%description -n qt5-doctools
|
||||
This package contains tools for Qt5 doc.
|
||||
|
||||
%prep
|
||||
%autosetup -n qttools-everywhere-src-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
%{qmake_qt5}
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install INSTALL_ROOT=%{buildroot}
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications --vendor="qt5" \
|
||||
%{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4}
|
||||
|
||||
install -Dp -m 644 src/assistant/assistant/images/assistant.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/assistant-qt5.png
|
||||
install -Dp -m 644 src/assistant/assistant/images/assistant-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/assistant-qt5.png
|
||||
install -Dp -m 644 src/designer/src/designer/images/designer.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/designer-qt5.png
|
||||
install -Dp -m 644 src/qdbus/qdbusviewer/images/qdbusviewer.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qdbusviewer-qt5.png
|
||||
install -Dp -m 644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/qdbusviewer-qt5.png
|
||||
|
||||
for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
|
||||
size=$(echo $(basename ${icon}) | cut -d- -f2)
|
||||
install -p -m 644 -D ${icon} %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/linguist-qt5.png
|
||||
done
|
||||
|
||||
mkdir %{buildroot}%{_bindir}
|
||||
cd %{buildroot}%{_qt5_bindir}
|
||||
for x in * ; do
|
||||
case "${x}" in
|
||||
assistant|designer|lconvert|linguist|lrelease|lupdate|pixeltool|qcollectiongenerator|qdbus \
|
||||
|qdbusviewer|qhelpconverter|qhelpgenerator|qtplugininfo|qtattributionsscanner)
|
||||
ln -v ${x} %{buildroot}%{_bindir}/${x}-qt5
|
||||
ln -sv ${x} ${x}-qt5
|
||||
;;
|
||||
*)
|
||||
ln -v ${x} %{buildroot}%{_bindir}/${x}
|
||||
;;
|
||||
esac
|
||||
done
|
||||
cd -
|
||||
|
||||
cd %{buildroot}%{_qt5_libdir}
|
||||
for prl_file in libQt5*.prl ; do
|
||||
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
|
||||
if [ -f "$(basename ${prl_file} .prl).so" ]; then
|
||||
rm -fv "$(basename ${prl_file} .prl).la"
|
||||
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
|
||||
fi
|
||||
done
|
||||
cd -
|
||||
|
||||
sed -i -e 's| Qt5UiPlugin||g' %{buildroot}%{_qt5_libdir}/pkgconfig/Qt5Designer.pc
|
||||
|
||||
|
||||
%check
|
||||
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
|
||||
pkg-config --print-requires --print-requires-private Qt5Designer
|
||||
export CMAKE_PREFIX_PATH=%{buildroot}%{_qt5_prefix}:%{buildroot}%{_prefix}
|
||||
export PATH=%{buildroot}%{_qt5_bindir}:%{_qt5_bindir}:$PATH
|
||||
export LD_LIBRARY_PATH=%{buildroot}%{_qt5_libdir}
|
||||
mkdir tests/auto/cmake/%{_target_platform}
|
||||
cd tests/auto/cmake/%{_target_platform}
|
||||
cmake ..
|
||||
ctest --output-on-failure ||:
|
||||
cd -
|
||||
|
||||
cd %{buildroot}%{_datadir}/icons
|
||||
for RES in $(ls hicolor); do
|
||||
for APP in designer assistant linguist qdbusviewer; do
|
||||
if [ -e hicolor/$RES/apps/${APP}*.* ]; then
|
||||
file hicolor/$RES/apps/${APP}*.* | grep "$(echo $RES | sed 's/x/ x /')"
|
||||
fi
|
||||
done
|
||||
done
|
||||
cd -
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_bindir}/qdbus-qt5
|
||||
%{_bindir}/qtpaths
|
||||
%{_qt5_bindir}/qdbus
|
||||
%{_qt5_bindir}/qdbus-qt5
|
||||
%{_qt5_bindir}/qtpaths
|
||||
%{_qt5_libdir}/libQt5Designer.so.5*
|
||||
%dir %{_qt5_libdir}/cmake/Qt5Designer/
|
||||
%{_qt5_libdir}/libQt5DesignerComponents.so.5*
|
||||
%{_qt5_libdir}/libQt5Help.so.5*
|
||||
%license LICENSE.LGPL*
|
||||
|
||||
|
||||
|
||||
%files -n qt5-assistant
|
||||
%{_bindir}/assistant-qt5
|
||||
%{_qt5_bindir}/assistant*
|
||||
%{_datadir}/applications/*assistant.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/assistant*.*
|
||||
|
||||
%files -n qt5-doctools
|
||||
%{_bindir}/qdoc*
|
||||
%{_qt5_bindir}/qdoc*
|
||||
%{_bindir}/qhelpgenerator*
|
||||
%{_qt5_bindir}/qhelpgenerator*
|
||||
%{_bindir}/qtattributionsscanner-qt5
|
||||
%{_qt5_bindir}/qtattributionsscanner*
|
||||
|
||||
%files -n qt5-designer
|
||||
%{_bindir}/designer*
|
||||
%{_qt5_bindir}/designer*
|
||||
%{_datadir}/applications/*designer.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/designer*.*
|
||||
|
||||
|
||||
%files -n qt5-linguist
|
||||
%{_bindir}/linguist*
|
||||
%{_qt5_bindir}/linguist*
|
||||
%{_qt5_datadir}/phrasebooks/
|
||||
%{_datadir}/applications/*linguist.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/linguist*.*
|
||||
%{_bindir}/lconvert*
|
||||
%{_bindir}/lrelease*
|
||||
%{_bindir}/lupdate*
|
||||
%{_qt5_bindir}/lconvert*
|
||||
%{_qt5_bindir}/lrelease*
|
||||
%{_qt5_bindir}/lupdate*
|
||||
%dir %{_qt5_libdir}/cmake/Qt5LinguistTools/
|
||||
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig*.cmake
|
||||
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake
|
||||
|
||||
|
||||
%files -n qt5-qdbusviewer
|
||||
%{_bindir}/qdbusviewer*
|
||||
%{_qt5_bindir}/qdbusviewer*
|
||||
%{_datadir}/applications/*qdbusviewer.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/qdbusviewer*.*
|
||||
|
||||
%files devel
|
||||
%{_bindir}/pixeltool*
|
||||
%{_bindir}/qcollectiongenerator*
|
||||
%{_bindir}/qhelpconverter*
|
||||
%{_bindir}/qtdiag*
|
||||
%{_bindir}/qtplugininfo*
|
||||
%{_qt5_bindir}/pixeltool*
|
||||
%{_qt5_bindir}/qtdiag*
|
||||
%{_qt5_bindir}/qcollectiongenerator*
|
||||
%{_qt5_bindir}/qhelpconverter*
|
||||
%{_qt5_bindir}/qtplugininfo*
|
||||
%{_qt5_libdir}/pkgconfig/Qt5*.pc
|
||||
%{_qt5_headerdir}/Qt*/
|
||||
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_*.pri
|
||||
%{_qt5_libdir}/libQt5Designer*.prl
|
||||
%{_qt5_libdir}/libQt5Designer*.so
|
||||
%{_qt5_libdir}/libQt5Help.prl
|
||||
%{_qt5_libdir}/libQt5Help.so
|
||||
%{_qt5_libdir}/libQt5UiTools.*a
|
||||
%{_qt5_libdir}/libQt5UiTools.prl
|
||||
%{_qt5_libdir}/cmake/Qt5Designer/Qt5DesignerConfig*.cmake
|
||||
%dir %{_qt5_libdir}/cmake/Qt5Help/
|
||||
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfig*.cmake
|
||||
%{_qt5_libdir}/cmake/Qt5UiPlugin/
|
||||
%{_qt5_libdir}/cmake/Qt5UiTools/
|
||||
%dir %{_qt5_libdir}/cmake/Qt5Designer
|
||||
%{_qt5_libdir}/cmake/Qt5Designer/Qt5Designer_*
|
||||
%{_qt5_examplesdir}/
|
||||
%{_qt5_plugindir}/designer/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 27 2019 Shuaishuai Song <songshuaishuai2@huawei.com> - 5.11.1-3
|
||||
- package init
|
||||
BIN
qttools-everywhere-src-5.11.1.tar.xz
Normal file
BIN
qttools-everywhere-src-5.11.1.tar.xz
Normal file
Binary file not shown.
27
qttools-opensource-src-5.5.0-qmake-qt5.patch
Normal file
27
qttools-opensource-src-5.5.0-qmake-qt5.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff -up qttools-opensource-src-5.5.0/src/linguist/lrelease/main.cpp.qmake-qt5 qttools-opensource-src-5.5.0/src/linguist/lrelease/main.cpp
|
||||
--- qttools-opensource-src-5.5.0/src/linguist/lrelease/main.cpp.qmake-qt5 2015-06-29 15:13:45.000000000 -0500
|
||||
+++ qttools-opensource-src-5.5.0/src/linguist/lrelease/main.cpp 2015-07-16 10:23:49.664773033 -0500
|
||||
@@ -310,9 +310,9 @@ int main(int argc, char **argv)
|
||||
option.qmake_abslocation = QString::fromLocal8Bit(qgetenv("QMAKE"));
|
||||
if (option.qmake_abslocation.isEmpty())
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
- option.qmake_abslocation = binDir + QLatin1String("/qmake");
|
||||
+ option.qmake_abslocation = binDir + QLatin1String("/qmake-qt5");
|
||||
#else
|
||||
- option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
|
||||
+ option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake-qt5");
|
||||
#endif
|
||||
option.initProperties();
|
||||
QMakeVfs vfs;
|
||||
diff -up qttools-opensource-src-5.5.0/src/linguist/lupdate/main.cpp.qmake-qt5 qttools-opensource-src-5.5.0/src/linguist/lupdate/main.cpp
|
||||
--- qttools-opensource-src-5.5.0/src/linguist/lupdate/main.cpp.qmake-qt5 2015-06-29 15:13:46.000000000 -0500
|
||||
+++ qttools-opensource-src-5.5.0/src/linguist/lupdate/main.cpp 2015-07-16 10:23:49.665773055 -0500
|
||||
@@ -1048,7 +1048,7 @@ int main(int argc, char **argv)
|
||||
ProFileGlobals option;
|
||||
option.qmake_abslocation = QString::fromLocal8Bit(qgetenv("QMAKE"));
|
||||
if (option.qmake_abslocation.isEmpty())
|
||||
- option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake");
|
||||
+ option.qmake_abslocation = app.applicationDirPath() + QLatin1String("/qmake-qt5");
|
||||
option.debugLevel = proDebug;
|
||||
option.initProperties();
|
||||
option.setCommandLineArguments(QDir::currentPath(),
|
||||
Loading…
x
Reference in New Issue
Block a user