* assemble: add clone in distrobox assemble by @PawsFunctions in #1618 * completions: zsh reworked. fixed not completing container names. by @fredricocalamari in #1603 * create: better check clone support * create: properly handle platform specification for alien architectures. Fix #1644 * distrobox-enter: improve cmd composition speed by @TigerGorilla2 in #1649 * docs: Cut 80% of the source package size by optimizing/cleaning doc images by @eugenesan in #1586 * docs: Fix misspelling in Useful tips section by @brandondong in #1645 * docs: Update compatibility list * docs: Update compatibility.md for fedora toolbox images by @ImBearChild in #1637 * docs: add deepin 23 docker image by @chenchongbiao in #1632 * docs: fix nvidia container toolkit commands. Fix #1654 * docs: update Podman inside Distrobox by @alexandrevicenzi in #1597 * enter: Replace tac with awk to be more portable by @shtayerc in #1591 * enter: Stop importing zsh FPATH into container by @jgroman in #1636 * enter: fix additional flags composition, Fix #1594 * export: potential improvement to pull-request #1102 by @AbduEhab in #1608 * fix:repeat trigger update locale when locale exists by @heysion in #1614 * init: Strip single quotes when parsing locale.conf by @catgirlconspiracy in #1605 * init: add timeout to systemd bringup wait. Fix #1641 * init: fix missing hooks in pacman, Fix #1595, Fix #1602, Fix #1610, Fix #1619 * init: fix prompt not sourcing on some distros * init: fix runtime sync fallback by @xz-dev in #1622 * init: improve nvidia integration, skip files when directory is already a ro-mountpoint, log with warnings * init: move pkg manager exclude lists to separate step, always run them. * init: provide default prompt for fish shell by @Boria138 in #1588 * init: simplify nvidia 32bit dir detection * rm: fix redundant print with quotes. Fix #1634 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/distrobox?expand=0&rev=52
103 lines
3.4 KiB
RPMSpec
103 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package distrobox
|
|
#
|
|
# 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: distrobox
|
|
Version: 1.8.1
|
|
Release: 0
|
|
Summary: Use any linux distribution inside your terminal
|
|
License: GPL-3.0-only
|
|
URL: https://github.com/89luca89/distrobox
|
|
Source: https://github.com/89luca89/distrobox/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: distrobox.conf
|
|
Requires: %{_bindir}/basename
|
|
Requires: %{_bindir}/find
|
|
Requires: %{_bindir}/grep
|
|
Requires: %{_bindir}/sed
|
|
Requires: (%{_bindir}/podman or %{_bindir}/docker)
|
|
# Idea would be: if bash completion is already there, let's have it. If
|
|
# not, let's "only" recommend it...
|
|
Requires: (%{name}-bash-completion if bash-completion)
|
|
# For distrobox-exec to work properly, we need flatpak helper services (bsc#1220037)
|
|
Requires: flatpak
|
|
BuildRequires: ImageMagick
|
|
BuildRequires: hicolor-icon-theme
|
|
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.
|
|
|
|
%package bash-completion
|
|
Summary: Bash completion for %{name}
|
|
Requires: %{name} = %{version}
|
|
Requires: bash-completion
|
|
Supplements: (%{name} and bash-completion)
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
Bash command line completion support for distrobox.
|
|
|
|
%prep
|
|
%autosetup -p1 -n distrobox-%{version}
|
|
|
|
%build
|
|
|
|
%install
|
|
./install --prefix %{buildroot}/%{_prefix}
|
|
|
|
install -d -m0755 %{buildroot}%{_docdir}/%{name}
|
|
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
|
|
%dir %{_distconfdir}/distrobox
|
|
%{_distconfdir}/distrobox/distrobox.conf
|
|
%else
|
|
%config %{_sysconfdir}/distrobox
|
|
%config(noreplace) %{_sysconfdir}/distrobox/distrobox.conf
|
|
%endif
|
|
%dir %{_datadir}/icons/hicolor/
|
|
%dir %{_datadir}/icons/hicolor/*x*/
|
|
%dir %{_datadir}/icons/hicolor/*x*/apps/
|
|
%dir %{_datadir}/zsh/site-functions/
|
|
%{_datadir}/icons/hicolor/*/apps/terminal-distrobox-icon.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/terminal-distrobox-icon.svg
|
|
%{_datadir}/zsh/site-functions/_%{name}*
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion/completions/%{name}*
|
|
|
|
%changelog
|