Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
spec: Add rpkg spec template
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrd committed May 25, 2020
1 parent 795d4a4 commit 57e2243
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions spec/clipped.spec.rpkg
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 }}}

0 comments on commit 57e2243

Please sign in to comment.