]>
Commit | Line | Data |
---|---|---|
e5992fc0 JP |
1 | Summary: Idle management daemon for Wayland |
2 | Name: swayidle | |
3ee9e008 | 3 | Version: 1.7 |
e5992fc0 JP |
4 | Release: 1 |
5 | License: MIT | |
6 | Group: Applications | |
7 | Source0: https://github.com/swaywm/swayidle/releases/download/%{version}/%{name}-%{version}.tar.gz | |
3ee9e008 | 8 | # Source0-md5: 2b656875c65795ee44be45f8c2bd19fd |
e5992fc0 JP |
9 | URL: https://github.com/swaywm/swayidle |
10 | BuildRequires: bash-completion | |
11 | BuildRequires: fish-devel | |
12 | BuildRequires: meson >= 0.48.0 | |
13 | BuildRequires: ninja | |
14 | BuildRequires: rpmbuild(macros) >= 1.736 | |
55edcf49 | 15 | BuildRequires: scdoc |
e5992fc0 JP |
16 | BuildRequires: systemd-devel |
17 | BuildRequires: wayland-devel | |
18 | BuildRequires: wayland-protocols >= 1.14 | |
a010924c | 19 | Suggests: swaylock |
e5992fc0 JP |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | This is sway's idle management daemon, swayidle. It is compatible with | |
24 | any Wayland compositor which implements the KDE idle protocol. | |
25 | ||
26 | %package -n bash-completion-swayidle | |
27 | Summary: Bash completion for swayidle | |
28 | Group: Applications/Shells | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Requires: bash-completion >= 2.0 | |
31 | BuildArch: noarch | |
32 | ||
33 | %description -n bash-completion-swayidle | |
34 | Bash completion for swayidle. | |
35 | ||
36 | %package -n fish-completion-swayidle | |
37 | Summary: fish-completion for swayidle | |
38 | Group: Applications/Shells | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: fish | |
41 | BuildArch: noarch | |
42 | ||
43 | %description -n fish-completion-swayidle | |
44 | fish-completion for swayidle. | |
45 | ||
46 | %package -n zsh-completion-swayidle | |
47 | Summary: ZSH completion for swayidle | |
48 | Group: Applications/Shells | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: zsh | |
51 | BuildArch: noarch | |
52 | ||
53 | %description -n zsh-completion-swayidle | |
54 | ZSH completion for swayidle. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | %meson build | |
61 | %ninja_build -C build | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %ninja_install -C build | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc README.md | |
73 | %attr(755,root,root) %{_bindir}/swayidle | |
74 | %{_mandir}/man1/swayidle.1* | |
75 | ||
76 | %files -n bash-completion-swayidle | |
77 | %defattr(644,root,root,755) | |
78 | %{bash_compdir}/swayidle | |
79 | ||
80 | %files -n fish-completion-swayidle | |
81 | %defattr(644,root,root,755) | |
82 | %{fish_compdir}/swayidle.fish | |
83 | ||
84 | %files -n zsh-completion-swayidle | |
85 | %defattr(644,root,root,755) | |
86 | %{zsh_compdir}/_swayidle |