|
|
794487 |
#
|
|
|
794487 |
# spec file for package yast-in-container
|
|
|
794487 |
#
|
|
|
794487 |
# Copyright (c) 2022 SUSE LLC
|
|
|
794487 |
#
|
|
|
794487 |
# All modifications and additions to the file contributed by third parties
|
|
|
794487 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
794487 |
# upon. The license for this file, and modifications and additions to the
|
|
|
794487 |
# file, is the same license as for the pristine package itself (unless the
|
|
|
794487 |
# license for the pristine package is not an Open Source License, in which
|
|
|
794487 |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
794487 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
794487 |
# published by the Open Source Initiative.
|
|
|
794487 |
|
|
|
794487 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
794487 |
#
|
|
|
794487 |
|
|
|
794487 |
|
|
|
794487 |
Name: yast-in-container
|
|
|
794487 |
Version: 4.5.10
|
|
|
794487 |
Release: 0
|
|
|
794487 |
Summary: Experimental package for running YaST in a container
|
|
|
794487 |
License: GPL-2.0-only
|
|
|
794487 |
Group: System/YaST
|
|
|
794487 |
URL: https://github.com/yast/yast-in-container
|
|
|
794487 |
# the container images are only built for x86_64
|
|
|
794487 |
ExclusiveArch: x86_64
|
|
|
794487 |
Source0: %{name}-%{version}.tar.bz2
|
|
|
794487 |
|
|
|
794487 |
# recommend Podman for running the containers, optionally Docker might be used
|
|
|
794487 |
Recommends: podman
|
|
|
794487 |
|
|
|
794487 |
%description
|
|
|
794487 |
This package contains scripts which can run YaST in a container for managing
|
|
|
794487 |
the host system.
|
|
|
794487 |
|
|
|
794487 |
* WARNING: This an experimental package, do not use in a production system!
|
|
|
794487 |
* There is a high risk of breaking the system or data loss!
|
|
|
794487 |
|
|
|
794487 |
%prep
|
|
|
794487 |
|
|
|
794487 |
%setup -q
|
|
|
794487 |
|
|
|
794487 |
%build
|
|
|
794487 |
|
|
|
794487 |
%install
|
|
|
794487 |
|
|
|
794487 |
# install main scripts
|
|
|
794487 |
mkdir -p %{buildroot}/%{_sbindir}
|
|
|
794487 |
install -m 755 src/scripts/yast2_container %{buildroot}/%{_sbindir}
|
|
|
794487 |
ln -s yast2_container %{buildroot}/%{_sbindir}/yast_container
|
|
|
794487 |
ln -s yast2_container %{buildroot}/%{_sbindir}/yast2_web_container
|
|
|
794487 |
|
|
|
794487 |
# install desktop file
|
|
|
794487 |
mkdir -p %{buildroot}/%{_datadir}/applications
|
|
|
794487 |
install -m 644 desktop/org.opensuse.YaST-in-container.desktop %{buildroot}/%{_datadir}/applications
|
|
|
794487 |
|
|
|
794487 |
# install icons
|
|
|
794487 |
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
|
|
|
794487 |
install -m 644 src/icons/hicolor/scalable/apps/* %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
|
|
|
794487 |
|
|
|
794487 |
# install license and documentation
|
|
|
794487 |
mkdir -p %{buildroot}/%{_docdir}/%{name}
|
|
|
794487 |
install -m 644 COPYING %{buildroot}/%{_docdir}/%{name}
|
|
|
794487 |
install -m 644 README.md %{buildroot}/%{_docdir}/%{name}
|
|
|
794487 |
|
|
|
794487 |
# /sbin compatibility symlinks
|
|
|
794487 |
%if !0%{?usrmerged}
|
|
|
794487 |
mkdir -p %{buildroot}/sbin
|
|
|
794487 |
ln -s ../%{_sbindir}/yast_container %{buildroot}/sbin
|
|
|
794487 |
ln -s ../%{_sbindir}/yast2_container %{buildroot}/sbin
|
|
|
794487 |
ln -s ../%{_sbindir}/yast2_web_container %{buildroot}/sbin
|
|
|
794487 |
%endif
|
|
|
794487 |
|
|
|
794487 |
%files
|
|
|
794487 |
|
|
|
794487 |
# the main scripts
|
|
|
794487 |
%{_sbindir}/yast*_container
|
|
|
794487 |
|
|
|
794487 |
# /sbin compatibility symlinks
|
|
|
794487 |
%if !0%{?usrmerged}
|
|
|
794487 |
/sbin/yast*_container
|
|
|
794487 |
%endif
|
|
|
794487 |
|
|
|
794487 |
# desktop file
|
|
|
794487 |
%{_datadir}/applications/*.desktop
|
|
|
794487 |
|
|
|
794487 |
# icons
|
|
|
794487 |
%{_datadir}/icons/hicolor
|
|
|
794487 |
|
|
|
794487 |
# license and documentation
|
|
|
794487 |
%doc %dir %{_docdir}/%{name}
|
|
|
794487 |
%license %{_docdir}/%{name}/COPYING
|
|
|
794487 |
%doc %{_docdir}/%{name}/README.md
|
|
|
794487 |
|
|
|
794487 |
%changelog
|