feat: adapt to Qt6

adapt to Qt6

Log: adapt to Qt6; bump version to 1.7.1
This commit is contained in:
zty199
2024-06-26 15:59:05 +08:00
parent a95e7e1beb
commit 4dd7f7fcec
41 changed files with 357 additions and 359 deletions

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
spark-webapp-runtime (1.7.1) stable; urgency=medium
* adapt to Qt6
-- shenmo <shenmo@spark-app.store> Wed, 26 Jun 2024 16:15:00 +0800
spark-webapp-runtime (1.7.0-1) stable; urgency=medium
* Transmit web notification to system notification center

33
debian/control vendored
View File

@@ -3,37 +3,24 @@ Maintainer: shenmo <shenmo@spark-app.store>
Section: utils
Priority: optional
Build-Depends:
debhelper (>= 9),
debhelper (>= 11),
cmake (>= 3.12),
pkg-config,
qtchooser (>= 55-gc9562a1-1~),
libqt5core5a,
libqt5gui5,
libqt5widgets5,
libqt5concurrent5,
libqt5dbus5,
libqt5svg5-dev,
qtwebengine5-dev,
qttools5-private-dev,
libdtkcore-dev (>= 5.0),
libdtkgui-dev (>= 5.0),
libdtkwidget-dev (>= 5.0)
qt6-base-dev,
qt6-tools-dev,
qt6-webengine-dev,
libdtkcommon-dev,
libdtk6core-dev,
libdtk6gui-dev,
libdtk6widget-dev
Standards-Version: 1.0
Homepage: https://gitee.com/deepin-community-store/spark-web-app-runtime
Package: spark-webapp-runtime
Architecture: any
Depends:${shlibs:Depends}, ${misc:Depends},
libqt5core5a,
libqt5gui5,
libqt5widgets5,
libqt5concurrent5,
libqt5dbus5,
libqt5svg5,
libqt5webenginewidgets5,
libdtkcore5,
libdtkgui5,
libdtkwidget5
Depends:${shlibs:Depends}, ${misc:Depends}
Conflicts: store.spark-app.spark-webapp-runtime
Provides: store.spark-app.spark-webapp-runtime
Replaces: store.spark-app.spark-webapp-runtime

39
debian/rules vendored
View File

@@ -1,39 +1,28 @@
#!/usr/bin/make -f
export QT_SELECT=5
include /usr/share/dpkg/default.mk
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DH_AUTO_ARGS = --parallel --buildsystem=qmake
export QT_SELECT = qt6
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS)
DEB_CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
DEB_CXXFLAGS ?= $(shell dpkg-buildflags --get CXXFLAGS)
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
#export DH_VERBOSE = 1
%:
dh $@ --parallel
override_dh_auto_clean:
rm -rf $(CURDIR)/build
override_dh_auto_configure:
mkdir -p $(CURDIR)/build
dh_auto_configure -- \
-DVERSION=$(DEB_VERSION_UPSTREAM) \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$(DEB_CFLAGS) $(DEB_CPPFLAGS)" \
-DCMAKE_CXX_FLAGS="$(DEB_CXXFLAGS) $(DEB_CPPFLAGS)"
dh_auto_configure MAKEFLAGS=-j$(JOBS) -- spark-webapp-runtime.pro \
-spec linux-g++ CONFIG+=qtquickcompiler \
-o $(CURDIR)/build/
override_dh_auto_build:
make -C $(CURDIR)/build -j$(JOBS)
override_dh_auto_install:
make -C $(CURDIR)/build install \
INSTALL_ROOT=$(CURDIR)/debian/spark-webapp-runtime
# Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
# Qt Mutidedia lib will ref to network libraray.
#Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
#Qt Mutidedia lib will ref to network libraray.
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--warnings=0

View File

@@ -1,12 +0,0 @@
#!/bin/sh
case "$1" in
configure)
# Create symbol links for binary files
ln -s -f /opt/durapps/spark-webapp-runtime/bin/spark-webapp-runtime /usr/bin/spark-webapp-runtime
ln -s -f /opt/durapps/spark-webapp-runtime/share/spark-webapp-runtime /usr/share/spark-webapp-runtime
;;
*)
;;
esac

View File

@@ -1,7 +0,0 @@
#!/bin/bash
if [ "$1" = "remove" -o "$1" = "purge" ] ; then
# Remove residual symbol links
rm -f /usr/bin/spark-webapp-runtime
rm -rf /usr/share/spark-webapp-runtime
fi