File jeos-firstboot.spec of Package jeos-firstboot
#
# spec file for package jeos-firstboot
#
# 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/
#
Name: jeos-firstboot
Version: 1.5.4+git20250702.74b8ef6
Release: 0
Summary: Simple text based JeOS first boot wizard
License: MIT
Group: Development/Tools/Other
URL: https://github.com/sbradnick/jeos-firstboot
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-rpm-macros
# Provides cracklib-check used for password quality checking during user creation
Requires: cracklib
Requires: dialog
#Requires: iproute2
Requires: live-langset-data
Requires: timezone
BuildArch: noarch
%{?systemd_requires}
%description
Simple text based first boot wizard (adjusted for WSL) that can be used
instead of the line based one that is built into systemd.
%prep
%setup -q
%build
%install
cp -a files/* %{buildroot}
%pre
%service_add_pre jeos-firstboot.service
%service_add_pre jeos-firstboot-snapshot.service
%post
%service_add_post jeos-firstboot.service
%service_add_post jeos-firstboot-snapshot.service
%preun
%service_del_preun jeos-firstboot.service
%service_del_preun jeos-firstboot-snapshot.service
%postun
%service_del_postun jeos-firstboot.service
%service_del_postun jeos-firstboot-snapshot.service
%files
%doc README.md
%license LICENSE
%{_unitdir}/jeos-firstboot.service
%{_unitdir}/jeos-firstboot-snapshot.service
%dir %{_datadir}/defaults/
%{_datadir}/defaults/jeos-firstboot.conf
%dir %{_datadir}/jeos-firstboot/
%dir %{_datadir}/jeos-firstboot/modules/
%{_datadir}/jeos-firstboot/modules/{ssh_enroll,status_mail,otp,registration,switch,user}
%{_sbindir}/jeos-config
%{_sbindir}/jeos-firstboot
%{_sbindir}/jeos-firstboot-snapshot
%{_datadir}/jeos-firstboot/jeos-firstboot-dialogs
%{_datadir}/jeos-firstboot/jeos-firstboot-functions
%{_datadir}/jeos-firstboot/welcome-screen
%changelog