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
This commit is contained in:
commit
84128de7bb
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
stripe-mock-0.180.0.tar.gz
Normal file
3
stripe-mock-0.180.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0c971f8c952cd58811c299d8a93da7efbe6118139e20e88383b627418327c74e
|
||||
size 1479418
|
4
stripe-mock.changes
Normal file
4
stripe-mock.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 17 05:24:45 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Initial release of 0.180.0
|
58
stripe-mock.spec
Normal file
58
stripe-mock.spec
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user