-
Notifications
You must be signed in to change notification settings - Fork 14
/
BuildSourceImage.spec.in
57 lines (41 loc) · 1.33 KB
/
BuildSourceImage.spec.in
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
47
48
49
50
51
52
53
54
55
%global git_commit GITCOMMIT
%global git_shortcommit %(c=%{git_commit}; echo ${c:0:7})
Name: BuildSourceImage
Version: MYVERSION.TIMESTAMP.git%{git_shortcommit}
Release: 1%{?dist}
Summary: Container Source Image tool
Group: containers
License: GPLv2
URL: https://github.com/containers/BuildSourceImage
Source0: BuildSourceImage.sh
Source1: LICENSE
Source2: README.md
Source3: layout.md
#BuildRequires:
Requires: jq
Requires: skopeo
Requires: findutils
Requires: file
%if 0%{?rhel} > 6
Requires: yum-utils
%else
Requires: dnf-command(download)
%endif
%description
%{summary}.
%prep
%build
%install
%{__mkdir_p} %{buildroot}/%{_bindir}
%{__mkdir_p} %{buildroot}/%{_defaultlicensedir}/%{name}
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/%{name}
%{__install} -T -m 0755 ${RPM_SOURCE_DIR}/BuildSourceImage.sh %{buildroot}/%{_bindir}/BuildSourceImage
%{__install} -T -m 0644 ${RPM_SOURCE_DIR}/LICENSE %{buildroot}/%{_defaultlicensedir}/%{name}/LICENSE
%{__install} -T -m 0644 ${RPM_SOURCE_DIR}/README.md %{buildroot}/%{_defaultdocdir}/%{name}/README.md
%{__install} -T -m 0644 ${RPM_SOURCE_DIR}/layout.md %{buildroot}/%{_defaultdocdir}/%{name}/layout.md
%files
%doc %{_defaultlicensedir}/%{name}/LICENSE
%doc %{_defaultdocdir}/%{name}/README.md
%doc %{_defaultdocdir}/%{name}/layout.md
%{_bindir}/BuildSourceImage
%changelog