-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmyutil.spec
46 lines (34 loc) · 1.19 KB
/
myutil.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
38
39
40
41
42
43
44
45
46
%undefine _missing_build_ids_terminate_build
%define debug_package %{nil}
# %commit is intended to be set by tito. The values in this spec file will not be kept up to date.
%{!?commit:
%global commit 4a0e1af82ff19c1390d671eea1fec8f871d22c0d
}
Name: myutil
# Version and release information will be automatically managed by CD --
# It will be kept in sync with OCP builds.
Version: 0.2
Release: 1%{?dist}
Summary: Example utility image to demonstrate how RPMs and images are build for OCP.
License: MIT
URL: https://github.com/jupierce/enterprise-images-upstream-example
Source0: https://github.com/jupierce/enterprise-images-upstream-example/archive/%{commit}/%{name}-%{version}.tar.gz
BuildRequires: bsdtar
BuildRequires: golang
%description
Example utility image to demonstrate how RPMs and images are build for OCP.
%prep
%autosetup
%build
go build myutil.go
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
install -m 755 myutil $RPM_BUILD_ROOT%{_bindir}
%files
%{_bindir}/myutil
%changelog
* Wed Nov 15 2017 jupierce <[email protected]> 0.2-1
- new package built with tito
* Fri Jul 14 2017 jupierce <[email protected]>
-