-
Notifications
You must be signed in to change notification settings - Fork 0
/
pq.spec
37 lines (27 loc) · 945 Bytes
/
pq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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]>
-