]> git.pld-linux.org Git - packages/wl-clipboard.git/blob - wl-clipboard.spec
up to 2.2.1
[packages/wl-clipboard.git] / wl-clipboard.spec
1 Summary:        Command-line copy/paste utilities for Wayland
2 Name:           wl-clipboard
3 Version:        2.2.1
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:  9b128d99f5364e8bd0d3ddbfca9413d7
9 URL:            https://github.com/bugaevc/wl-clipboard
10 BuildRequires:  meson >= 0.47.0
11 BuildRequires:  ninja
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)
18
19 %description
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.
23
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
29 BuildArch:      noarch
30
31 %description -n bash-completion-wl-clipboard
32 Bash completion for wl-clipboard.
33
34 %package -n fish-completion-wl-clipboard
35 Summary:        fish-completion for wl-clipboard
36 Group:          Applications/Shells
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       fish
39 BuildArch:      noarch
40
41 %description -n fish-completion-wl-clipboard
42 fish-completion for wl-clipboard.
43
44 %package -n zsh-completion-wl-clipboard
45 Summary:        ZSH completion for wl-clipboard
46 Group:          Applications/Shells
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       zsh
49 BuildArch:      noarch
50
51 %description -n zsh-completion-wl-clipboard
52 ZSH completion for wl-clipboard.
53
54 %prep
55 %setup -q
56
57 %build
58 %meson build \
59         -Dzshcompletiondir=%{zsh_compdir}
60
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}/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*
78
79 %files -n bash-completion-wl-clipboard
80 %defattr(644,root,root,755)
81 %{bash_compdir}/wl-copy
82 %{bash_compdir}/wl-paste
83
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
88
89 %files -n zsh-completion-wl-clipboard
90 %defattr(644,root,root,755)
91 %{zsh_compdir}/_wl-copy
92 %{zsh_compdir}/_wl-paste
This page took 0.150782 seconds and 4 git commands to generate.