ukui-control-center/ukui-control-center.spec

201 lines
5.7 KiB
RPMSpec
Raw Normal View History

2020-07-09 10:34:58 +08:00
%define debug_package %{nil}
Name: ukui-control-center
2020-11-03 14:09:04 +08:00
Version: 3.0.1
2021-07-13 09:59:57 +08:00
Release: 12
2020-07-09 10:34:58 +08:00
Summary: utilities to configure the UKUI desktop
2020-07-24 15:07:21 +08:00
License: GPL-2+
2020-07-09 10:34:58 +08:00
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: gsettings-qt-devel
BuildRequires: glib2-devel
BuildRequires: libmatekbd-devel
BuildRequires: qt5-qtx11extras-devel
BuildRequires: libxklavier-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: kf5-kwidgetsaddons-devel
BuildRequires: kf5-kconfig-devel
BuildRequires: kf5-kconfigwidgets-devel
2020-07-24 15:07:21 +08:00
BuildRequires: kf5-ki18n-devel
2020-07-09 10:34:58 +08:00
#BuildRequires: libkscreen
BuildRequires: libkscreen-qt5-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: dconf-devel
BuildRequires: edid-decode
2020-07-09 10:34:58 +08:00
BuildRequires: redshift
BuildRequires: libmatemixer-devel
BuildRequires: libqtxdg-devel
BuildRequires: qt5-qtmultimedia-devel
BuildRequires: libxml2-devel
2020-07-24 15:07:21 +08:00
BuildRequires: libcanberra-devel
2020-11-03 14:09:04 +08:00
BuildRequires: kf5-kcoreaddons-devel
BuildRequires: kf5-kguiaddons-devel
BuildRequires: mate-desktop-devel
BuildRequires: libX11-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libxkbfile-devel
BuildRequires: boost-devel
BuildRequires: libxcb-devel
2020-11-09 11:29:52 +08:00
BuildRequires: qt5-linguist
2020-11-12 10:07:30 +08:00
BuildRequires: polkit-qt5-1-devel
2020-07-09 10:34:58 +08:00
2020-11-03 14:09:04 +08:00
Requires: dconf
Requires: qt5-qtimageformats
2020-07-09 10:34:58 +08:00
Requires: qt5-qtsvg-devel
Requires: gsettings-qt-devel
Requires: glib2-devel
Requires: libmatekbd-devel
Requires: qt5-qtx11extras-devel
Requires: libxklavier-devel
Requires: kf5-kwindowsystem-devel
Requires: kf5-kwidgetsaddons-devel
Requires: kf5-kconfig-devel
Requires: kf5-kconfigwidgets-devel
2020-07-24 15:07:21 +08:00
Requires: kf5-ki18n-devel
2020-07-09 10:34:58 +08:00
#Requires: libkscreen
Requires: libkscreen-qt5-devel
Requires: qt5-qtdeclarative-devel
Requires: dconf-devel
Requires: edid-decode
2020-07-09 10:34:58 +08:00
Requires: redshift
Requires: libmatemixer-devel
Requires: libqtxdg-devel
Requires: qt5-qtmultimedia-devel
Requires: libxml2-devel
Requires: network-manager-applet
2020-07-24 15:07:21 +08:00
Requires: libcanberra-devel
Requires: qt5-qtgraphicaleffects
Requires: qt5-qtquickcontrols
2020-07-09 10:34:58 +08:00
patch0: 0001-fix-system-overview-failed.patch
patch1: 0002-fix-autologin-nopasswdlogin-failed.patch
patch2: 0003-fix-dialog-pop-twice-after-modifying-resolution-bug.patch
patch3: 0004-fix-effects-mode-not-available-bug.patch
patch4: 0005-fix-blueman-tray-and-groupadd-autologin.patch
patch5: 0001-add-judgment-when-Bluetooth-does-not-exist.patch
2021-07-08 14:05:03 +08:00
patch6: 0006-fix-Group-members-are-not-displayed.patch
2021-07-09 17:07:45 +08:00
patch7: 0007-fix-vnc-crashed.patch
patch8: 0008-fix-redeclaration-of-QStringList-usergroupList-in-ed.patch
2021-07-12 09:58:19 +08:00
patch9: 0009-fix-layout-optimization.patch
2021-07-12 11:38:43 +08:00
patch10:0010-Added-translation-using-Weblate-Tibetan.patch
2021-07-12 14:07:29 +08:00
patch11:0011-power-add-sleep-function.patch
2021-07-13 09:59:57 +08:00
patch12:0012-window-add-title-icon.patch
2021-07-12 14:07:29 +08:00
2020-07-09 10:34:58 +08:00
Recommends: qt5-qtquickcontrols
Suggests: gsettings-desktop-schemas
Suggests: mate-common
Suggests: ukui-power-manager
Suggests: ukui-session-manager
Suggests: ukui-screensaver
Suggests: ukui-settings-daemon
2020-07-24 15:07:21 +08:00
#Suggests: qt5-qtgraphicaleffects
2020-07-09 10:34:58 +08:00
%description
The UKUI control center contains configuration applets for the UKUI desktop,
allowing to set accessibility configuration, desktop fonts, keyboard
and mouse properties, sound setup, desktop theme and background, user
interface properties, screen resolution, and other UKUI parameters.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
2021-07-08 14:05:03 +08:00
%patch6 -p1
2021-07-09 17:07:45 +08:00
%patch7 -p1
%patch8 -p1
2021-07-12 09:58:19 +08:00
%patch9 -p1
2021-07-12 11:38:43 +08:00
%patch10 -p1
2021-07-12 14:07:29 +08:00
%patch11 -p1
2021-07-13 09:59:57 +08:00
%patch12 -p1
2021-07-08 14:05:03 +08:00
2020-07-09 10:34:58 +08:00
%build
qmake-qt5
2020-07-09 10:34:58 +08:00
make
%install
rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT=%{buildroot} install
2020-11-03 14:09:04 +08:00
%post
set -e
glib-compile-schemas /usr/share/glib-2.0/schemas/
2020-11-12 10:07:30 +08:00
#systemctl enable ukui-group-manager.service
#systemctl start ukui-group-manager.service
2020-11-03 14:09:04 +08:00
chown root:root /usr/bin/checkuserpwd
chmod u+s /usr/bin/checkuserpwd
%preun
2020-11-12 10:07:30 +08:00
#systemctl disable ukui-group-manager.service
#systemctl stop ukui-group-manager.service
2020-11-03 14:09:04 +08:00
2020-07-09 10:34:58 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
2020-07-09 10:34:58 +08:00
%{_sysconfdir}/dbus-1/system.d/*
%{_bindir}/launchSysDbus
%{_bindir}/ukui-control-center
2020-11-03 14:09:04 +08:00
#%%{_prefix}/lib/control-center/*
%{_libdir}/ukui-control-center/*
2020-07-09 10:34:58 +08:00
%{_datadir}/applications/*
%{_datadir}/dbus-1/system-services/*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/locale/zh_CN/LC_MESSAGES/*
%{_datadir}/ukui/faces/*
2020-11-03 14:09:04 +08:00
%{_datadir}/ukui-control-center/shell/res/i18n
2020-11-12 15:14:57 +08:00
%{_bindir}/group-manager-server
2020-11-03 14:09:04 +08:00
%{_bindir}/checkuserpwd
2020-11-12 15:14:57 +08:00
%{_unitdir}/ukui-group-manager.service
%{_datadir}/polkit-1/actions/org.ukui.groupmanager.policy
2020-07-09 10:34:58 +08:00
%changelog
2021-07-13 09:59:57 +08:00
* Tue Jul 13 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-12
- window add title icon
2021-07-12 14:07:29 +08:00
* Mon Jul 12 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-11
- power add sleep function
2021-07-12 11:38:43 +08:00
* Mon Jul 12 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-10
- Added translation using Weblate Tibetan add bo_CN.ts file
2021-07-12 09:58:19 +08:00
* Mon Jul 12 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-9
- fix layout optimization
* Fri Jul 09 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-8
- fix redeclaration of QStringList usergroupList
2021-07-09 17:07:45 +08:00
* Fri Jul 09 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-7
- fix vnc crashed
2021-07-08 14:05:03 +08:00
* Thu Jul 08 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-6
- fix-Group-members-are-not-displayed
* Thu Jul 08 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.1-5
- add-judgment-when-Bluetooth-does-not-exist.patch
* Thu Jan 21 2021 lvhan <lvhan@kylinos.cn> - 3.0.1-4
- fix-blueman-tray-and-groupadd-autologin
* Thu Dec 3 2020 lvhan <lvhan@kylinos.cn> - 3.0.1-3
- fix dialog pop twice after modifying resolution
- fix effects mode not available
* Mon Nov 30 2020 lvhan <lvhan@kylinos.cn> - 3.0.1-2
- fix autologin nopasswdlogin failed
- fix system overview failed
2020-11-03 14:09:04 +08:00
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 3.0.1-1
2020-11-12 15:14:57 +08:00
- update to upstream version 3.0.0-1+1031
2020-11-03 14:09:04 +08:00
2020-07-24 15:07:21 +08:00
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.0.3-1
2020-07-09 10:34:58 +08:00
- Init package for openEuler