Compare commits
12 Commits
e6186b9eb4
...
6b3e9cc9fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b3e9cc9fd | ||
|
|
1171775037 | ||
|
|
4b3037e29c | ||
|
|
996eec0272 | ||
|
|
260d234239 | ||
|
|
a2bcbaa145 | ||
|
|
c7952d925c | ||
|
|
81fc939183 | ||
|
|
f399a847f5 | ||
|
|
dc76f55ab6 | ||
|
|
42306717e3 | ||
|
|
89f629597e |
BIN
0001-add-translations-file.patch
Normal file
BIN
0001-add-translations-file.patch
Normal file
Binary file not shown.
28
0002-fix-ukui-notification-daemon-SIGSEGV.patch
Normal file
28
0002-fix-ukui-notification-daemon-SIGSEGV.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 0e06e1110a0ea4fcff9ff3380ad657d80db95305 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Fri, 21 Jul 2023 17:19:50 +0800
|
||||
Subject: [PATCH] fix ukui-notification-daemon SIGSEGV
|
||||
|
||||
---
|
||||
src/main.cpp | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index 0309f7b..0bc1028 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -36,6 +36,11 @@
|
||||
|
||||
int getScreenWidth() {
|
||||
Display *disp = XOpenDisplay(NULL);
|
||||
+ if (disp == NULL) {
|
||||
+ fprintf(stderr, "Cannot connect to X server\n");
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
Screen *scrn = DefaultScreenOfDisplay(disp);
|
||||
if (NULL == scrn) {
|
||||
return 0;
|
||||
--
|
||||
2.33.0
|
||||
|
||||
BIN
ukui-notification-daemon-3.3.1.tar.gz
Normal file
BIN
ukui-notification-daemon-3.3.1.tar.gz
Normal file
Binary file not shown.
93
ukui-notification-daemon.spec
Normal file
93
ukui-notification-daemon.spec
Normal file
@ -0,0 +1,93 @@
|
||||
Name: ukui-notification-daemon
|
||||
Version: 3.3.1
|
||||
Release: 5
|
||||
Summary: daemon to display passive popup notifications
|
||||
License: GPL-3+
|
||||
URL: https://github.com/ukui/ukui-notification-daemon
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch01: 0001-add-translations-file.patch
|
||||
Patch02: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
BuildRequires: qt5-qttools-devel
|
||||
BuildRequires: dconf-devel
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gsettings-qt-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libcanberra-devel
|
||||
BuildRequires: ukui-interface
|
||||
|
||||
Requires: gsettings-qt
|
||||
Requires: libX11
|
||||
Requires: dconf
|
||||
|
||||
Provides: desktop-notification-daemon
|
||||
|
||||
%description
|
||||
daemon to display passive popup notifications
|
||||
ukui-notification-daemon displays passive popup notifications, as per
|
||||
the Desktop Notifications Specification.
|
||||
|
||||
The Desktop Notifications Specification provides a standard way of
|
||||
doing passive popup notifications on the Linux desktop. These are
|
||||
designed to notify the user of something without interrupting their
|
||||
work with a dialog box that they must close. Passive popups can
|
||||
automatically disappear after a short period of time, as per the
|
||||
Desktop Notifications spec.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch01 -p1
|
||||
%patch02 -p1
|
||||
|
||||
%build
|
||||
export PATH=%{_qt5_bindir}:$PATH
|
||||
mkdir qmake-build
|
||||
pushd qmake-build
|
||||
%{qmake_qt5} ..
|
||||
%{make_build}
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd qmake-build
|
||||
%{make_install} INSTALL_ROOT=%{buildroot}
|
||||
popd
|
||||
|
||||
|
||||
%files
|
||||
%doc debian/changelog
|
||||
%license debian/copyright
|
||||
%{_prefix}/lib/ukui-notification-daemon/ukui-notifications
|
||||
%{_datadir}/dbus-1/services/org.ukui.freedesktop.Notification.service
|
||||
%{_datadir}/glib-2.0/schemas/org.ukui.notification.gschema.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.ukui.log4qt.ukui-notification.gschema.xml
|
||||
%{_datadir}/ukui-notification-daemon/ukui-notification-daemon_zh_CN.qm
|
||||
|
||||
%changelog
|
||||
* Fri Jul 21 2023 peijiankang <peijiankang@kylinos.cn> - 3.3.1-5
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:add Patch2: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
|
||||
|
||||
* Tue Mar 14 2023 douyan <douyan@kylinos.cn> - 3.3.1-4
|
||||
- add Provides: desktop-notification-daemon
|
||||
|
||||
* Tue Feb 07 2023 tanyulong <tanyulong@kylinos.cn> - 3.3.1-3
|
||||
- Enable debuginfo for fix strip
|
||||
|
||||
* Fri Dec 30 2022 lvfei <lvfei@kylinos.cn> - 3.3.1-2
|
||||
- add patch :0001-add-translations-file.patch
|
||||
|
||||
* Thu Nov 10 2022 douyan <douyan@kylinos.cn> - 3.3.1-1
|
||||
- update to upstream version 3.3.1.0225.1
|
||||
|
||||
* Wed Mar 02 2022 tanyulong <tanyulong@kylinos.cn> - 1.0.4-1
|
||||
- update to uptream version 1.0.4
|
||||
|
||||
* Thu Feb 4 2021 lvhan <lvhan@kylinos.cn> - 1.0.1-2
|
||||
- update to upstream version 1.0.1-1
|
||||
|
||||
* Wed Nov 11 2020 douyan <douyan@kylinos.cn> - 1.0.1-1
|
||||
- update to upstream version 1.0.0-1+1031
|
||||
4
ukui-notification-daemon.yaml
Normal file
4
ukui-notification-daemon.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: https://github.com/ukui/ukui-notification-daemon.git
|
||||
tag_prefix: "v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user