Sync from SUSE:SLFO:Main hawk-apiserver revision b0fdabdc99232b37e47572d3c8206db3

This commit is contained in:
Adrian Schröter 2025-03-12 17:29:57 +01:00
commit 7a7e0a382d
8 changed files with 187 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/ClusterLabs/hawk-apiserver</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">0.0.4+git.%ct.%h</param>
<param name="revision">master</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">hawk-apiserver-*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">hawk-apiserver</param>
</service>
<service name="go_modules" mode="disabled" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/krig/hawk-apiserver</param>
<param name="changesrevision">af5b3f95719817efef876a7f4c1097740fb459a6</param></service></servicedata>

BIN
hawk-apiserver-0.0.4+git.1740070313.ca7ee57.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

1
hawk-apiserver-rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter ("^hawk-apiserver.x86_64: W: unstripped-binary-or-object")

74
hawk-apiserver.changes Normal file
View File

@ -0,0 +1,74 @@
-------------------------------------------------------------------
Tue Feb 25 09:45:05 UTC 2025 - Aleksei Burlakov <aburlakov@suse.com>
- Bump golang(API) from =1.13 to >=1.13
-------------------------------------------------------------------
Thu Feb 20 16:56:18 UTC 2025 - Aleksei Burlakov <aburlakov@suse.com>
- Dev: don't use pacemaker-3.0.0 deprecated functions (bsc#1237259)
-------------------------------------------------------------------
Fri Nov 6 17:28:01 UTC 2020 - Dario Maiocchi <dmaiocchi@suse.com>
- Version 0.0.4:
* various enhancement security https related (fix bsc#1178228)
* update to go modules
* add -version flag to show build version
-------------------------------------------------------------------
Fri Mar 09 12:37:13 UTC 2018 - kgronlund@suse.com
- Update to version 0.0.2+git8.af5b3f9 (bsc#1080006):
* Move to go 1.9.
* bump vendor/golang.org/x/sys
* bump vendor/golang.org/x/net
-------------------------------------------------------------------
Thu Mar 08 22:34:25 UTC 2018 - kgronlund@suse.com
- Update to version 0.0.2+git5.9164c0d (bsc#1080006):
* bump vendor/golang.org/x/crypto
* bump github.com/krig/go-pacemaker
-------------------------------------------------------------------
Tue Mar 06 07:40:00 UTC 2018 - kgronlund@suse.com
- Update to version 0.0.2+git3.7b57e31:
* Add manpage to repository
- Remove hawk-apiserver.8.gz
-------------------------------------------------------------------
Thu Feb 1 16:51:44 CET 2018 - ro@suse.de
- do not build on s390, only on s390x (no go on s390)
-------------------------------------------------------------------
Tue Nov 21 13:11:11 UTC 2017 - kgronlund@suse.com
- Update to version 0.0.2+git2.9d745dc:
* Log with configurable log levels (bsc#1067408)
-------------------------------------------------------------------
Fri Nov 17 11:21:17 UTC 2017 - kgronlund@suse.com
- Update to version 0.0.1+git1510917627.a05c8b6:
* Avoid error on short reads (bsc#1068675)
-------------------------------------------------------------------
Sun Sep 10 12:37:58 UTC 2017 - kgronlund@suse.com
- Update to version 0.0.1+git1505046827.f7eadc5:
* Use configured port/cert correctly
* Protect proxy map with Mutex
-------------------------------------------------------------------
Fri Sep 1 13:07:55 UTC 2017 - kgronlund@suse.com
- Remove txt2man dependency.
-------------------------------------------------------------------
Fri Sep 01 08:29:46 UTC 2017 - kgronlund@suse.com
- Update to version 0.0.1+git1504254570.54f3c7e:
* Initial package.

62
hawk-apiserver.spec Normal file
View File

@ -0,0 +1,62 @@
#
# spec file for package hawk-apiserver
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hawk-apiserver
Version: 0.0.4+git.1740070313.ca7ee57
Release: 0
Summary: Web server and API provider for Hawk
License: GPL-3.0-or-later
Group: Productivity/Clustering/HA
URL: https://github.com/ClusterLabs/hawk-apiserver
Source: %{name}-%{version}.tar.gz
Source2: %{name}-rpmlintrc
Source3: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: libpacemaker-devel >= 1.1.16
BuildRequires: libqb-devel
BuildRequires: libxml2-devel
BuildRequires: golang(API) >= 1.13
Requires: pacemaker >= 1.1.16
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390
%{go_nostrip}
%description
This package contains the Hawk API server
%prep
%setup -q
%setup -q -T -D -a 3 # unpack go dependencies in vendor.tar.gz, which was prepared by the source services
%build
go build -mod=vendor \
-buildmode=pie \
-ldflags="-s -w -X main.version=%{version}" \
-o hawk-apiserver
%install
install -D -m 0755 %{name} "%{buildroot}%{_sbindir}/%{name}"
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{_sbindir}/%{name}
%changelog

BIN
vendor.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.