diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-08-25 20:24:46 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-08-25 20:24:46 +0000 |
commit | 2b874bb40342d703b8de4230440fa4241c81abf3 (patch) | |
tree | aed9a4a605a36b4afe1b05451a0451f5e0c96c9f | |
parent | 2ee20ffc9bcefd86b8f6c3b5bc7e3aac04462a94 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | golang-github-joshuarubin-sway.spec | 61 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 63 insertions, 0 deletions
@@ -0,0 +1 @@ +/go-sway-1.2.0.tar.gz diff --git a/golang-github-joshuarubin-sway.spec b/golang-github-joshuarubin-sway.spec new file mode 100644 index 0000000..663e589 --- /dev/null +++ b/golang-github-joshuarubin-sway.spec @@ -0,0 +1,61 @@ +# Generated by go2rpm 1.14.0 +%bcond check 1 +%bcond bootstrap 0 + +%global debug_package %{nil} +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# https://github.com/joshuarubin/go-sway +%global goipath github.com/joshuarubin/go-sway +Version: 1.2.0 + +%gometa -L -f + +%global common_description %{expand: +Sway client for Go.} + +%global golicenses LICENSE +%global godocs README.md + +Name: golang-github-joshuarubin-sway +Release: %autorelease +Summary: Sway client for Go + +License: MIT +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep -A +%autopatch -p1 + +%if %{without bootstrap} +%generate_buildrequires +%go_generate_buildrequires +%endif + +%install +%gopkginstall + +%if %{without bootstrap} +%if %{with check} +%check +# Fail with $SWAYSOCK is empty +for test in "TestSocket" "TestFocused" \ +; do +awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) +done +%gocheck +%endif +%endif + +%gopkgfiles + +%changelog +%autochangelog @@ -0,0 +1 @@ +7fa37c3c68c074e8edaf66123d8b8196 go-sway-1.2.0.tar.gz |