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: 9b128d99f5364e8bd0d3ddbfca9413d7
9 URL: https://github.com/bugaevc/wl-clipboard
10 BuildRequires: meson >= 0.47.0
12 BuildRequires: pkgconfig
13 BuildRequires: rpm-build >= 4.6
14 BuildRequires: rpmbuild(macros) >= 1.752
15 BuildRequires: wayland-devel
16 BuildRequires: wayland-protocols >= 1.17
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This project implements two command-line Wayland clipboard utilities,
21 wl-copy and wl-paste, that let you easily copy data between the
22 clipboard and Unix pipes, sockets, files and so on.
24 %package -n bash-completion-wl-clipboard
25 Summary: Bash completion for wl-clipboard
26 Group: Applications/Shells
27 Requires: %{name} = %{version}-%{release}
28 Requires: bash-completion >= 1:2.0
31 %description -n bash-completion-wl-clipboard
32 Bash completion for wl-clipboard.
34 %package -n fish-completion-wl-clipboard
35 Summary: fish-completion for wl-clipboard
36 Group: Applications/Shells
37 Requires: %{name} = %{version}-%{release}
41 %description -n fish-completion-wl-clipboard
42 fish-completion for wl-clipboard.
44 %package -n zsh-completion-wl-clipboard
45 Summary: ZSH completion for wl-clipboard
46 Group: Applications/Shells
47 Requires: %{name} = %{version}-%{release}
51 %description -n zsh-completion-wl-clipboard
52 ZSH completion for wl-clipboard.
59 -Dzshcompletiondir=%{zsh_compdir}
64 rm -rf $RPM_BUILD_ROOT
65 %ninja_install -C build
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/wl-copy
74 %attr(755,root,root) %{_bindir}/wl-paste
75 %{_mandir}/man1/wl-clipboard.1*
76 %{_mandir}/man1/wl-copy.1*
77 %{_mandir}/man1/wl-paste.1*
79 %files -n bash-completion-wl-clipboard
80 %defattr(644,root,root,755)
81 %{bash_compdir}/wl-copy
82 %{bash_compdir}/wl-paste
84 %files -n fish-completion-wl-clipboard
85 %defattr(644,root,root,755)
86 %{fish_compdir}/wl-copy.fish
87 %{fish_compdir}/wl-paste.fish
89 %files -n zsh-completion-wl-clipboard
90 %defattr(644,root,root,755)
91 %{zsh_compdir}/_wl-copy
92 %{zsh_compdir}/_wl-paste