forked from openSUSE/containment-rpm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
image.spec.in
39 lines (31 loc) · 1007 Bytes
/
image.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
Name: __NAME__
Summary: %{containment_image_description} product .iso
Version: __VERSION__
Release: __RELEASE__
Url: http://www.suse.com/cloud
Group: System/Management
License: GPL-2.0
Source0: __SOURCE__
BuildRequires: containment-rpm-config
BuildRequires: bsdtar
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package installs the unpacked %{containment_image_description} product .iso into:
%{containment_image_dest_dir}
It is intended to be installed on the SUSE Cloud admin server.
%prep
%build
bsdtar xf %{SOURCE0}
chmod -R u+w *
%install
install -d -m 755 %{buildroot}%{containment_image_dest_dir}
cp -pr * %{buildroot}%{containment_image_dest_dir}
%fdupes %{buildroot}%{containment_image_dest_dir}
install -d -m 755 %{_rpmdir}/OTHER
cp -pr %{S:0} %{_rpmdir}/OTHER
%files
%defattr(-, root, root)
%{containment_extra_files}
%{containment_image_dest_dir}