Dario Faggioli
c006fb2ffe
- Move config file in vendor specific path by default * Patch added: 0001-Read-config-in-usr-etc-too.patch - Update to latest version, 1.3.1 * all: allow users to specify non_interactive=true/false * all: improve code readability and formatting, follow happy paths * create: make it clearer to the user the container creation output * create: remove check about clone and image name * docs: Fix typo by @rugk in #308 * docs: remove WSL2 entry, cannot actively check if works correctly * enter: automatically create containers during 'distrobox-enter' (if they don't exist!) * export: add --root to rooful containers * export: fix DBusActivatable not working * host-exec docs: 755 -> 644 * host-exec: change [N/y] to [y/N] * init: fix apt hooks to make systemd install work * init: move zypper recommends after the basic packages install, make OpenSUSE containers creation faster * install: add --next flag to install latest commit from git * stop: update misleading comment * uninstall: interactive rm won't work when executed throught pipe * docs: update compatibility list * Confirm support for: Redhat UBI 9 Redhat UBI 9-init Redhat UBI 9-minimal AlmaLinux 8-minimal AlmaLinux 9-minimal AlmaLinux 9 OBS-URL: https://build.opensuse.org/request/show/984236 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/distrobox?expand=0&rev=11
78 lines
2.5 KiB
RPMSpec
78 lines
2.5 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2022 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: distrobox
|
|
Version: 1.3.1
|
|
Release: 0
|
|
Summary: Use any linux distribution inside your terminal
|
|
License: GPL-3.0
|
|
URL: https://github.com/89luca89/distrobox
|
|
Source: distrobox-%{version}.tar.gz
|
|
Source1: distrobox.conf
|
|
# Read the config from vendor specific directory (/usr/etc/distrobox) too
|
|
Patch1: 0001-Read-config-in-usr-etc-too.patch
|
|
Requires: %{_bindir}/basename
|
|
Requires: %{_bindir}/find
|
|
Requires: %{_bindir}/grep
|
|
Requires: %{_bindir}/sed
|
|
Requires: (%{_bindir}/podman or %{_bindir}/docker)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Use any Linux distribution inside your terminal.
|
|
Distrobox uses podman or docker to create containers using the Linux distribution of your choice.
|
|
The created container will be tightly integrated with the host,
|
|
allowing sharing of the HOME directory of the user, external storage,
|
|
external USB devices and graphical apps (X11/Wayland), and audio.
|
|
|
|
%prep
|
|
%setup -q -n distrobox-%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
./install --prefix %{buildroot}/%{_prefix}
|
|
install -m 0644 docs/*.md %{buildroot}%{_docdir}/%{name}
|
|
%if 0%{?suse_version} > 1500
|
|
mkdir -p %{buildroot}%{_distconfdir}/distrobox
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_distconfdir}/distrobox/distrobox.conf
|
|
%else
|
|
mkdir -p %{buildroot}%{_sysconfdir}/distrobox
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/distrobox/distrobox.conf
|
|
%endif
|
|
%files
|
|
%license COPYING.md
|
|
%doc %{_docdir}/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}-*
|
|
%{_mandir}/man1/%{name}.1.gz
|
|
%{_mandir}/man1/%{name}-*.1.gz
|
|
%if 0%{?suse_version} > 1500
|
|
%{_distconfdir}/distrobox
|
|
%else
|
|
%config %{_sysconfdir}/distrobox
|
|
%endif
|
|
%if 0%{?suse_version} > 1500
|
|
%{_distconfdir}/distrobox/distrobox.conf
|
|
%else
|
|
%config(noreplace) %{_sysconfdir}/distrobox/distrobox.conf
|
|
%endif
|
|
%changelog
|