forked from openSUSE/containment-rpm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
containment-rpm.spec
62 lines (52 loc) · 2.04 KB
/
containment-rpm.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# spec file for package containment-rpm
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: containment-rpm
Version: 0
Release: 0
License: MIT
Summary: Wraps OBS/kiwi-built images in rpms
Url: https://github.com/openSUSE/%{name}
Group: System/Management
Source: %{name}-%{version}.tar.bz2
BuildRequires: filesystem
# BuildRequires from the generated spec file, that need to be installed
Requires: bsdtar
Requires: containment-rpm-config
Requires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
OBS kiwi_post_run hook to wrap a kiwi-produced image in an rpm package.
This package should be required by the Build Service project's meta
prjconf, so that the kiwi_post_run hook is present in the kiwi image
and gets executed at the end of the image build. It will then build
an rpm which contains the newly-produced image from kiwi (using
image.spec.in), and place the rpm in the correct location that it
becomes an additional build artefact.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/lib/build/
install -m 644 image.spec.in %{buildroot}/usr/lib/build/
install -m 755 kiwi_post_run %{buildroot}/usr/lib/build/
install -d %{buildroot}%{_sourcedir}
%files
%defattr(-,root,root)
/usr/lib/build/kiwi_post_run
/usr/lib/build/image.spec.in
%changelog