# generated by cabal-rpm-2.4.0 --bundle # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global tomlreader toml-reader-0.3.0.0 %global subpkgs %{tomlreader} Name: constrained-toolbox Version: 0.2.1 Release: 1%{?dist} Summary: Run isolated toolbox containers with podman License: Apache-2.0 URL: https://hackage.haskell.org/package/constrained-toolbox # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{name}-%{version}/candidate/%{name}-%{version}.tar.gz Source1: https://hackage.haskell.org/package/%{tomlreader}/%{tomlreader}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-extra-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-process-devel BuildRequires: ghc-simple-cmd-devel BuildRequires: ghc-simple-cmd-args-devel BuildRequires: ghc-text-devel #BuildRequires: ghc-toml-reader-devel BuildRequires: ghc-unix-devel BuildRequires: help2man # for missing dep 'toml-reader': BuildRequires: ghc-megaparsec-devel BuildRequires: ghc-parser-combinators-devel BuildRequires: ghc-time-devel # End cabal-rpm deps %description This tool (originally based on the toolbox-constrained project) allows running isolated toolbox containers with podman. Mounting of home and host integration are not enabled by default, but one can choose to enable such options including capabilities specified in a toml configuration file. %prep # Begin cabal-rpm setup: %setup -q -a1 # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_libs_build -P -H %{subpkgs} %ghc_bin_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_bin_install set noclobber mkdir -p %{buildroot}%{bash_completions_dir} mkdir -p %{buildroot}%{fish_completions_dir} mkdir -p %{buildroot}%{zsh_completions_dir} %{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{bash_completions_dir}/%{name} %{buildroot}%{_bindir}/%{name} --fish-completion-script %{name} > %{buildroot}%{fish_completions_dir}/%{name} %{buildroot}%{_bindir}/%{name} --zsh-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{zsh_completions_dir}/_%{name} mkdir -p %{buildroot}%{_mandir}/man1/ help2man --no-info %{buildroot}%{_bindir}/%{name} > %{buildroot}%{_mandir}/man1/%{name}.1 # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %doc ChangeLog.md README.md example %{_bindir}/%{name} %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name} %{zsh_completions_dir}/_%{name} %{_mandir}/man1/%{name}.1* # End cabal-rpm files %changelog * Fri Jul 17 2026 Jens Petersen - 0.2.1-1 - https://hackage.haskell.org/package/constrained-toolbox-0.2.1/candidate/changelog * Fri Jul 17 2026 Jens Petersen - 0.2-1 - https://hackage.haskell.org/package/constrained-toolbox-0.2/candidate/changelog * Tue Jul 7 2026 Jens Petersen - 0.1-1 - https://hackage.haskell.org/package/constrained-toolbox-0.1/candidate/changelog