[packit] 5.3.0.39 upstream release
Upstream tag: 5.3.0.39 Upstream commit: e9566285 Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
This commit is contained in:
parent
d5bea87227
commit
e00d9d1fb0
|
@ -11,3 +11,4 @@
|
|||
/dde-control-center-4.9.2.1.tar.gz
|
||||
/dde-control-center-4.9.4.tar.gz
|
||||
/dde-control-center-5.0.0.tar.gz
|
||||
/dde-control-center-5.3.0.39.tar.gz
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# See the documentation for more information:
|
||||
# https://packit.dev/docs/configuration/
|
||||
|
||||
specfile_path: rpm/deepin-control-center.spec
|
||||
|
||||
# add or remove files that should be synced
|
||||
synced_files:
|
||||
- rpm/deepin-control-center.spec
|
||||
- .packit.yaml
|
||||
|
||||
upstream_ref: 5.3.0.39
|
||||
upstream_package_name: dde-control-center
|
||||
# downstream (Fedora) RPM package name
|
||||
downstream_package_name: deepin-control-center
|
||||
|
||||
actions:
|
||||
fix-spec-file: |
|
||||
bash -c "sed -i -r \"0,/Version:/ s/Version:(\s*)\S*/Version:\1${PACKIT_PROJECT_VERSION}/\" rpm/deepin-control-center.spec"
|
||||
post-upstream-clone: |
|
||||
cp rpm/dde-control-center.spec rpm/deepin-control-center.spec
|
|
@ -1,45 +0,0 @@
|
|||
From 791fbcc9d24532df04b81bd9dabb99fb8aff79ab Mon Sep 17 00:00:00 2001
|
||||
From: Hualet Wang <mr.asianwang@gmail.com>
|
||||
Date: Tue, 6 Aug 2019 16:46:26 +0800
|
||||
Subject: [PATCH] build: fix "cc1plus xxx.cpp is not a directory" warnings
|
||||
|
||||
---
|
||||
src/frame/CMakeLists.txt | 15 +++++++--------
|
||||
1 file changed, 7 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/frame/CMakeLists.txt b/src/frame/CMakeLists.txt
|
||||
index acb137cd7..cf28dacf2 100644
|
||||
--- a/src/frame/CMakeLists.txt
|
||||
+++ b/src/frame/CMakeLists.txt
|
||||
@@ -1149,13 +1149,6 @@ set(TEST_SRCS
|
||||
${DISPLAY_FILES}
|
||||
${WIDGETS_FILES}
|
||||
${MODULE_FILES}
|
||||
- ${DtkWidget_INCLUDE_DIRS}
|
||||
- ${DFrameworkDBus_INCLUDE_DIRS}
|
||||
- ${QGSettings_INCLUDE_DIRS}
|
||||
- ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
|
||||
- ${Qt5X11Extras_INCLUDE_DIRS}
|
||||
- ${QGSettings_INCLUDE_DIRS}
|
||||
- ${XCB_EWMH_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_executable(display-unit-test
|
||||
@@ -1163,7 +1156,13 @@ add_executable(display-unit-test
|
||||
)
|
||||
|
||||
target_include_directories(display-unit-test PUBLIC
|
||||
- ${TEST_SRCS}
|
||||
+ ${DtkWidget_INCLUDE_DIRS}
|
||||
+ ${DFrameworkDBus_INCLUDE_DIRS}
|
||||
+ ${QGSettings_INCLUDE_DIRS}
|
||||
+ ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
|
||||
+ ${Qt5X11Extras_INCLUDE_DIRS}
|
||||
+ ${QGSettings_INCLUDE_DIRS}
|
||||
+ ${XCB_EWMH_INCLUDE_DIRS}
|
||||
${PROJECT_BINARY_DIR}
|
||||
)
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,26 @@
|
|||
From 3f38d2fd79656ae99656e701a064725d7d75d68c Mon Sep 17 00:00:00 2001
|
||||
From: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Date: Fri, 13 Nov 2020 11:10:07 +0800
|
||||
Subject: [PATCH 2/4] no user experience
|
||||
|
||||
---
|
||||
src/frame/window/modules/commoninfo/commoninfowidget.cpp | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/src/frame/window/modules/commoninfo/commoninfowidget.cpp b/src/frame/window/modules/commoninfo/commoninfowidget.cpp
|
||||
index abede087c..6fb5261c0 100644
|
||||
--- a/src/frame/window/modules/commoninfo/commoninfowidget.cpp
|
||||
+++ b/src/frame/window/modules/commoninfo/commoninfowidget.cpp
|
||||
@@ -91,9 +91,6 @@ void CommonInfoWidget::initData()
|
||||
QMetaMethod::fromSignal(&CommonInfoWidget::requestShowDeveloperModeWidget)});
|
||||
}
|
||||
}
|
||||
- //~ contents_path /commoninfo/User Experience Program
|
||||
- m_itemList.append({"dcc_ue_plan", tr("User Experience Program"),
|
||||
- QMetaMethod::fromSignal(&CommonInfoWidget::requestShowUEPlanWidget)});
|
||||
|
||||
#if 0
|
||||
m_itemList.append({"", tr("Tablet Mode"),
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -0,0 +1,189 @@
|
|||
From 6ae28f9192bea743a19ec8c411f9d236e9dda3e9 Mon Sep 17 00:00:00 2001
|
||||
From: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Date: Fri, 6 Nov 2020 10:55:08 +0800
|
||||
Subject: [PATCH 3/4] feat: Initial packit setup
|
||||
|
||||
This commit contains the specfile for building the official package for Fedora
|
||||
with a Packit setup.
|
||||
|
||||
Ultimately, a unified specfile is targeted for Fedora and any other rpm-based
|
||||
distributions, e.g. openEuler.
|
||||
|
||||
And Packit(https://packit.dev/) is a tool for maintaining specfile within
|
||||
upstream source. It requires a simple config file(.packit.yaml).
|
||||
|
||||
Log: Initial packit setup
|
||||
Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
|
||||
---
|
||||
rpm/dde-control-center.spec | 111 +++++++++++++++++++++++-------------
|
||||
1 file changed, 72 insertions(+), 39 deletions(-)
|
||||
|
||||
diff --git a/rpm/dde-control-center.spec b/rpm/dde-control-center.spec
|
||||
index bc5e4cc08..4f8f26d47 100644
|
||||
--- a/rpm/dde-control-center.spec
|
||||
+++ b/rpm/dde-control-center.spec
|
||||
@@ -1,89 +1,122 @@
|
||||
-Name: dde-control-center
|
||||
-Version: 5.1.0.19
|
||||
-Release: 2
|
||||
+%global repo dde-control-center
|
||||
+
|
||||
+%if 0%{?fedora}
|
||||
+%global dde_prefix deepin
|
||||
+Name: deepin-control-center
|
||||
+%else
|
||||
+%global dde_prefix dde
|
||||
+Name: %{repo}
|
||||
+%endif
|
||||
+Version: 5.3.0.68
|
||||
+Release: 1%{?fedora:%dist}
|
||||
Summary: New control center for Linux Deepin
|
||||
License: GPLv3
|
||||
-URL: https://github.com/linuxdeepin/%{name}
|
||||
-Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
+URL: https://github.com/linuxdeepin/%{repo}
|
||||
+Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
|
||||
|
||||
-#BuildRequires: dtkcore-devel >= 5.1.1
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: desktop-file-utils
|
||||
-BuildRequires: dde-dock-devel
|
||||
+BuildRequires: %{dde_prefix}-dock-devel
|
||||
BuildRequires: pkgconfig(dde-network-utils)
|
||||
-#BuildRequires: pkgconfig(dtkwidget) >= 5.1
|
||||
-BuildRequires: dtkwidget-devel
|
||||
+BuildRequires: dtkwidget-devel >= 5.4.0
|
||||
BuildRequires: dtkgui-devel dtkcore-devel
|
||||
-#BuildRequires: pkgconfig(dtkwidget2)
|
||||
-#BuildRequires: pkgconfig(dframeworkdbus) >= 2.0
|
||||
-BuildRequires: dde-qt-dbus-factory-devel
|
||||
+BuildRequires: %{dde_prefix}-qt-dbus-factory-devel
|
||||
BuildRequires: pkgconfig(gsettings-qt)
|
||||
BuildRequires: pkgconfig(geoip)
|
||||
BuildRequires: pkgconfig(libnm)
|
||||
BuildRequires: libpwquality-devel
|
||||
+%if 0%{?fedora}
|
||||
+BuildRequires: pkgconfig(Qt5Core)
|
||||
+BuildRequires: pkgconfig(Qt5Concurrent)
|
||||
+BuildRequires: pkgconfig(Qt5DBus)
|
||||
+BuildRequires: pkgconfig(Qt5Multimedia)
|
||||
+BuildRequires: pkgconfig(Qt5Svg)
|
||||
+BuildRequires: pkgconfig(Qt5Sql)
|
||||
+BuildRequires: pkgconfig(Qt5Xml)
|
||||
+BuildRequires: pkgconfig(Qt5X11Extras)
|
||||
+BuildRequires: qt5-qtbase-private-devel
|
||||
+%else
|
||||
BuildRequires: qt5-devel
|
||||
+%endif
|
||||
BuildRequires: pkgconfig(xcb-ewmh)
|
||||
+BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: kf5-networkmanager-qt-devel
|
||||
BuildRequires: udisks2-qt5-devel
|
||||
BuildRequires: qt5-linguist
|
||||
BuildRequires: cmake
|
||||
-Requires: dde-account-faces
|
||||
-Requires: dde-api
|
||||
-Requires: dde-daemon
|
||||
-Requires: dde-qt5integration
|
||||
-Requires: dde-network-utils
|
||||
+Requires: %{dde_prefix}-account-faces
|
||||
+Requires: %{dde_prefix}-api
|
||||
+Requires: %{dde_prefix}-daemon
|
||||
+Requires: %{dde_prefix}-qt5integration
|
||||
+Requires: %{dde_prefix}-network-utils
|
||||
Requires: startdde
|
||||
+%if 0%{?fedora} == 0
|
||||
Requires: dde-server-industry-config
|
||||
+%endif
|
||||
|
||||
%description
|
||||
New control center for Linux Deepin.
|
||||
|
||||
%package devel
|
||||
-Summary: %{summary}
|
||||
+Summary: Development package for %{name}
|
||||
+Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
-%{summary}.
|
||||
+Header files and libraries for %{name}.
|
||||
|
||||
%prep
|
||||
-%setup -q -n %{name}-%{version}
|
||||
-sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh
|
||||
+%autosetup -p1 -n %{repo}-%{version}
|
||||
sed -i -E '/add_compile_definitions/d' CMakeLists.txt
|
||||
|
||||
+sed -i '/%{repo}/ s|/usr/lib|%{_libdir}|' src/frame/modules/update/updatework.cpp \
|
||||
+ src/frame/window/mainwindow.cpp \
|
||||
+ src/frame/window/insertplugin.cpp
|
||||
+
|
||||
+sed -i '/TARGETS/s|lib|%{_lib}|' src/frame/CMakeLists.txt
|
||||
+
|
||||
+# remove after -DDISABLE_SYS_UPDATE=YES working properly
|
||||
+sed -i '/new UpdateModule/d' src/frame/window/mainwindow.cpp
|
||||
+
|
||||
%build
|
||||
-%cmake . -DDCC_DISABLE_GRUB=YES \
|
||||
- -DDISABLE_SYS_UPDATE=YES
|
||||
+export PATH=%{_qt5_bindir}:$PATH
|
||||
+%cmake %{!?fedora:.} -DDCC_DISABLE_GRUB=YES \
|
||||
+ -DDISABLE_SYS_UPDATE=YES \
|
||||
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
+%if 0%{?fedora}
|
||||
+%cmake_build
|
||||
+%else
|
||||
%make_build
|
||||
+%endif
|
||||
|
||||
%install
|
||||
+%if 0%{?fedora}
|
||||
+%cmake_install
|
||||
+%else
|
||||
%make_install INSTALL_ROOT=%{buildroot}
|
||||
+%endif
|
||||
# place holder plugins dir
|
||||
-mkdir -p %{buildroot}%{_libdir}/%{name}/plugins
|
||||
-# https://github.com/linuxdeepin/dde-control-center/issues/115
|
||||
-# And we disabled SYS_UPDATE, so reboot-reminder-dialog is useless.
|
||||
-#rm %{buildroot}%{_bindir}/reboot-reminder-dialog
|
||||
-mkdir -p %{buildroot}/usr/lib64/cmake/DdeControlCenter
|
||||
-mv %{buildroot}/cmake/DdeControlCenter/DdeControlCenterConfig.cmake %{buildroot}/usr/lib64/cmake/DdeControlCenter
|
||||
-mv %{buildroot}/usr/lib/libdccwidgets.so %{buildroot}%{_libdir}/
|
||||
-install -Dm644 com.deepin.controlcenter.addomain.policy %{buildroot}%{_datadir}/polkit-1/actions/
|
||||
+mkdir -p %{buildroot}%{_libdir}/%{repo}/plugins
|
||||
|
||||
%check
|
||||
-desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
||||
-
|
||||
-%ldconfig_scriptlets
|
||||
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
-%{_sysconfdir}/
|
||||
%{_bindir}/abrecovery
|
||||
-%{_bindir}/dde-control-center
|
||||
-%{_datadir}/
|
||||
+%{_bindir}/%{repo}
|
||||
+%{_libdir}/%{repo}
|
||||
%{_libdir}/libdccwidgets.so
|
||||
-/etc/xdg/autostart/deepin-ab-recovery.desktop
|
||||
+%{_datadir}/applications/%{repo}.desktop
|
||||
+%{_datadir}/dbus-1/services/*.service
|
||||
+%{_datadir}/polkit-1/actions/com.deepin.*.policy
|
||||
+%{_datadir}/%{repo}/
|
||||
+%{_datadir}/dict/MainEnglishDictionary_ProbWL.txt
|
||||
+%{_sysconfdir}/xdg/autostart/deepin-ab-recovery.desktop
|
||||
|
||||
%files devel
|
||||
-%{_includedir}/dde-control-center
|
||||
+%{_includedir}/%{repo}
|
||||
%{_libdir}/cmake/DdeControlCenter/
|
||||
|
||||
%changelog
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
From e9566285e57231a4d0a6a5185490d6cdb4bdf69f Mon Sep 17 00:00:00 2001
|
||||
From: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Date: Fri, 13 Nov 2020 11:15:27 +0800
|
||||
Subject: [PATCH 4/4] Arch fixes
|
||||
|
||||
---
|
||||
rpm/dde-control-center.spec | 22 +++++++++++++++-------
|
||||
1 file changed, 15 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/rpm/dde-control-center.spec b/rpm/dde-control-center.spec
|
||||
index 4f8f26d47..4ee0acf7d 100644
|
||||
--- a/rpm/dde-control-center.spec
|
||||
+++ b/rpm/dde-control-center.spec
|
||||
@@ -7,7 +7,7 @@ Name: deepin-control-center
|
||||
%global dde_prefix dde
|
||||
Name: %{repo}
|
||||
%endif
|
||||
-Version: 5.3.0.68
|
||||
+Version: 5.3.0.39
|
||||
Release: 1%{?fedora:%dist}
|
||||
Summary: New control center for Linux Deepin
|
||||
License: GPLv3
|
||||
@@ -18,7 +18,7 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: %{dde_prefix}-dock-devel
|
||||
BuildRequires: pkgconfig(dde-network-utils)
|
||||
-BuildRequires: dtkwidget-devel >= 5.4.0
|
||||
+BuildRequires: dtkwidget-devel
|
||||
BuildRequires: dtkgui-devel dtkcore-devel
|
||||
BuildRequires: %{dde_prefix}-qt-dbus-factory-devel
|
||||
BuildRequires: pkgconfig(gsettings-qt)
|
||||
@@ -71,17 +71,28 @@ sed -i -E '/add_compile_definitions/d' CMakeLists.txt
|
||||
|
||||
sed -i '/%{repo}/ s|/usr/lib|%{_libdir}|' src/frame/modules/update/updatework.cpp \
|
||||
src/frame/window/mainwindow.cpp \
|
||||
- src/frame/window/insertplugin.cpp
|
||||
+ com.deepin.controlcenter.develop.policy \
|
||||
+ README.md
|
||||
|
||||
sed -i '/TARGETS/s|lib|%{_lib}|' src/frame/CMakeLists.txt
|
||||
|
||||
+sed -i '/#include <QPainter>/a #include <QPainterPath>' src/frame/widgets/basiclistdelegate.cpp src/frame/window/modules/update/updatehistorybutton.cpp \
|
||||
+ src/frame/window/modules/commoninfo/commonbackgrounditem.cpp src/frame/modules/accounts/useroptionitem.cpp \
|
||||
+ src/frame/window/modules/sync/pages/avatarwidget.cpp src/frame/window/modules/accounts/avataritemdelegate.cpp \
|
||||
+ src/frame/modules/accounts/avatarwidget.cpp src/frame/window/modules/accounts/accountswidget.cpp \
|
||||
+ src/frame/modules/datetime/timezone_dialog/popup_menu.cpp src/frame/modules/display/recognizedialog.cpp \
|
||||
+ src/frame/window/modules/personalization/roundcolorwidget.cpp src/frame/window/modules/unionid/pages/avatarwidget.cpp
|
||||
+sed -i '/#include <QRect>/a #include <QPainterPath>' src/frame/window/modules/personalization/personalizationgeneral.cpp
|
||||
+
|
||||
+sed -i 's|/bin/deepin-recovery-tool|%{_bindir}/deepin-recovery-tool|' src/frame/window/modules/systeminfo/backupandrestoreworker.cpp
|
||||
+
|
||||
# remove after -DDISABLE_SYS_UPDATE=YES working properly
|
||||
sed -i '/new UpdateModule/d' src/frame/window/mainwindow.cpp
|
||||
|
||||
%build
|
||||
export PATH=%{_qt5_bindir}:$PATH
|
||||
%cmake %{!?fedora:.} -DDCC_DISABLE_GRUB=YES \
|
||||
- -DDISABLE_SYS_UPDATE=YES \
|
||||
+ -DDISABLE_SYS_UPDATE=YES -DDISABLE_ACTIVATOR=YES -DDISABLE_RECOVERY=YES \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
%if 0%{?fedora}
|
||||
%cmake_build
|
||||
@@ -104,7 +115,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
-%{_bindir}/abrecovery
|
||||
%{_bindir}/%{repo}
|
||||
%{_libdir}/%{repo}
|
||||
%{_libdir}/libdccwidgets.so
|
||||
@@ -113,7 +123,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop
|
||||
%{_datadir}/polkit-1/actions/com.deepin.*.policy
|
||||
%{_datadir}/%{repo}/
|
||||
%{_datadir}/dict/MainEnglishDictionary_ProbWL.txt
|
||||
-%{_sysconfdir}/xdg/autostart/deepin-ab-recovery.desktop
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{repo}
|
||||
@@ -128,4 +137,3 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop
|
||||
|
||||
* Fri May 29 2020 uniontech <uoser@uniontech.com> - 5.0.30
|
||||
- Project init.
|
||||
-
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 0.19.0.
|
|
@ -1,24 +1,50 @@
|
|||
%global repo dde-control-center
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global dde_prefix deepin
|
||||
Name: deepin-control-center
|
||||
Version: 5.0.0
|
||||
Release: 5%{?dist}
|
||||
%else
|
||||
%global dde_prefix dde
|
||||
Name: %{repo}
|
||||
%endif
|
||||
Version: 5.3.0.39
|
||||
Release: 1%{?fedora:%dist}
|
||||
Summary: New control center for Linux Deepin
|
||||
License: GPLv3
|
||||
URL: https://github.com/linuxdeepin/dde-control-center
|
||||
URL: https://github.com/linuxdeepin/%{repo}
|
||||
Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
|
||||
# applied in upstream 791fbcc9d24532df04b81bd9dabb99fb8aff79ab
|
||||
Patch0: 0001-build-fix-cc1plus-xxx.cpp-is-not-a-directory-warning.patch
|
||||
|
||||
# PATCHES FROM SOURCE GIT:
|
||||
|
||||
# systeminfo-deepin-icon
|
||||
# Author: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Patch0001: 0001-systeminfo-deepin-icon.patch
|
||||
|
||||
# no user experience
|
||||
# Author: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Patch0002: 0002-no-user-experience.patch
|
||||
|
||||
# feat: Initial packit setup
|
||||
# Author: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Patch0003: 0003-feat-Initial-packit-setup.patch
|
||||
|
||||
# Arch fixes
|
||||
# Author: Robin Lee <cheeselee@fedoraproject.org>
|
||||
Patch0004: 0004-Arch-fixes.patch
|
||||
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: deepin-dock-devel
|
||||
BuildRequires: %{dde_prefix}-dock-devel
|
||||
BuildRequires: pkgconfig(dde-network-utils)
|
||||
BuildRequires: pkgconfig(dtkwidget) >= 2.0.6
|
||||
BuildRequires: pkgconfig(dframeworkdbus) >= 2.0
|
||||
BuildRequires: dtkwidget-devel
|
||||
BuildRequires: dtkgui-devel dtkcore-devel
|
||||
BuildRequires: %{dde_prefix}-qt-dbus-factory-devel
|
||||
BuildRequires: pkgconfig(gsettings-qt)
|
||||
BuildRequires: pkgconfig(geoip)
|
||||
BuildRequires: pkgconfig(libnm)
|
||||
BuildRequires: libpwquality-devel
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||
BuildRequires: pkgconfig(Qt5DBus)
|
||||
|
@ -27,57 +53,104 @@ BuildRequires: pkgconfig(Qt5Svg)
|
|||
BuildRequires: pkgconfig(Qt5Sql)
|
||||
BuildRequires: pkgconfig(Qt5Xml)
|
||||
BuildRequires: pkgconfig(Qt5X11Extras)
|
||||
BuildRequires: qt5-qtbase-private-devel
|
||||
%else
|
||||
BuildRequires: qt5-devel
|
||||
%endif
|
||||
BuildRequires: pkgconfig(xcb-ewmh)
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: cmake(KF5NetworkManagerQt)
|
||||
BuildRequires: kf5-networkmanager-qt-devel
|
||||
BuildRequires: udisks2-qt5-devel
|
||||
BuildRequires: qt5-linguist
|
||||
BuildRequires: qt5-qtbase-private-devel
|
||||
Requires: deepin-account-faces
|
||||
Requires: deepin-api
|
||||
Requires: deepin-daemon
|
||||
Requires: deepin-qt5integration
|
||||
Requires: deepin-network-utils
|
||||
Requires: GeoIP-GeoLite-data
|
||||
Requires: GeoIP-GeoLite-data-extra
|
||||
Requires: gtk-murrine-engine
|
||||
Requires: proxychains-ng
|
||||
Requires: redshift
|
||||
BuildRequires: cmake
|
||||
Requires: %{dde_prefix}-account-faces
|
||||
Requires: %{dde_prefix}-api
|
||||
Requires: %{dde_prefix}-daemon
|
||||
Requires: %{dde_prefix}-qt5integration
|
||||
Requires: %{dde_prefix}-network-utils
|
||||
Requires: startdde
|
||||
%if 0%{?fedora} == 0
|
||||
Requires: dde-server-industry-config
|
||||
%endif
|
||||
|
||||
%description
|
||||
New control center for Linux Deepin.
|
||||
|
||||
%package devel
|
||||
Summary: Development package for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
Header files and libraries for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{repo}-%{version}
|
||||
%patch0 -p1
|
||||
sed -i '/%{repo}/s|\.\./lib|%{_libdir}|' src/frame/pluginscontroller.cpp
|
||||
%autosetup -p1 -n %{repo}-%{version}
|
||||
sed -i -E '/add_compile_definitions/d' CMakeLists.txt
|
||||
|
||||
sed -i '/%{repo}/ s|/usr/lib|%{_libdir}|' src/frame/modules/update/updatework.cpp \
|
||||
src/frame/window/mainwindow.cpp \
|
||||
com.deepin.controlcenter.develop.policy \
|
||||
README.md
|
||||
|
||||
sed -i '/TARGETS/s|lib|%{_lib}|' src/frame/CMakeLists.txt
|
||||
|
||||
sed -i '/#include <QPainter>/a #include <QPainterPath>' src/frame/widgets/basiclistdelegate.cpp src/frame/window/modules/update/updatehistorybutton.cpp \
|
||||
src/frame/window/modules/commoninfo/commonbackgrounditem.cpp src/frame/modules/accounts/useroptionitem.cpp \
|
||||
src/frame/window/modules/sync/pages/avatarwidget.cpp src/frame/window/modules/accounts/avataritemdelegate.cpp \
|
||||
src/frame/modules/accounts/avatarwidget.cpp src/frame/window/modules/accounts/accountswidget.cpp \
|
||||
src/frame/modules/datetime/timezone_dialog/popup_menu.cpp src/frame/modules/display/recognizedialog.cpp \
|
||||
src/frame/window/modules/personalization/roundcolorwidget.cpp src/frame/window/modules/unionid/pages/avatarwidget.cpp
|
||||
sed -i '/#include <QRect>/a #include <QPainterPath>' src/frame/window/modules/personalization/personalizationgeneral.cpp
|
||||
|
||||
sed -i 's|/bin/deepin-recovery-tool|%{_bindir}/deepin-recovery-tool|' src/frame/window/modules/systeminfo/backupandrestoreworker.cpp
|
||||
|
||||
# remove after -DDISABLE_SYS_UPDATE=YES working properly
|
||||
sed -i '/new UpdateModule/d' src/frame/window/mainwindow.cpp
|
||||
|
||||
%build
|
||||
export PATH=%{_qt5_bindir}:$PATH
|
||||
%cmake . -DDCC_DISABLE_GRUB=YES \
|
||||
-DDISABLE_SYS_UPDATE=YES
|
||||
%cmake %{!?fedora:.} -DDCC_DISABLE_GRUB=YES \
|
||||
-DDISABLE_SYS_UPDATE=YES -DDISABLE_ACTIVATOR=YES -DDISABLE_RECOVERY=YES \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
%if 0%{?fedora}
|
||||
%cmake_build
|
||||
%else
|
||||
%make_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%{?fedora}
|
||||
%cmake_install
|
||||
%else
|
||||
%make_install INSTALL_ROOT=%{buildroot}
|
||||
%endif
|
||||
# place holder plugins dir
|
||||
mkdir -p %{buildroot}%{_libdir}/%{repo}/plugins
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop ||:
|
||||
|
||||
%ldconfig_scriptlets
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{repo}.desktop
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/%{repo}
|
||||
%{_libdir}/%{repo}
|
||||
%{_libdir}/libdccwidgets.so
|
||||
%{_datadir}/applications/%{repo}.desktop
|
||||
%{_datadir}/dbus-1/services/*.service
|
||||
%{_datadir}/polkit-1/actions/com.deepin.*.policy
|
||||
%{_datadir}/%{repo}/
|
||||
%{_libdir}/%{repo}/
|
||||
%{_datadir}/dict/MainEnglishDictionary_ProbWL.txt
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{repo}
|
||||
%{_libdir}/cmake/DdeControlCenter/
|
||||
|
||||
%changelog
|
||||
* Fri Nov 13 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.3.0.39-1
|
||||
- new upstream release: 5.3.0.39
|
||||
|
||||
* Thu Aug 6 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-5
|
||||
- BR: qt5-qtbase-private-devel
|
||||
- Applied an upstream patch to fix build with Qt 5.14
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (dde-control-center-5.0.0.tar.gz) = 2a5c5e07fc4fae9d40ff2a05c393a638d868b2f4e93bcba3ac4123120dd6dbcd62bd2739cedc164ab1e5b0e451a09e70afe1a63b74ae44ca216fc50e199f01f2
|
||||
SHA512 (dde-control-center-5.3.0.39.tar.gz) = 776df57cccdfcdd58ff05696cf4ba8f6b87bc64791fc117907bd03081027d1a56b9fe213409ce8bc446cc2ed36c119bdd16778ce6e9370ca7ddefd11fc84e947
|
||||
|
|
Loading…
Reference in New Issue