2019-02-24 17:14:54 +01:00
|
|
|
#
|
|
|
|
# spec file for package microos-tools
|
|
|
|
#
|
2020-02-19 12:40:01 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-02-24 17:14:54 +01:00
|
|
|
#
|
|
|
|
# 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: microos-tools
|
2020-10-03 18:52:03 +02:00
|
|
|
Version: 2.5
|
2019-02-24 17:14:54 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Files and Scripts for openSUSE MicroOS
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
URL: https://github.com/kubic-project/microos-tools
|
2019-09-02 13:18:38 +02:00
|
|
|
Source: microos-tools-%{version}.tar.xz
|
2020-08-20 22:27:28 +02:00
|
|
|
Source1: tmp.mount
|
2020-10-03 18:52:03 +02:00
|
|
|
Source2: tmp.conf
|
2020-08-14 09:31:52 +02:00
|
|
|
Source99: microos-tools-rpmlintrc
|
2019-02-24 17:14:54 +01:00
|
|
|
BuildRequires: distribution-release
|
2020-05-11 13:25:58 +02:00
|
|
|
BuildRequires: pkgconfig
|
2020-08-14 09:31:52 +02:00
|
|
|
BuildRequires: pkgconfig(dracut)
|
2020-05-11 13:25:58 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-02-24 17:14:54 +01:00
|
|
|
Requires: read-only-root-fs
|
|
|
|
Conflicts: systemd-coredump
|
|
|
|
|
|
|
|
%description
|
2020-10-03 18:52:03 +02:00
|
|
|
Files, scripts and directories for openSUSE MicroOS.
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2020-05-11 13:25:58 +02:00
|
|
|
%configure
|
|
|
|
%make_build
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%install
|
2020-05-11 13:25:58 +02:00
|
|
|
%make_install
|
2020-08-20 22:27:28 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
install -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/
|
|
|
|
%endif
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%pre
|
2020-08-14 09:31:52 +02:00
|
|
|
%service_add_pre setup-systemd-proxy-env.service printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%post
|
2020-08-14 09:31:52 +02:00
|
|
|
%regenerate_initrd_post
|
|
|
|
%service_add_post setup-systemd-proxy-env.service printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%preun
|
2020-08-14 09:31:52 +02:00
|
|
|
%service_del_preun setup-systemd-proxy-env.service printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%postun
|
2020-08-14 09:31:52 +02:00
|
|
|
%regenerate_initrd_post
|
|
|
|
%service_del_postun setup-systemd-proxy-env.service printenv.service
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%regenerate_initrd_posttrans
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2020-08-14 09:31:52 +02:00
|
|
|
%dir %{_sysconfdir}/selinux
|
|
|
|
%config %{_sysconfdir}/selinux/fixfiles_exclude_dirs
|
2019-02-24 17:14:54 +01:00
|
|
|
%dir %{_sysconfdir}/systemd
|
|
|
|
%dir %{_sysconfdir}/systemd/system
|
2020-08-14 09:31:52 +02:00
|
|
|
%config %{_sysconfdir}/systemd/system/systemd-firstboot.service
|
2020-05-11 13:25:58 +02:00
|
|
|
%{_unitdir}/MicroOS-firstboot.service
|
|
|
|
%{_unitdir}/printenv.service
|
|
|
|
%{_unitdir}/setup-systemd-proxy-env.path
|
|
|
|
%{_unitdir}/setup-systemd-proxy-env.service
|
2020-06-10 00:33:46 +02:00
|
|
|
%dir %{_unitdir}/sysinit.target.wants
|
2020-05-11 13:25:58 +02:00
|
|
|
%{_unitdir}/sysinit.target.wants/MicroOS-firstboot.service
|
2020-08-14 09:31:52 +02:00
|
|
|
%dir %{_unitdir}/salt-minion.service.d
|
|
|
|
%{_unitdir}/salt-minion.service.d/TMPDIR.conf
|
|
|
|
%{_tmpfilesdir}/salt-minion-tmpdir.conf
|
|
|
|
%{_sysctldir}/30-corefiles.conf
|
2019-02-24 17:14:54 +01:00
|
|
|
%{_libexecdir}/MicroOS-firstboot
|
|
|
|
%{_sbindir}/setup-systemd-proxy-env
|
2020-08-14 09:31:52 +02:00
|
|
|
%dir %{_prefix}/lib/dracut
|
|
|
|
%dir %{_prefix}/lib/dracut/modules.d
|
|
|
|
%{_prefix}/lib/dracut/modules.d/98selinux-microos
|
|
|
|
%{_systemdgeneratordir}/selinux-autorelabel-generator
|
|
|
|
%config %{_sysconfdir}/profile.d/ssh-locale-check.sh
|
|
|
|
%{_bindir}/locale-check
|
2020-10-03 18:52:03 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
%{_unitdir}/tmp.mount
|
|
|
|
%{_tmpfilesdir}/tmp.conf
|
|
|
|
%endif
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%changelog
|