wayclip/wayclip.spec

58 lines
1.6 KiB
RPMSpec

#
# spec file for package wayclip
#
# Copyright (c) 2022 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: wayclip
Version: 0.3+git.1664932891.594776c
Release: 0
Summary: Wayland clipboard utility
License: ISC
URL: https://sr.ht/~noocsharp/wayclip
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/wayclip#devel
BuildRequires: pkgconf
BuildRequires: pkgconfig
BuildRequires: pkgconfig(wayland-client)
%description
wayclip is a pair of command-line utilities: waycopy
and waypaste, which allow access to the Wayland
clipboard. Specifically, wayclip is a wlr-data-control protocol
client.
%prep
%setup -q -n wayclip -c -T
cp -a %{_sourcedir}/wayclip/* .
%build
export CFLAGS="%{optflags} $(pkgconf --cflags wayland-client)"
export LDLAGS="%{optflags} $(pkgconf --libs wayland-client)"
%make_build CC=gcc PREFIX="%{_prefix}"
%install
%make_install CC=gcc PREFIX="%{_prefix}"
%files
%license LICENSE
%doc README.md
%{_bindir}/waycopy
%{_bindir}/waypaste
%{_mandir}/man1/waycopy.1%{?ext_man}
%{_mandir}/man1/waypaste.1%{?ext_man}
%changelog