Init package
This commit is contained in:
parent
bdc2ea0e10
commit
656ffafcfe
20
fix-plugin-icon.patch
Normal file
20
fix-plugin-icon.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -ur ukui-sidebar-1.1.0/src/sidebarpluginswidgets.cpp ukui-sidebar-1.1.0~/src/sidebarpluginswidgets.cpp
|
||||
--- ukui-sidebar-1.1.0/src/sidebarpluginswidgets.cpp 2020-06-18 14:31:44.000000000 +0800
|
||||
+++ ukui-sidebar-1.1.0~/src/sidebarpluginswidgets.cpp 2020-06-24 16:51:03.000000000 +0800
|
||||
@@ -407,7 +407,14 @@
|
||||
{
|
||||
QToolButton *p_ToolButton = new QToolButton();
|
||||
p_ToolButton->setFixedSize(90,90);
|
||||
- QPixmap pixmap = QIcon::fromTheme(icon).pixmap(QSize(45, 45));
|
||||
+ //显示错误,暂时读qrc文件中的icon
|
||||
+ //QPixmap pixmap = QIcon::fromTheme(icon).pixmap(QSize(45, 45));
|
||||
+ QPixmap pixmap;
|
||||
+ if(icon.contains("feedback")) {
|
||||
+ pixmap = QIcon(QString(":/data/images/%1.png").arg(icon)).pixmap(QSize(45, 45));
|
||||
+ } else {
|
||||
+ pixmap = QIcon(QString(":/data/images/%1.svg").arg(icon)).pixmap(QSize(45, 45));
|
||||
+ }
|
||||
QLabel *IconLabel = new QLabel();
|
||||
IconLabel->setFixedSize(45, 45);
|
||||
IconLabel->setPixmap(pixmap);
|
||||
Only in ukui-sidebar-1.1.0~: ukui-sidebar.pro.user
|
||||
BIN
ukui-sidebar-1.1.0.tar.gz
Normal file
BIN
ukui-sidebar-1.1.0.tar.gz
Normal file
Binary file not shown.
70
ukui-sidebar.spec
Normal file
70
ukui-sidebar.spec
Normal file
@ -0,0 +1,70 @@
|
||||
%define debug_package %{nil}
|
||||
Name: ukui-sidebar
|
||||
Version: 1.1.0
|
||||
Release: 1
|
||||
Summary: parallels toolbox for UKUI
|
||||
License: GPL-3.0
|
||||
URL: http://www.ukui.org
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
BuildRequires: qt5-qtmultimedia-devel
|
||||
BuildRequires: qt5-qttools-devel
|
||||
BuildRequires: gsettings-qt-devel
|
||||
BuildRequires: dconf-devel
|
||||
|
||||
Requires: glib2-devel
|
||||
Requires: qt5-qtbase-devel
|
||||
Requires: qt5-qtsvg-devel
|
||||
Requires: qt5-qtmultimedia-devel
|
||||
Requires: qt5-qttools-devel
|
||||
Requires: gsettings-qt-devel
|
||||
Requires: dconf-devel
|
||||
|
||||
patch0: fix-plugin-icon.patch
|
||||
|
||||
%description
|
||||
The ukui-sidebar is mainly used in the desktop operating system.
|
||||
It pops up from the right side of the desktop in the form of a tray,
|
||||
displaying some application notification messages and some cutting
|
||||
storage information.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
mkdir build && cd build
|
||||
qmake-qt5 ..
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
cd %{_builddir}/%{name}-%{version}/build
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%doc debian/copyright debian/changelog
|
||||
%{_sysconfdir}/xdg/autostart/ukui-sidebar.desktop
|
||||
%{_bindir}/ukui-sidebar
|
||||
%{_prefix}/lib/ukui-sidebar
|
||||
%{_datadir}/ukui-sidebar-notification
|
||||
%{_bindir}/feedback
|
||||
%{_bindir}/ukui-clock
|
||||
%{_datadir}/applications/clock.desktop
|
||||
%{_datadir}/applications/feedback.desktop
|
||||
%{_bindir}/ukui-notebook
|
||||
%{_datadir}/applications/ukui_notebook.desktop
|
||||
%{_datadir}/ukui-clock/bark.ogg
|
||||
%{_datadir}/ukui-clock/drip.ogg
|
||||
%{_datadir}/ukui-clock/glass.ogg
|
||||
%{_datadir}/ukui-clock/sonar.ogg
|
||||
|
||||
%changelog
|
||||
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 1.1.0-1
|
||||
- Init package for openEuler
|
||||
Loading…
x
Reference in New Issue
Block a user