2019-02-24 17:14:54 +01:00
|
|
|
#
|
|
|
|
# spec file for package microos-tools
|
|
|
|
#
|
2024-01-10 14:04:57 +01:00
|
|
|
# Copyright (c) 2024 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-01-23 09:05:38 +01:00
|
|
|
%{!?_distconfdir: %global _distconfdir %{_prefix}%{_sysconfdir}}
|
|
|
|
|
2019-02-24 17:14:54 +01:00
|
|
|
Name: microos-tools
|
2024-02-23 13:01:03 +01:00
|
|
|
Version: 2.21+git12
|
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
|
2023-03-14 15:59:32 +01:00
|
|
|
URL: https://github.com/openSUSE/microos-tools
|
2023-04-13 11:51:17 +02:00
|
|
|
Source: microos-tools-%{version}.tar.xz
|
2023-04-20 14:06:37 +02:00
|
|
|
BuildRequires: automake
|
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)
|
2021-05-12 19:31:41 +02:00
|
|
|
BuildRequires: pkgconfig(rpm)
|
2020-05-11 13:25:58 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-02-24 17:14:54 +01:00
|
|
|
Requires: read-only-root-fs
|
2024-01-10 14:04:57 +01:00
|
|
|
# for man-online
|
|
|
|
Requires: mandoc-bin
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%description
|
2020-10-03 18:52:03 +02:00
|
|
|
Files, scripts and directories for openSUSE MicroOS.
|
2019-02-24 17:14:54 +01:00
|
|
|
|
2021-05-12 19:31:41 +02:00
|
|
|
%package -n microos-devel-tools
|
|
|
|
Summary: Tools to develop MicroOS
|
|
|
|
|
|
|
|
%description -n microos-devel-tools
|
|
|
|
This package contains tools to make developing of MicroOS easier.
|
|
|
|
|
2019-02-24 17:14:54 +01:00
|
|
|
%prep
|
2022-09-01 22:09:25 +02:00
|
|
|
%autosetup -p1
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%build
|
2023-04-20 14:06:37 +02:00
|
|
|
./autogen.sh
|
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
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%pre
|
2021-09-11 22:24:24 +02:00
|
|
|
%service_add_pre setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%post
|
2021-05-12 19:31:41 +02:00
|
|
|
%{regenerate_initrd_post}
|
2021-09-11 22:24:24 +02:00
|
|
|
%service_add_post setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%preun
|
2021-09-11 22:24:24 +02:00
|
|
|
%service_del_preun setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service
|
2019-02-24 17:14:54 +01:00
|
|
|
|
|
|
|
%postun
|
2021-05-12 19:31:41 +02:00
|
|
|
%{regenerate_initrd_post}
|
2021-09-11 22:24:24 +02:00
|
|
|
%service_del_postun setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service
|
2020-08-14 09:31:52 +02:00
|
|
|
|
|
|
|
%posttrans
|
2021-05-12 19:31:41 +02:00
|
|
|
%{regenerate_initrd_posttrans}
|
2019-02-24 17:14:54 +01:00
|
|
|
|
2021-09-11 22:24:24 +02:00
|
|
|
%pre -n microos-devel-tools
|
|
|
|
%service_add_pre microos-ro.service
|
|
|
|
|
|
|
|
%post -n microos-devel-tools
|
|
|
|
%service_add_post microos-ro.service
|
|
|
|
|
|
|
|
%preun -n microos-devel-tools
|
|
|
|
%service_del_preun microos-ro.service
|
|
|
|
|
|
|
|
%postun -n microos-devel-tools
|
|
|
|
%service_del_postun microos-ro.service
|
|
|
|
|
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
|
2020-05-11 13:25:58 +02:00
|
|
|
%{_unitdir}/printenv.service
|
|
|
|
%{_unitdir}/setup-systemd-proxy-env.path
|
|
|
|
%{_unitdir}/setup-systemd-proxy-env.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
|
2023-01-23 09:05:38 +01:00
|
|
|
%dir %{_distconfdir}/tukit.conf.d
|
|
|
|
%{_distconfdir}/tukit.conf.d/salt-tukit.conf
|
2019-02-24 17:14:54 +01:00
|
|
|
%{_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
|
2024-01-10 14:04:57 +01:00
|
|
|
%{_bindir}/man-online
|
|
|
|
%{_distconfdir}/profile.d/man-online.sh
|
2019-02-24 17:14:54 +01:00
|
|
|
|
2021-05-12 19:31:41 +02:00
|
|
|
%files -n microos-devel-tools
|
|
|
|
%{_unitdir}/microos-ro.service
|
|
|
|
%{_sbindir}/microos-ro
|
|
|
|
%{_sbindir}/microos-rw
|
|
|
|
%{_sbindir}/rpm-sortbysize
|
|
|
|
%{_sbindir}/rpmorphan
|
2022-09-01 22:09:25 +02:00
|
|
|
%{_sbindir}/sysext-add-debug
|
2021-05-12 19:31:41 +02:00
|
|
|
|
2019-02-24 17:14:54 +01:00
|
|
|
%changelog
|