summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2024-08-25 20:24:46 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2024-08-25 20:24:46 +0000
commit2b874bb40342d703b8de4230440fa4241c81abf3 (patch)
treeaed9a4a605a36b4afe1b05451a0451f5e0c96c9f
parent2ee20ffc9bcefd86b8f6c3b5bc7e3aac04462a94 (diff)
automatic import of golang-github-joshuarubin-swayHEADmasterf40f39
-rw-r--r--.gitignore1
-rw-r--r--golang-github-joshuarubin-sway.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ad5c24d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..ca6e625
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7fa37c3c68c074e8edaf66123d8b8196 go-sway-1.2.0.tar.gz