]> git.pld-linux.org Git - packages/wl-clipboard.git/blob - wl-clipboard.spec
new
[packages/wl-clipboard.git] / wl-clipboard.spec
1 Summary:        Command-line copy/paste utilities for Wayland
2 Name:           wl-clipboard
3 Version:        2.0.0
4 Release:        1
5 License:        GPL v3+
6 Group:          Applications
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
11 BuildRequires:  ninja
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)
16
17 %description
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.
21
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
27 %{?noarchpackage}
28
29 %description -n bash-completion-wl-clipboard
30 Bash completion for wl-clipboard.
31
32 %package -n zsh-completion-wl-clipboard
33 Summary:        ZSH completion for wl-clipboard
34 Group:          Applications/Shells
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       zsh
37 %{?noarchpackage}
38
39 %description -n zsh-completion-wl-clipboard
40 ZSH completion for wl-clipboard.
41
42 %prep
43 %setup -q
44
45 %build
46 %meson build \
47         -Dzshcompletiondir=%{zsh_compdir}
48
49 %ninja_build -C build
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 %ninja_install -C build
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README.md
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*
66
67 %files -n bash-completion-wl-clipboard
68 %defattr(644,root,root,755)
69 %{bash_compdir}/wl-copy
70 %{bash_compdir}/wl-paste
71
72 %files -n zsh-completion-wl-clipboard
73 %defattr(644,root,root,755)
74 %{zsh_compdir}/_wl-copy
75 %{zsh_compdir}/_wl-paste
This page took 0.068966 seconds and 3 git commands to generate.