Initial commit

This commit is contained in:
2025-01-13 13:05:10 +01:00
committed by demus
commit e34dca3f1b
4 changed files with 148 additions and 0 deletions
+37
View File
@@ -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
+9
View File
@@ -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.
+3
View File
@@ -0,0 +1,3 @@
# golang-rpm
Template repo for golang fedora packaging
+99
View File
@@ -0,0 +1,99 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
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.10.0
%bcond_without check
%global debug_package %{nil}
# https://github.com/cloudflare/circl
%global goipath github.com/cloudflare/circl
Version: 1.3.9
%gometa -L
%global common_description %{expand:
CIRCL: Cloudflare Interoperable Reusable Cryptographic Library.}
%global golicenses LICENSE ecc-p384-LICENSE
%global godocs README.md
Name: golang-github-cloudflare-circl
Release: %autorelease
Summary: CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
License: BSD-3-Clause
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
# This package has arch specific files, so it cannot be noarch like the rest of
# the golang-*-devel packages. %%gopkg does not currently support this usecase,
# so we create a manual subpackage definition
%package devel
Summary: %{summary}
BuildRequires: go-rpm-macros
%description devel %{common_description}
This package contains the source code needed for building packages that
reference the following Go import paths:
%{goipath}
%prep
%goprep -A
%autopatch -p1 -q
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
mv ecc/p384/LICENSE ecc-p384-LICENSE
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
## START: Generated by rpmautospec
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Mar 07 2024 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.3.7-1
- Update to 1.3.7 - Closes rhbz#2165786 rhbz#2203758
* Sun Feb 11 2024 Maxwell G <maxwell@gtmx.me> - 1.3.1-6
- Rebuild for golang 1.22.0
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Jan 08 2023 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.3.1-1
- Update to 1.3.1 - Closes rhbz#2142392
* Wed Sep 07 2022 Maxwell G <gotmax@e.email> - 1.2.0-2
- Make devel subpackage arched
* Tue Sep 06 2022 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.2.0-1
- Initial package - Closes rhbz#2122024
## END: Generated by rpmautospec