]> git.pld-linux.org Git - SPECS.git/blob - fnott.spec
SPECS updated Tue 30 Apr 18:42:01 CEST 2024
[SPECS.git] / fnott.spec
1 Summary:        Keyboard driven and lightweight Wayland notification daemon
2 Name:           fnott
3 Version:        1.6.0
4 Release:        1
5 License:        MIT and Zlib
6 Group:          Applications
7 Source0:        https://codeberg.org/dnkl/fnott/archive/%{version}.tar.gz
8 # Source0-md5:  9ab429945639948c143ade33c3ca8764
9 URL:            https://codeberg.org/dnkl/fnott/
10 BuildRequires:  dbus-devel
11 BuildRequires:  fcft-devel < 4.0.0
12 BuildRequires:  fcft-devel >= 3.0.0
13 BuildRequires:  fontconfig-devel
14 BuildRequires:  libpng-devel
15 BuildRequires:  meson >= 0.59.0
16 BuildRequires:  ninja
17 BuildRequires:  pixman-devel
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpm-build >= 4.6
20 BuildRequires:  rpmbuild(macros) >= 2.011
21 BuildRequires:  scdoc
22 BuildRequires:  tllist-devel >= 1.0.1
23 BuildRequires:  wayland-devel
24 BuildRequires:  wayland-protocols >= 1.32
25 Requires(post,postun):  desktop-file-utils
26 Requires:       fcft < 4.0.0
27 Requires:       fcft >= 3.0.0
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Fnott is a keyboard driven and lightweight notification daemon for
32 wlroots-based Wayland compositors.
33
34 %package -n zsh-completion-fnott
35 Summary:        ZSH completion for fnott command line
36 Group:          Applications/Shells
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       zsh
39 BuildArch:      noarch
40
41 %description -n zsh-completion-fnott
42 ZSH completion for fnott command line.
43
44 %prep
45 %setup -q -n %{name}
46
47 %build
48 %meson build \
49         -Dsystemd-units-dir="%{systemduserunitdir}"
50
51 %ninja_build -C build
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %ninja_install -C build
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 %update_desktop_database_post
63 %systemd_user_post fnott.service
64
65 %preun
66 %systemd_user_preun fnott.service
67
68 %postun
69 %update_desktop_database_postun
70 %systemd_user_postun fnott.service
71
72 %files
73 %defattr(644,root,root,755)
74 %doc CHANGELOG.md README.md
75 %dir %{_sysconfdir}/xdg/fnott
76 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/fnott/fnott.ini
77 %attr(755,root,root) %{_bindir}/fnott
78 %attr(755,root,root) %{_bindir}/fnottctl
79 %{systemduserunitdir}/fnott.service
80 %{_datadir}/dbus-1/services/fnott.service
81 %{_desktopdir}/fnott.desktop
82 %{_mandir}/man1/fnott.1*
83 %{_mandir}/man1/fnottctl.1*
84 %{_mandir}/man5/fnott.ini.5*
85
86 %files -n zsh-completion-fnott
87 %defattr(644,root,root,755)
88 %{zsh_compdir}/_fnott
89 %{zsh_compdir}/_fnottctl
This page took 0.077949 seconds and 3 git commands to generate.