forked from aspiers/containment-rpm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
containment-rpm.spec.in
48 lines (38 loc) · 1.43 KB
/
containment-rpm.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
# Copyright (c) 2010 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: __VERSION__
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.gz
BuildRequires: filesystem
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
OBS kiwi_post_run hook to wrap a kiwi-produced image in an rpm package.
%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/
%files
%defattr(-,root,root)
/usr/lib/build/kiwi_post_run
/usr/lib/build/image.spec.in
%changelog