generated from demus/golang-rpm-template
Initial commit
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
# ---> Go
|
||||
# If you prefer the allow list template instead of the deny list, see community template:
|
||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
||||
#
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
|
||||
# Go workspace file
|
||||
go.work
|
||||
|
||||
# ---> VisualStudioCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 demus
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,57 @@
|
||||
# Generated by go2rpm 1.15.0
|
||||
%bcond check 1
|
||||
%bcond bootstrap 0
|
||||
|
||||
%global debug_package %{nil}
|
||||
%if %{with bootstrap}
|
||||
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
||||
%endif
|
||||
|
||||
# https://github.com/flynn/go-docopt
|
||||
%global goipath github.com/flynn/go-docopt
|
||||
Version: 0.6.1
|
||||
%global commit f6dd2ebbb31e9721c860cf1faf5c944aa73e3844
|
||||
|
||||
%gometa -f
|
||||
|
||||
%global common_description %{expand:
|
||||
A command-line arguments parser that will make you smile.}
|
||||
|
||||
%global golicenses LICENSE
|
||||
%global godocs examples README.md
|
||||
|
||||
Name: golang-github-flynn-docopt
|
||||
Release: %autorelease
|
||||
Summary: A command-line arguments parser that will make you smile
|
||||
|
||||
License: MIT
|
||||
URL: %{gourl}
|
||||
Source: %{gosource}
|
||||
|
||||
%description %{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep -A
|
||||
%autopatch -p1 -q
|
||||
|
||||
%if %{without bootstrap}
|
||||
%generate_buildrequires
|
||||
%go_generate_buildrequires
|
||||
%endif
|
||||
|
||||
%install
|
||||
%gopkginstall
|
||||
|
||||
%if %{without bootstrap}
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%gopkgfiles
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user