-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from farzadghanei/packaging
Improve Packaging and docs
- Loading branch information
Showing
9 changed files
with
421 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
name: tests | ||
|
||
on: | ||
push: | ||
on: # yamllint disable-line rule:truthy | ||
push: {} | ||
pull_request: | ||
branches: [main] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Name: chkok | ||
Version: 0.3.0 | ||
Release: 1%{?dist} | ||
Summary: Checks if system resources are OK | ||
|
||
License: MIT | ||
URL: https://github.com/farzadghanei/chkok | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
# will use official golang tarballs instead, until go 1.22 rpm is in most repos | ||
# BuildRequires: golang > 1.22, golang-gopkg-yaml-3-devel > 3.0.0 | ||
|
||
%description | ||
"chkok" checks if system resources are OK, and provides a report to demonstrate | ||
system health and resource availability. | ||
|
||
# go toolchain stores go build id in a different ELF note than GNU toolchain | ||
# so RPM can't find the build id from the binaries after build. | ||
# https://github.com/rpm-software-management/rpm/issues/367 | ||
%global _missing_build_ids_terminate_build 0 | ||
%define debug_package %{nil} | ||
|
||
%prep | ||
%setup -c -q | ||
|
||
%build | ||
%make_build | ||
|
||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
%make_install | ||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1 | ||
cp -a docs/man/chkok.1 $RPM_BUILD_ROOT/usr/share/man/man1/%{name}.1 | ||
|
||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.rst | ||
%{_bindir}/%{name} | ||
%{_mandir}/man1/%{name}* | ||
|
||
|
||
%changelog | ||
* Sat May 11 2024 Farzad Ghanei 0.3.0-1 | ||
- Add support for required headers for http runner | ||
- Add maxHeaderBytes configuration for http runner |
Oops, something went wrong.