2022-07-18 10:32:44 +08:00
|
|
|
%define specrelease 1%{?dist}
|
|
|
|
|
%if 0%{?openeuler}
|
2023-04-11 11:08:41 +08:00
|
|
|
%define specrelease 2
|
2022-07-18 10:32:44 +08:00
|
|
|
%endif
|
|
|
|
|
|
2020-07-13 18:33:14 +08:00
|
|
|
Name: dde-control-center
|
2023-04-10 09:45:16 +08:00
|
|
|
Version: 5.4.85.4
|
2022-07-18 10:32:44 +08:00
|
|
|
Release: %{specrelease}
|
2020-07-13 18:33:14 +08:00
|
|
|
Summary: New control center for Linux Deepin
|
|
|
|
|
License: GPLv3
|
2021-07-07 17:37:46 +08:00
|
|
|
URL: https://github.com/linuxdeepin/%{name}
|
|
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2023-04-10 09:45:16 +08:00
|
|
|
Patch0: 0002-hide-authorized.patch
|
2023-04-11 11:08:41 +08:00
|
|
|
Patch1: 0001-dde-control-center-uos-fix-modify-eulerServerEnduserAgreement_new-path.patch
|
|
|
|
|
Patch2: 0003-bugfix-for-no-check-newpassword-at-modifypwd.patch
|
2020-07-13 18:33:14 +08:00
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: dde-dock-devel
|
|
|
|
|
BuildRequires: pkgconfig(dde-network-utils)
|
|
|
|
|
BuildRequires: dtkwidget-devel
|
|
|
|
|
BuildRequires: dtkgui-devel dtkcore-devel
|
|
|
|
|
BuildRequires: dde-qt-dbus-factory-devel
|
|
|
|
|
BuildRequires: pkgconfig(gsettings-qt)
|
|
|
|
|
BuildRequires: pkgconfig(geoip)
|
|
|
|
|
BuildRequires: pkgconfig(libnm)
|
2021-07-07 17:37:46 +08:00
|
|
|
BuildRequires: libpwquality-devel
|
|
|
|
|
BuildRequires: qt5-devel
|
2020-07-13 18:33:14 +08:00
|
|
|
BuildRequires: pkgconfig(xcb-ewmh)
|
|
|
|
|
BuildRequires: kf5-networkmanager-qt-devel
|
|
|
|
|
BuildRequires: udisks2-qt5-devel
|
|
|
|
|
BuildRequires: qt5-linguist
|
|
|
|
|
BuildRequires: cmake
|
2022-01-30 09:42:52 +08:00
|
|
|
BuildRequires: libXext-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
2022-07-18 10:32:44 +08:00
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
BuildRequires: gmock-devel
|
|
|
|
|
BuildRequires: polkit-qt5-1-devel
|
|
|
|
|
BuildRequires: deepin-pw-check
|
|
|
|
|
BuildRequires: deepin-pw-check-devel
|
2020-07-13 18:33:14 +08:00
|
|
|
Requires: dde-account-faces
|
|
|
|
|
Requires: dde-api
|
|
|
|
|
Requires: dde-daemon
|
|
|
|
|
Requires: dde-qt5integration
|
|
|
|
|
Requires: dde-network-utils
|
|
|
|
|
Requires: startdde
|
|
|
|
|
Requires: dde-server-industry-config
|
2022-08-02 14:08:17 +08:00
|
|
|
#Requires: deepin-pw-check
|
2022-07-18 10:32:44 +08:00
|
|
|
Requires: cracklib
|
|
|
|
|
Recommends: NetworkManager-l2tp
|
2020-07-13 18:33:14 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
New control center for Linux Deepin.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-07 17:37:46 +08:00
|
|
|
%setup -q -n %{name}-%{version}
|
2022-08-04 14:29:58 +08:00
|
|
|
%patch0 -p1
|
2023-04-06 16:22:20 +08:00
|
|
|
%patch1 -p1
|
2023-04-11 11:08:41 +08:00
|
|
|
%patch2 -p1
|
2020-07-13 18:33:14 +08:00
|
|
|
sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh
|
|
|
|
|
sed -i -E '/add_compile_definitions/d' CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake . -DDCC_DISABLE_GRUB=YES \
|
2022-08-04 14:29:58 +08:00
|
|
|
-DDISABLE_SYS_UPDATE=YES \
|
|
|
|
|
-DDISABLE_ACTIVATOR=YES
|
2020-07-13 18:33:14 +08:00
|
|
|
%make_build
|
|
|
|
|
|
2022-07-18 10:32:44 +08:00
|
|
|
%post
|
2022-08-10 10:00:23 +08:00
|
|
|
#create-cracklib-dict /usr/share/dict/MainEnglishDictionary_ProbWL.txt
|
2022-07-18 10:32:44 +08:00
|
|
|
|
|
|
|
|
%postun
|
2022-08-10 10:00:23 +08:00
|
|
|
#if [ "$1" = "0" ] ; then
|
|
|
|
|
# create-cracklib-dict /usr/share/dict/MainEnglishDictionary_ProbWL.txt
|
|
|
|
|
#fi
|
2022-07-18 10:32:44 +08:00
|
|
|
|
2020-07-13 18:33:14 +08:00
|
|
|
%install
|
|
|
|
|
%make_install INSTALL_ROOT=%{buildroot}
|
2022-07-18 10:32:44 +08:00
|
|
|
# place holder plugins dir
|
2020-07-13 18:33:14 +08:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}/plugins
|
2022-07-18 10:32:44 +08:00
|
|
|
# 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
|
2020-07-13 18:33:14 +08:00
|
|
|
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/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_sysconfdir}/
|
|
|
|
|
%{_bindir}/abrecovery
|
|
|
|
|
%{_bindir}/dde-control-center
|
2022-07-18 10:32:44 +08:00
|
|
|
%{_bindir}/dde-control-center-wapper
|
2020-07-13 18:33:14 +08:00
|
|
|
%{_datadir}/
|
|
|
|
|
%{_libdir}/libdccwidgets.so
|
2023-04-10 09:45:16 +08:00
|
|
|
#/etc/xdg/autostart/deepin-ab-recovery.desktop
|
2020-07-13 18:33:14 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/dde-control-center
|
|
|
|
|
%{_libdir}/cmake/DdeControlCenter/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-04-11 11:08:41 +08:00
|
|
|
* Tue Apr 11 2023 Dongxing Wang <dxwangk@isoftstone.com> - 5.4.85.4-2
|
|
|
|
|
- fix: issue#I6QIOR bugfix-for-no-check-newpassword-at-modifypwd
|
|
|
|
|
|
2023-04-10 09:45:16 +08:00
|
|
|
* Mon Apr 10 2023 liweiganga <liweiganga@uniontech.com> - 5.4.85.4-1
|
|
|
|
|
- update: update to 5.4.85.4
|
|
|
|
|
|
2023-04-06 16:22:20 +08:00
|
|
|
* Thu Apr 06 2023 yangxianzhao <yangxianzhao@uniontech.com> - 5.4.43.27-5
|
|
|
|
|
- Repair user name related prompt information
|
|
|
|
|
|
2022-08-10 10:00:23 +08:00
|
|
|
* Wed Aug 10 2022 liweiganga <liweiganga@uniontech.com> - 5.4.43.27-4
|
|
|
|
|
- fix: issue#I5LI5A
|
|
|
|
|
|
2022-08-04 14:29:58 +08:00
|
|
|
* Fri Aug 05 2022 liweiganga <liweiganga@uniontech.com> - 5.4.43.27-3
|
|
|
|
|
- hide authorized
|
|
|
|
|
|
2022-08-02 14:08:17 +08:00
|
|
|
* Tue Aug 02 2022 liweiganga <liweiganga@unionttech.com> - 5.4.43.27-2
|
|
|
|
|
- Remove installation dependencies
|
|
|
|
|
|
2022-07-18 10:32:44 +08:00
|
|
|
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.4.43.27-1
|
|
|
|
|
- Update to 5.4.43.27
|
|
|
|
|
|
2022-01-30 09:42:52 +08:00
|
|
|
* Sun Jan 30 2022 liweigang <liweiganga@uniontech.com> - 5.3.0.54.4-2
|
|
|
|
|
- fix build error
|
|
|
|
|
|
2021-07-07 17:37:46 +08:00
|
|
|
* Wed Jul 07 2021 weidong <weidong@uniontech.com> - 5.3.0.54.4-1
|
|
|
|
|
- Update 5.3.0.54.4
|
|
|
|
|
|
2020-09-04 12:02:26 +08:00
|
|
|
* Fri Sep 4 2020 chenbo pan <panchenbo@uniontech.com> 5.1.0.19-3
|
|
|
|
|
- fix compile fail
|
2020-07-30 15:13:50 +08:00
|
|
|
|
2022-08-10 10:00:23 +08:00
|
|
|
* Fri Jul 03 2020 uniontech <uoser@uniontech.com> - 5.1.0.19-2
|
2020-07-13 18:33:14 +08:00
|
|
|
- Add dde.sh to profile.d
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 2020 uniontech <uoser@uniontech.com> - 5.1.0.19
|
|
|
|
|
- Remove the universal menu.
|
|
|
|
|
|
|
|
|
|
* Fri May 29 2020 uniontech <uoser@uniontech.com> - 5.0.30
|
|
|
|
|
- Project init.
|
2022-07-18 10:32:44 +08:00
|
|
|
|