From 59042a18cb8fc74a34825445648b7fda934f73db Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 19 Mar 2023 16:09:05 +0800 Subject: [PATCH] feat: xyproto-env (v1) (#286) --- .../golang-github-xyproto-env.spec | 10 ---- anda/go/xyproto-env/v1/anda.hcl | 5 ++ .../v1/golang-github-xyproto-env.spec | 48 +++++++++++++++++++ 3 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 anda/go/xyproto-env/v1/anda.hcl create mode 100644 anda/go/xyproto-env/v1/golang-github-xyproto-env.spec diff --git a/anda/go/xyproto-env/golang-github-xyproto-env.spec b/anda/go/xyproto-env/golang-github-xyproto-env.spec index d046b01f2f..bb3e9b6a27 100644 --- a/anda/go/xyproto-env/golang-github-xyproto-env.spec +++ b/anda/go/xyproto-env/golang-github-xyproto-env.spec @@ -6,16 +6,6 @@ %global goipath github.com/xyproto/env Version: 2.0.0 -# REMOVE BEFORE SUBMITTING THIS FOR REVIEW -# --- -# New Fedora packages should use %%gometa -f, which makes the package -# ExclusiveArch to %%golang_arches_future and thus excludes the package from -# %%ix86. If the new package is needed as a dependency for another pacage, -# please consider removing that package from %%ix86 in the same way, instead of -# building more go packages for i686. If your package is not a leaf package, -# you'll need to coordinate the removal of the package's dependents first. -# --- -# REMOVE BEFORE SUBMITTING THIS FOR REVIEW %gometa -f %global common_description %{expand: diff --git a/anda/go/xyproto-env/v1/anda.hcl b/anda/go/xyproto-env/v1/anda.hcl new file mode 100644 index 0000000000..ea4f5641c0 --- /dev/null +++ b/anda/go/xyproto-env/v1/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-xyproto-env.spec" + } +} diff --git a/anda/go/xyproto-env/v1/golang-github-xyproto-env.spec b/anda/go/xyproto-env/v1/golang-github-xyproto-env.spec new file mode 100644 index 0000000000..3728807777 --- /dev/null +++ b/anda/go/xyproto-env/v1/golang-github-xyproto-env.spec @@ -0,0 +1,48 @@ +# Generated by go2rpm 1.8.2 +%bcond_without check +%global debug_package %{nil} + +# https://github.com/xyproto/env +%global goipath github.com/xyproto/env +Version: 1.9.1 + +%gometa -f + +%global common_description %{expand: +Provide default values when fetching environment variables.} + +%global golicenses LICENSE +%global godocs README.md + +Name: golang-%{goname} +Release: 1%{?dist} +Summary: Provide default values when fetching environment variables + +License: BSD-3-Clause +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep + +%generate_buildrequires +%go_generate_buildrequires + +%build + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +%autochangelog