File clipmenu.spec of Package clipmenu
#
# spec file for package clipmenu
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: clipmenu
Version: 6.2.0+git20250614.32510bc
Release: 0
Summary: A simple clipboard manager using dmenu and xsel
License: SUSE-Public-Domain
URL: https://github.com/cdown/clipmenu
Source: https://github.com/cdown/clipmenu/archive/refs/heads/develop.zip#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xfixes)
Requires: bash
Requires: xsel
Recommends: (dmenu or rofi)
Recommends: clipnotify
BuildRoot: %{_tmppath}/%name-%{version}-build
%description
Clipmenu is a simple clipboard manager using dmenu (or rofi with CM_LAUNCHER=rofi) and xsel.
%prep
%setup -q
find . -type f -exec sed -i 's@#!%{_bindir}/env bash$@#!%{_bindir}/bash@' {} +
%build
%make_build
%install
%make_install PREFIX="%{_prefix}"
%files
%doc README.md
%{_bindir}/clipctl
%{_bindir}/clipdel
%{_bindir}/clipmenu
%{_bindir}/clipmenud
%{_bindir}/clipserve
%{_userunitdir}/clipmenud.service
%{_mandir}/man1/{clipctl,clipdel,clipmenu,clipmenud,clipserve}.1%{?ext_man}
%{_mandir}/man5/clipmenu.conf.5%{?ext_man}
%changelog