Dario Faggioli
60d52da4fe
- Update to latest version (1.4.0) - Patches removed: 0001-enter-fix-automatic-container-creation-when-r-is-use.patch 0002-distrobox-handle-situations-with-weird-manpages-setu.patch 0002-opensuse-check-for-the-config-file-in-usr-etc-too.patch 0003-distrobox-if-no-command-is-specified-default-to-ente.patch 0004-opensuse-check-for-the-config-file-in-usr-etc-too.patch - Patches added: 0001-distrobox-if-no-command-is-specified-default-to-ente.patch - Changes in 1.4.0: * New distrobox upgrade command, to update all the containers at once * New distrobox generate-entry command, to add your distrobox to the app list note that from 1.4.0 onwards this will be the default behaviour for all the new containers created * New distrobox ephemeral command, to quickly spawn, use and delete a container. All-in-one. * New install-podman script to install Podman in $HOME. Handy for @ValveSoftware SteamDeck users * Distrobox-host-exec now uses exclusively the host-spawn command from @1player * Better support for AD/LDap and Kerberos usernames * Better support for Nix/Guix hosts * Plenty of bug fixes and CI/Test improvements smile OBS-URL: https://build.opensuse.org/request/show/1003683 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/distrobox?expand=0&rev=17
94 lines
3.2 KiB
RPMSpec
94 lines
3.2 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.4.0
|
|
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
|
|
# Default to distrobox-enter when just distrobox is used
|
|
Patch1: 0001-distrobox-if-no-command-is-specified-default-to-ente.patch
|
|
Requires: %{_bindir}/basename
|
|
Requires: %{_bindir}/find
|
|
Requires: %{_bindir}/grep
|
|
Requires: %{_bindir}/sed
|
|
Requires: (%{_bindir}/podman or %{_bindir}/docker)
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: ImageMagick
|
|
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
|
|
%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
|
|
|
|
# Move the icon
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/1200x1200/apps
|
|
mv %{buildroot}%{_datadir}/icons/terminal-distrobox-icon.png \
|
|
%{buildroot}%{_datadir}/icons/hicolor/1200x1200/apps
|
|
|
|
# Generate all the other icon sizes
|
|
for sz in 16 22 24 32 36 48 64 72 96 128 256; do
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps
|
|
convert terminal-distrobox-icon.png -resize ${sz}x${sz} \
|
|
%{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps/terminal-distrobox-icon.png
|
|
done
|
|
|
|
%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/
|
|
%{_datadir}/icons/hicolor/*/apps/terminal-distrobox-icon.png
|
|
%changelog
|