Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
4a757ebe1a
!11 [sync] PR-9: update qt5-qtwebsockets.spec.
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-08-21 05:36:31 +00:00
华亚东
0bbfa1943e update qt5-qtwebsockets.spec.
Signed-off-by: 华亚东 <huayadong@kylinos.cn>
(cherry picked from commit fbbd0c28933f4ea3b60678a3be0ddcae601e44f5)
2023-08-21 11:15:20 +08:00
openeuler-ci-bot
4b4ad0b8f0
!8 [sync] PR-7: update to upstream version 5.15.2
Merge pull request !8 from openeuler-sync-bot/sync-pr7-master-to-openEuler-22.03-LTS-Next
2022-01-18 06:36:36 +00:00
pei-jiankang
3aec60fa5c update to upstream version 5.15.2
(cherry picked from commit 29db448c068547436232d66a7ae3787ca2c684cd)
2022-01-17 14:51:18 +08:00
openeuler-ci-bot
a97d9327a6 !4 Fix Source0
From: @kkkl12
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-14 20:17:12 +08:00
kkkl12
fd406065f8 Fix Source0 2020-09-14 15:58:12 +08:00
openeuler-ci-bot
0861b1a08a !3 add yaml file
Merge pull request !3 from sugarfillet/master
2020-05-15 10:38:02 +08:00
sugarfillet
a151a23511 add yaml file 2020-05-08 16:00:30 +08:00
openeuler-ci-bot
dd70b6f143 !2 Package init
Merge pull request !2 from gnaygnil/master
2020-02-14 17:45:39 +08:00
gnaygnil
5088e6473b Package init 2020-02-14 11:14:21 +08:00
6 changed files with 109 additions and 75 deletions

View File

@ -1,36 +0,0 @@
# qt5-qtwebsockets
#### 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/)

View File

@ -1,39 +0,0 @@
# qt5-qtwebsockets
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 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/)

View File

@ -0,0 +1,12 @@
diff --git a/src/websockets/qwebsocketprotocol.cpp b/src/websockets/qwebsocketprotocol.cpp
index df87a93..9556d18 100644
--- a/src/websockets/qwebsocketprotocol.cpp
+++ b/src/websockets/qwebsocketprotocol.cpp
@@ -38,6 +38,7 @@
****************************************************************************/
#include "qwebsocketprotocol_p.h"
+#include <limits>
#include <QtCore/QString>
#include <QtCore/QSet>
#include <QtCore/QtEndian>

93
qt5-qtwebsockets.spec Normal file
View File

@ -0,0 +1,93 @@
%global qt_module qtwebsockets
Summary: Qt5 - WebSockets component
Name: qt5-%{qt_module}
Version: 5.15.2
Release: 1
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: http://qt-project.org/
%global majmin %(echo %{version} | cut -d. -f1-2)
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
Patch0: %{name}-gcc11.patch
%global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$
BuildRequires: make
BuildRequires: qt5-qtbase-devel >= %{version}
BuildRequires: qt5-qtbase-private-devel
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
BuildRequires: qt5-qtdeclarative-devel
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel%{?_isa}
%package help
Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description
This module implements the WebSocket protocol as specified in RFC
6455. It depends on Qt solely.
%description devel
This package include development files for %{name}
%description help
This package include examples for %{name}
%prep
%setup -q -n %{qt_module}-everywhere-src-%{version}
%patch0 -p1
%build
%{qmake_qt5}
%make_build
%install
make install INSTALL_ROOT=%{buildroot}
pushd %{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
popd
%ldconfig_scriptlets
%files
%license LICENSE.*
%{_qt5_archdatadir}/qml/Qt/WebSockets/
%{_qt5_libdir}/libQt5WebSockets.so.5*
%files devel
%{_qt5_headerdir}/QtWebSockets/
%{_qt5_libdir}/libQt5WebSockets.so
%{_qt5_libdir}/libQt5WebSockets.prl
%dir %{_qt5_libdir}/cmake/Qt5WebSockets/
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_websockets*.pri
%{_qt5_libdir}/cmake/Qt5WebSockets/Qt5WebSocketsConfig*.cmake
%{_qt5_libdir}/pkgconfig/Qt5WebSockets.pc
%{_qt5_libdir}/qt5/qml/QtWebSockets/
%files help
%{_qt5_examplesdir}/
%changelog
* Wed Oct 13 2021 peijiankang <peijiankang@kylinos.cn> - 5.15.2-1
- update to upstream version 5.15.2
* Mon Sep 14 2020 liuweibo <liuweibo10@huawei.com> - 5.11.1-6
- Fix Source0
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 5.11.1-5
- Package init

4
qt5-qtwebsockets.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://code.qt.io/qt/qtwebsockets.git
tag_prefix: "^v"
separator: "."

Binary file not shown.