diff -Nru dde-polkit-agent-5.2.0.7/AuthDialog.cpp dde-polkit-agent-5.3.0.3/AuthDialog.cpp --- dde-polkit-agent-5.2.0.7/AuthDialog.cpp 2020-07-19 10:18:56.000000000 +0000 +++ dde-polkit-agent-5.3.0.3/AuthDialog.cpp 2020-10-10 05:31:12.000000000 +0000 @@ -104,6 +104,7 @@ void AuthDialog::setRequest(const QString &request, bool requiresAdmin) { + Q_UNUSED(request) Q_UNUSED(requiresAdmin) } @@ -292,7 +293,7 @@ void AuthDialog::setupUI() { - setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); + setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool); setMinimumWidth(380); m_adminsCombo->setAccessibleName("selectuser"); @@ -336,7 +337,7 @@ const qreal dpr = devicePixelRatioF(); if (!m_iconName.isEmpty() && QIcon::hasThemeIcon(m_iconName)) { - icon = QIcon::fromTheme(m_iconName).pixmap(48 * dpr, 48 * dpr); + icon = QIcon::fromTheme(m_iconName).pixmap(static_cast(48 * dpr), static_cast(48 * dpr)); } else { icon = DHiDPIHelper::loadNxPixmap(":/images/default.svg"); } diff -Nru dde-polkit-agent-5.2.0.7/dde-polkit-agent.pro dde-polkit-agent-5.3.0.3/dde-polkit-agent.pro --- dde-polkit-agent-5.2.0.7/dde-polkit-agent.pro 2020-07-19 10:18:56.000000000 +0000 +++ dde-polkit-agent-5.3.0.3/dde-polkit-agent.pro 2020-10-10 05:31:12.000000000 +0000 @@ -1,8 +1,8 @@ TARGET = dde-polkit-agent TEMPLATE = app -QT = core gui widgets dbus dtkwidget +QT += core gui widgets dbus CONFIG += link_pkgconfig c++11 -PKGCONFIG += polkit-qt5-1 dframeworkdbus gsettings-qt +PKGCONFIG += polkit-qt5-1 dframeworkdbus gsettings-qt dtkwidget load(dtk_qmake) diff -Nru dde-polkit-agent-5.2.0.7/debian/changelog dde-polkit-agent-5.3.0.3/debian/changelog --- dde-polkit-agent-5.2.0.7/debian/changelog 2020-07-19 10:19:17.000000000 +0000 +++ dde-polkit-agent-5.3.0.3/debian/changelog 2021-01-08 17:24:24.000000000 +0000 @@ -1,3 +1,9 @@ +dde-polkit-agent (5.3.0.3-1) groovy; urgency=medium + + * New upstream release 5.3.0.3. + + -- Arun Kumar Pariyar Fri, 08 Jan 2021 23:09:24 +0545 + dde-polkit-agent (5.2.0.7-1) groovy; urgency=medium * Rebuild for UbuntuDDE Groovy. diff -Nru dde-polkit-agent-5.2.0.7/main.cpp dde-polkit-agent-5.3.0.3/main.cpp --- dde-polkit-agent-5.2.0.7/main.cpp 2020-07-19 10:18:56.000000000 +0000 +++ dde-polkit-agent-5.3.0.3/main.cpp 2020-10-10 05:31:12.000000000 +0000 @@ -39,7 +39,6 @@ int main(int argc, char *argv[]) { - DApplication::loadDXcbPlugin(); DApplication a(argc, argv); DApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); a.setOrganizationName("deepin"); diff -Nru dde-polkit-agent-5.2.0.7/rpm/dde-polkit-agent.spec dde-polkit-agent-5.3.0.3/rpm/dde-polkit-agent.spec --- dde-polkit-agent-5.2.0.7/rpm/dde-polkit-agent.spec 1970-01-01 00:00:00.000000000 +0000 +++ dde-polkit-agent-5.3.0.3/rpm/dde-polkit-agent.spec 2020-10-10 05:31:12.000000000 +0000 @@ -0,0 +1,59 @@ +%global repo dde-polkit-agent + +Name: dde-polkit-agent +Version: 5.0.10 +Release: 1 +Summary: Deepin Polkit Agent +License: GPLv3 +URL: https://github.com/linuxdeepin/dde-polkit-agent +Source0: %{name}_%{version}.orig.tar.xz + +BuildRequires: gcc-c++ +BuildRequires: dtkwidget-devel >= 5.1.1 +#BuildRequires: pkgconfig(dframeworkdbus) >= 2.0 +BuildRequires: dde-qt-dbus-factory-devel +BuildRequires: dde-qt-dbus-factory +BuildRequires: pkgconfig(polkit-qt5-1) +BuildRequires: qt5-devel +BuildRequires: qt5-linguist +BuildRequires: gsettings-qt-devel +BuildRequires: qt5-qtmultimedia-devel +BuildRequires: qt5-qtx11extras-devel +#BuildRequires: libdframeworkdbus-dev + +%description +DDE Polkit Agent is the polkit agent used in Deepin Desktop Environment. + +%package devel +Summary: Development package for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Header files and libraries for %{name}. + +%prep +%setup -q -n %{repo}-%{version} +sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh +sed -i 's|/usr/lib|/usr/libexec|' dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \ + pluginmanager.cpp + +%build +%qmake_qt5 PREFIX=%{_prefix} +%make_build + +%install +%make_install INSTALL_ROOT=%{buildroot} + +%files +%doc README.md +%license LICENSE +/usr/libexec/polkit-1-dde/dde-polkit-agent +%{_datadir}/%{repo}/ + +%files devel +%{_includedir}/dpa/agent-extension-proxy.h +%{_includedir}/dpa/agent-extension.h + +%changelog +* Wed Jun 10 2020 uoser - 5.0.9 +- Update to 5.0.9