commit 84128de7bb395c49fda6cbb1a2fb4947feee58d93e73996eed6d325e84e324f6 Author: Jeff Kowalczyk Date: Wed Jan 17 07:02:09 2024 +0000 Accepting request 1139364 from home:StevenK - Initial release of 0.180.0 OBS-URL: https://build.opensuse.org/request/show/1139364 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/stripe-mock?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/stripe-mock-0.180.0.tar.gz b/stripe-mock-0.180.0.tar.gz new file mode 100644 index 0000000..f49216f --- /dev/null +++ b/stripe-mock-0.180.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c971f8c952cd58811c299d8a93da7efbe6118139e20e88383b627418327c74e +size 1479418 diff --git a/stripe-mock.changes b/stripe-mock.changes new file mode 100644 index 0000000..2f41c23 --- /dev/null +++ b/stripe-mock.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jan 17 05:24:45 UTC 2024 - Steve Kowalik + +- Initial release of 0.180.0 diff --git a/stripe-mock.spec b/stripe-mock.spec new file mode 100644 index 0000000..fbbcae2 --- /dev/null +++ b/stripe-mock.spec @@ -0,0 +1,58 @@ +# +# spec file for package stripe-mock +# +# Copyright (c) 2024 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: stripe-mock +Version: 0.180.0 +Release: 0 +Summary: Mock HTTP server based on the real Stripe API +License: MIT +URL: https://github.com/stripe/stripe-mock +Source: https://github.com/stripe/stripe-mock/archive/refs/tags/v%{version}.tar.gz#/stripe-mock-%{version}.tar.gz +BuildRequires: golang(API) >= 1.11 + +%description +stripe-mock is a mock HTTP server based on the real Stripe API. It accepts +the same requests and parameters that the Stripe API accepts, and rejects +requests whose parameters are not recognized or have incorrect types. Its +responses resemble the responses of the real Stripe API in terms of data +type; however, stripe-mock does not attempt to reproduce the behavior of +the real Stripe API at all. + +%prep +%autosetup -p1 + +%build +%ifnarch ppc64 +export GOFLAGS="-buildmode=pie" +%endif +go build + +%install +install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name} +strip %{buildroot}%{_bindir}/%{name} + +%check +./%{name} --help + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} + +%changelog +