feat: xyproto-env (v1) (#286)

This commit is contained in:
madomado
2023-03-19 16:09:05 +08:00
committed by GitHub
parent ed2f2d4ce3
commit 59042a18cb
3 changed files with 53 additions and 10 deletions
@@ -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:
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "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