%global base distrobox %global debug_package %{nil} # https://github.com/89luca89/distrobox/issues/127 %global __brp_mangle_shebangs_exclude_from %{_bindir}/distrobox-(export|init)$ Name: %{base}-nvidia-container-toolkit Version: 0.0.git.523.ac2882e2 %forgemeta Provides: %{base} = %{version} Release: 1%{?dist} Summary: Another tool for containerized command line environments on Linux License: GPLv3 URL: https://github.com/89luca89/distrobox VCS: git+https://github.com/KyleGospo/distrobox.git#ac2882e2a618989c5dd72edc5f073e90730730bf: Source: distrobox-ac2882e2.tar.gz BuildArch: noarch BuildRequires: ImageMagick Requires: (podman or %{_bindir}/docker) Requires: %{_bindir}/basename Requires: %{_bindir}/find Requires: %{_bindir}/grep Requires: %{_bindir}/sed Requires: hicolor-icon-theme Suggests: bash-completions %description Use any linux distribution inside your terminal. Distrobox uses podman or docker to create containers using the linux distribution of your choice. Created container will be tightly integrated with the host, allowing to share the HOME directory of the user, external storage, external usb devices and graphical apps (X11/Wayland) and audio. %prep %setup -T -b 0 -q -n distrobox %build %install ./install -P %{buildroot}/%{_prefix} install -d -m0755 %{buildroot}%{_docdir}/%{base} install -m 0644 docs/*.md %{buildroot}%{_docdir}/%{base} rm %{buildroot}%{_bindir}/distrobox-nvidia-container-toolkit.spec # 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 more 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 %check %{buildroot}%{_bindir}/%{base} list -V for i in create enter export init list rm stop host-exec; do %{buildroot}%{_bindir}/%{base}-$i -V done %files %license COPYING.md %doc %{_docdir}/%{base} %{_mandir}/man1/%{base}* %{_bindir}/%{base} %{_bindir}/%{base}-create %{_bindir}/%{base}-enter %{_bindir}/%{base}-export %{_bindir}/%{base}-init %{_bindir}/%{base}-list %{_bindir}/%{base}-rm %{_bindir}/%{base}-stop %{_bindir}/%{base}-host-exec %{_bindir}/%{base}-ephemeral %{_bindir}/%{base}-generate-entry %{_bindir}/%{base}-upgrade %{_datadir}/icons/hicolor/*/apps/terminal-distrobox-icon.png %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/%{base}* %changelog