1 Summary: Command-line copy/paste utilities for Wayland
7 Source0: https://github.com/bugaevc/wl-clipboard/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: cb34e27547e3ed7f70051933b76a39f4
9 URL: https://github.com/bugaevc/wl-clipboard
10 BuildRequires: meson >= 0.44.0
12 BuildRequires: rpmbuild(macros) >= 1.752
13 BuildRequires: wayland-devel
14 BuildRequires: wayland-protocols >= 1.17
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This project implements two command-line Wayland clipboard utilities,
19 wl-copy and wl-paste, that let you easily copy data between the
20 clipboard and Unix pipes, sockets, files and so on.
22 %package -n bash-completion-wl-clipboard
23 Summary: Bash completion for wl-clipboard
24 Group: Applications/Shells
25 Requires: %{name} = %{version}-%{release}
26 Requires: bash-completion >= 2.0
29 %description -n bash-completion-wl-clipboard
30 Bash completion for wl-clipboard.
32 %package -n zsh-completion-wl-clipboard
33 Summary: ZSH completion for wl-clipboard
34 Group: Applications/Shells
35 Requires: %{name} = %{version}-%{release}
39 %description -n zsh-completion-wl-clipboard
40 ZSH completion for wl-clipboard.
47 -Dzshcompletiondir=%{zsh_compdir}
52 rm -rf $RPM_BUILD_ROOT
53 %ninja_install -C build
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/wl-copy
62 %attr(755,root,root) %{_bindir}/wl-paste
63 %{_mandir}/man1/wl-clipboard.1*
64 %{_mandir}/man1/wl-copy.1*
65 %{_mandir}/man1/wl-paste.1*
67 %files -n bash-completion-wl-clipboard
68 %defattr(644,root,root,755)
69 %{bash_compdir}/wl-copy
70 %{bash_compdir}/wl-paste
72 %files -n zsh-completion-wl-clipboard
73 %defattr(644,root,root,755)
74 %{zsh_compdir}/_wl-copy
75 %{zsh_compdir}/_wl-paste