File custom-oem-boot-description.spec of Package custom-oem-boot-description
#
# spec file for package custom-oem-boot-description
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
# translate version id to distribution name
# generic approach
%if 0%{?suse_version}
%define distro %(echo `export VER=%{suse_version}; echo "suse-${VER:0:2}.${VER:2:1}"`)
%endif
# Tumbleweed:
# Current Tumbleweed version, moving target
%if 0%{?suse_version} >= 1330 && !0%{?sle_version}
%define distro suse-tumbleweed
%endif
Name: custom-oem-boot-description
Version: 0.1.1
Release: 0
Url: https://github.com/SUSE/kiwi-descriptions
Summary: KIWI - Custom Boot Descriptions
License: GPL-3.0-or-later
Group: System/Management
Source: %{name}.tar.gz
Source1: custom-oem-boot-description-packages
Source2: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?fedora} || 0%{?suse_version}
BuildRequires: fdupes
%endif
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: gettext
%endif
%if 0%{?suse_version}
BuildRequires: gettext-runtime
%endif
%if !0%{?is_opensuse} || 0%{?sle_version} < 150200
Requires: %(echo `cat %{S:1}|grep %{_target_cpu}:%{distro}:|cut -f3- -d:`)
%endif
%description
Custom oem boot description. Before KIWI switched to dracut
as initrd system, the initrd was build from extra image descriptions.
This concept is still working in kiwi but marked as deprecated
%prep
%setup -q -n custom_boot
%build
%install
make buildroot=%{buildroot} install
%if 0%{?suse_version}
%fdupes %{buildroot}/%{_datadir}/kiwi/custom_boot
%endif
%files -n custom-oem-boot-description
%defattr(-, root, root)
%dir %{_datadir}/kiwi
%{_datadir}/kiwi/custom_boot
%changelog