Files
fake-gcs-server/fake-gcs-server.spec
Matěj Cepl e53396f9a9
Some checks failed
obs/scm/build
Update to 1.52.2:
- fix: typos
  - Use default temporary directory in tests
  - Go 1.24 is out, drop Go 1.22
bsc#1239200 (CVE-2025-22868): revendor
  to use golang.org/x/oauth2 v0.28.0
  (https://pkg.go.dev/vuln/GO-2025-3488).
2025-03-11 10:46:13 +01:00

69 lines
2.0 KiB
RPMSpec

#
# spec file for package fake-gcs-server
#
# Copyright (c) 2023 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.52.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
# PATCH-FIX-UPSTREAM update-golang-oauth2.patch bsc#[0-9]+ mcepl@suse.com
# update vendored golang-oauth2 (CVE-2025-22868, GO-2025-3488)
Patch0: update-golang-oauth2.patch
BuildRequires: fdupes
BuildRequires: go >= 1.23.0
BuildRequires: golang-packaging
BuildRequires: xz
%{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
%autosetup -p1 -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