-
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.
Build an rpm using `make rpm` Signed-off-by: Roy Golan <[email protected]> Add spec and make target Signed-off-by: Roy Golan <[email protected]> rpmbuild works
- Loading branch information
Showing
2 changed files
with
53 additions
and
6 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
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,37 @@ | ||
%global project_version %(make print-vars | awk -F = '/RPM_VERSION/ {print $2}' | tr -d '\n') | ||
%global debug_package %{nil} | ||
|
||
Name: pq | ||
Version: %{project_version} | ||
Release: 1%{?dist} | ||
Summary: A tool to manage podman quadlets | ||
|
||
License: Apache-2.0 | ||
URL: https://github.com/rgolangh/pq | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
BuildRequires: golang | ||
BuildRequires: make | ||
|
||
%description | ||
A tool to manage podman quadlets | ||
|
||
%prep | ||
%autosetup | ||
|
||
%build | ||
%make_build build INSTALL_PATH=./ GIT_COMMIT=000 GIT_COMMIT_DATE=000 GIT_TREE_STATE=clean GIT_VERSION=%{version} RPM_VERSION=%{version} | ||
|
||
%install | ||
#%make_install GIT_COMMIT=000 GIT_COMMIT_DATE=000 GIT_TREE_STATE=clean GIT_VERSION=%{version} INSTALL_PATH=%{name} | ||
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/%{name} | ||
|
||
%changelog | ||
* Sat Oct 26 2024 Roy Golan <[email protected]> | ||
- |