commit 8f9420270ee9a4d49d6f79f3bf9c6341c0b0876b Author: Daniel Demus Date: Fri Jan 10 01:07:19 2025 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60afe2f --- /dev/null +++ b/.gitignore @@ -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 + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..46b1fa5 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa46f62 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# golang-rpm + +Template repo for golang fedora packaging \ No newline at end of file diff --git a/golang-k8s-utils.spec b/golang-k8s-utils.spec new file mode 100644 index 0000000..648bf45 --- /dev/null +++ b/golang-k8s-utils.spec @@ -0,0 +1,129 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 21; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by go2rpm 1.15.0 +%bcond check 1 +%bcond bootstrap 0 + +%global debug_package %{nil} + +# https://github.com/kubernetes/utils +%global goipath k8s.io/utils +%global forgeurl https://github.com/kubernetes/utils +%global commit 3ea5e8cea73810f6d2951b37183cf91e19f63455 + +%gometa + +%global common_description %{expand: +A set of Go libraries that provide low-level, kubernetes-independent packages +supplementing the Go standard libs.} + +%global golicenses LICENSE +%global godocs CONTRIBUTING.md HOWTOMOVE.md README.md code-of-\\\ + conduct.md + +Name: %{goname} +Version: 0 +Release: %autorelease -p +Summary: Non-Kubernetes-specific utility libraries consumed by multiple projects + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +%if %{without bootstrap} +%generate_buildrequires +%go_generate_buildrequires +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%gopkgfiles + +%changelog +## START: Generated by rpmautospec +* Thu Jul 18 2024 Fedora Release Engineering - 0-0.21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 17 2024 Robert-André Mauchin - 0-0.20 +- Fix FTBFS + +* Wed Jan 24 2024 Fedora Release Engineering - 0-0.19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 0-0.18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0-0.17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 0-0.16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Aug 10 2022 Maxwell G - 0-0.15 +- Rebuild to fix FTBFS + +* Thu Jul 21 2022 Fedora Release Engineering - 0-0.14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 0-0.13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Aug 20 2021 Robert-André Mauchin - 0-0.12 +- Bump to commit bdf08cb9a70a05bd10b6fe605643a9cbab6effd5 + +* Thu Jul 22 2021 Fedora Release Engineering - 0-0.10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0-0.9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 13 21:59:33 CET 2021 Robert-André Mauchin - 0-0.8.20210113gitfddb29f +- Bump to commit fddb29f9d0095a7a37582a1d86732ae83620f2e8 + +* Wed Sep 30 01:05:19 CEST 2020 Robert-André Mauchin - 0-0.7.20200930git4140de9 +- Bump to commit 4140de9c8800f5b18f8fc59798e11862f2bb00cb + +* Mon Jul 27 2020 Fedora Release Engineering - 0-0.6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 15 15:12:26 CEST 2020 Robert-André Mauchin - 0-0.5.20200615gitc1c6865 +- Bump to commit c1c6865ac45113491fd8207923d28d4bcff03a88 + +* Wed Feb 05 22:50:43 CET 2020 Robert-André Mauchin - 0-0.4.20200205git8619460 +- Bump to commit 861946025e3491219eaccb1bf693e23df70c2fa8 + +* Wed Jan 29 2020 Fedora Release Engineering - 0-0.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 0-0.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon May 13 01:32:20 CEST 2019 Robert-André Mauchin - 0-0.1.20190629git8fab8cb +- Initial package + +## END: Generated by rpmautospec