File minimal-initramfs.spec of Package minimal-initramfs

#
# spec file for package minimal-initramfs
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#

%global _dracut_modulesdir /usr/lib/dracut/modules.d

Name:           minimal-initramfs
Version:        0.1 
Release:        0
Summary:        A minimal initramfs script for mobile devices
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        GPL
URL:            https://blog.alefnode.com
Source0:        init
Source1:        functions.sh
Source2:        09-minimal-initramfs-dracut.conf
Source3:        module-setup.sh
BuildArch:      noarch
BuildRequires:  busybox
BuildRequires:  dracut
Requires:       busybox-static
Requires:       util-linux

%description
A minimal initramfs scripts for booting mobile devices

%prep

%build

%install
%{__install} -Dm0644 -t %{buildroot}%{_sysconfdir}/dracut.conf.d/ %{SOURCE2}
%{__install} -Dm0755 -t %{buildroot}%{_dracut_modulesdir}/99transformdefaultinit/ %{SOURCE0} %{SOURCE1} %{SOURCE3} 

%files
%{_sysconfdir}/dracut.conf.d/
%dir %{_dracut_modulesdir}/99transformdefaultinit/
%{_dracut_modulesdir}/99transformdefaultinit/

%changelog

openSUSE Build Service is sponsored by