* Update dependencies * Update minimum Go version to 1.14 * Add some tests for preprocessData * Add Unicode NFC normalization flag * restore show-history (#3) - added %check section to run unit tests OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/clipman?expand=0&rev=10
62 lines
1.7 KiB
RPMSpec
62 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package clipman
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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: clipman
|
|
Version: 1.6.5
|
|
Release: 0
|
|
Summary: A clipboard manager for Wayland
|
|
License: GPL-3.0-only
|
|
URL: https://github.com/chmouel/clipman
|
|
Source0: %{name}-%{version}.tar.zst
|
|
# Run go build && go mod vendor to get vendor/ subdirectory
|
|
Source1: vendor.tar.zst
|
|
BuildRequires: zstd
|
|
BuildRequires: golang(API) >= 1.14
|
|
|
|
%description
|
|
A clipboard manager for Wayland with support for
|
|
persisting copy buffers after an application exits.
|
|
|
|
%prep
|
|
%autosetup -p1 -a1
|
|
|
|
%build
|
|
export GOCACHE=$(readlink -f vendor/)
|
|
%ifarch ppc64
|
|
BUILDMOD=""
|
|
%else
|
|
BUILDMOD="-buildmode=pie"
|
|
%endif
|
|
export RPM_OPT_FLAGS="%{optflags}"
|
|
go build -v -x -mod=vendor $BUILDMOD -a -ldflags ""
|
|
|
|
%check
|
|
go test ./...
|
|
|
|
%install
|
|
install -Dm755 clipman %{buildroot}%{_bindir}/clipman
|
|
install -Dm644 -t %{buildroot}%{_mandir}/man1/ docs/%{name}.*
|
|
|
|
%files
|
|
%doc README.md CONTRIBUTING.md CHANGELOG.md
|
|
%{_bindir}/clipman
|
|
%{_mandir}/man1/%{name}*.1%{?ext_man}
|
|
%license COPYING
|
|
|
|
%changelog
|