]> git.pld-linux.org Git - packages/wl-clipboard.git/commitdiff
new auto/th/wl-clipboard-2.0.0-1
authorJan Palus <atler@pld-linux.org>
Sat, 13 Feb 2021 13:14:44 +0000 (14:14 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 13 Feb 2021 13:14:44 +0000 (14:14 +0100)
wl-clipboard.spec [new file with mode: 0644]

diff --git a/wl-clipboard.spec b/wl-clipboard.spec
new file mode 100644 (file)
index 0000000..93672cd
--- /dev/null
@@ -0,0 +1,75 @@
+Summary:       Command-line copy/paste utilities for Wayland
+Name:          wl-clipboard
+Version:       2.0.0
+Release:       1
+License:       GPL v3+
+Group:         Applications
+Source0:       https://github.com/bugaevc/wl-clipboard/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: cb34e27547e3ed7f70051933b76a39f4
+URL:           https://github.com/bugaevc/wl-clipboard
+BuildRequires: meson >= 0.44.0
+BuildRequires: ninja
+BuildRequires: rpmbuild(macros) >= 1.752
+BuildRequires: wayland-devel
+BuildRequires: wayland-protocols >= 1.17
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project implements two command-line Wayland clipboard utilities,
+wl-copy and wl-paste, that let you easily copy data between the
+clipboard and Unix pipes, sockets, files and so on.
+
+%package -n bash-completion-wl-clipboard
+Summary:       Bash completion for wl-clipboard
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      bash-completion >= 2.0
+%{?noarchpackage}
+
+%description -n bash-completion-wl-clipboard
+Bash completion for wl-clipboard.
+
+%package -n zsh-completion-wl-clipboard
+Summary:       ZSH completion for wl-clipboard
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      zsh
+%{?noarchpackage}
+
+%description -n zsh-completion-wl-clipboard
+ZSH completion for wl-clipboard.
+
+%prep
+%setup -q
+
+%build
+%meson build \
+       -Dzshcompletiondir=%{zsh_compdir}
+
+%ninja_build -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/wl-copy
+%attr(755,root,root) %{_bindir}/wl-paste
+%{_mandir}/man1/wl-clipboard.1*
+%{_mandir}/man1/wl-copy.1*
+%{_mandir}/man1/wl-paste.1*
+
+%files -n bash-completion-wl-clipboard
+%defattr(644,root,root,755)
+%{bash_compdir}/wl-copy
+%{bash_compdir}/wl-paste
+
+%files -n zsh-completion-wl-clipboard
+%defattr(644,root,root,755)
+%{zsh_compdir}/_wl-copy
+%{zsh_compdir}/_wl-paste
This page took 0.170449 seconds and 4 git commands to generate.