This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Name: {{{ git_name name="clipped" }}} | ||
Version: {{{ git_version lead="$(git tag | sed -n 's/^v//p' | sort --version-sort -r | head -n1)" }}} | ||
Release: 1%{?dist} | ||
Summary: X11 primary/clipboard selection monitor | ||
|
||
License: MIT | ||
URL: https://github.com/jcrd/clipped | ||
VCS: {{{ git_vcs }}} | ||
Source0: {{{ git_pack }}} | ||
|
||
BuildRequires: gcc | ||
BuildRequires: perl | ||
|
||
BuildRequires: pkgconfig(x11) | ||
BuildRequires: pkgconfig(xfixes) | ||
|
||
Requires: bash | ||
Requires: xsel | ||
|
||
%global debug_package %{nil} | ||
|
||
%description | ||
clipped monitors the ownership of the primary and clipboard X11 selections. When ownership changes, the name of the selection that changed is printed. | ||
It also provides the clipsync script to synchronize content between the primary and clipboard selections using xclip. | ||
|
||
%prep | ||
{{{ git_setup_macro }}} | ||
|
||
%build | ||
%make_build PREFIX=/usr | ||
|
||
%install | ||
%make_install PREFIX=/usr | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/%{name} | ||
%{_bindir}/clipsync | ||
/usr/lib/systemd/user/clipsync.service | ||
%{_mandir}/man1/%{name}.1.gz | ||
|
||
%changelog | ||
{{{ git_changelog }}} |