-
Notifications
You must be signed in to change notification settings - Fork 7
/
image.spec.in
40 lines (31 loc) · 981 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
40
# needsrootforbuild
Url: http://www.suse.com/cloud
Name: __NAME__
Summary: %containment_image_description product .iso
Version: __VERSION__
Release: __RELEASE__
Group: System/Management
License: GPLv2
Source: __SOURCE__
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: containment-rpm-config
%define temp_mnt /mnt/iso
%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
mkdir -p %temp_mnt
mount %{S:0} %temp_mnt
%install
install -d -m 755 $RPM_BUILD_ROOT%containment_image_dest_dir
cp -pr %temp_mnt/* $RPM_BUILD_ROOT%containment_image_dest_dir
install -d -m 755 %{_rpmdir}/OTHER
cp -pr %{S:0} %{_rpmdir}/OTHER
umount %temp_mnt
%files
%defattr(-, root, root)
%containment_extra_files
%containment_image_dest_dir