[packages/fnott] up to 1.6.0

atler atler at pld-linux.org
Tue Apr 30 18:41:45 CEST 2024


commit bd04f6f8ace7397d75c15602367f1a97b6a2db39
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Apr 30 18:41:09 2024 +0200

    up to 1.6.0

 fnott.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/fnott.spec b/fnott.spec
index 343c1a7..2ce1532 100644
--- a/fnott.spec
+++ b/fnott.spec
@@ -1,11 +1,11 @@
 Summary:	Keyboard driven and lightweight Wayland notification daemon
 Name:		fnott
-Version:	1.5.0
+Version:	1.6.0
 Release:	1
 License:	MIT and Zlib
 Group:		Applications
 Source0:	https://codeberg.org/dnkl/fnott/archive/%{version}.tar.gz
-# Source0-md5:	b7ac0044b89bc6fb0961c20831f16147
+# Source0-md5:	9ab429945639948c143ade33c3ca8764
 URL:		https://codeberg.org/dnkl/fnott/
 BuildRequires:	dbus-devel
 BuildRequires:	fcft-devel < 4.0.0
@@ -17,7 +17,7 @@ BuildRequires:	ninja
 BuildRequires:	pixman-devel
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-build >= 4.6
-BuildRequires:	rpmbuild(macros) >= 1.736
+BuildRequires:	rpmbuild(macros) >= 2.011
 BuildRequires:	scdoc
 BuildRequires:	tllist-devel >= 1.0.1
 BuildRequires:	wayland-devel
@@ -45,7 +45,8 @@ ZSH completion for fnott command line.
 %setup -q -n %{name}
 
 %build
-%meson build
+%meson build \
+	-Dsystemd-units-dir="%{systemduserunitdir}"
 
 %ninja_build -C build
 
@@ -59,9 +60,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %update_desktop_database_post
+%systemd_user_post fnott.service
+
+%preun
+%systemd_user_preun fnott.service
 
 %postun
 %update_desktop_database_postun
+%systemd_user_postun fnott.service
 
 %files
 %defattr(644,root,root,755)
@@ -70,6 +76,8 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/fnott/fnott.ini
 %attr(755,root,root) %{_bindir}/fnott
 %attr(755,root,root) %{_bindir}/fnottctl
+%{systemduserunitdir}/fnott.service
+%{_datadir}/dbus-1/services/fnott.service
 %{_desktopdir}/fnott.desktop
 %{_mandir}/man1/fnott.1*
 %{_mandir}/man1/fnottctl.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fnott.git/commitdiff/bd04f6f8ace7397d75c15602367f1a97b6a2db39



More information about the pld-cvs-commit mailing list