Accepting request 950321 from home:mcepl:branches:devel:languages:python

Useful for testing Google Cloud Storage related applications.

OBS-URL: https://build.opensuse.org/request/show/950321
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/fake-gcs-server?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2022-02-01 10:28:31 +00:00 committed by Git OBS Bridge
commit ac8d99ae00
6 changed files with 98 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f3d4a035d872ca3ee60fa356c466bc322aa78dbbd31ac7c6b5f7c2d79d409f2
size 103271

4
fake-gcs-server.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Dec 31 21:08:08 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Initial packaging of fake-gcs-server 1.32.2

64
fake-gcs-server.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package fake-gcs-server
#
# Copyright (c) 2021 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/
#
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global provider_prefix github.com/fsouza/fake-gcs-server/fakestorage
%global import_path %{provider_prefix}
Name: fake-gcs-server
Version: 1.32.2
Release: 0
Summary: Google Cloud Storage emulator & testing library
License: BSD-2-Clause
URL: https://github.com/fsouza/fake-gcs-server
Source0: https://github.com/fsouza/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: golang-packaging
BuildRequires: xz
BuildRequires: fdupes
%{go_nostrip}
%{go_provides}
%description
fake-gcs-server provides an emulator for Google Cloud Storage API. It can be used as a library in Go projects and/or as a standalone binary/Docker image.
%prep
%setup -q -a1
%build
%goprep %{import_path}
go build
%install
%goinstall
install -Dm755 fake-gcs-server %{buildroot}%{_bindir}/fake-gcs-server
%gosrc
%fdupes %{buildroot}%{_datadir}/go
%{gofilelist}
%check
%gotest %{import_path}
%files -f file.lst
%license LICENSE
%doc README.md
%{_bindir}/fake-gcs-server
%changelog

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb0827523a42fc768e4d97e14471a2ebb2fd90e72a64bbc2d325e361406cc584
size 2617520