# generated by cabal-rpm-2.0.11 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ # requires network %bcond_with tests Name: koji-tool Version: 0.8.3 Release: 1%{?dist} Summary: Koji CLI tool for querying tasks and installing builds License: BSD Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-Glob-static BuildRequires: ghc-base-static BuildRequires: ghc-directory-static BuildRequires: ghc-extra-static BuildRequires: ghc-filepath-static BuildRequires: ghc-formatting-static BuildRequires: ghc-http-conduit-static BuildRequires: ghc-http-directory-static BuildRequires: ghc-koji-static BuildRequires: ghc-pretty-simple-static BuildRequires: ghc-rpm-nvr-static BuildRequires: ghc-simple-cmd-static BuildRequires: ghc-simple-cmd-args-static BuildRequires: ghc-text-static BuildRequires: ghc-time-static BuildRequires: ghc-utf8-string-static BuildRequires: ghc-xdg-userdirs-static # End cabal-rpm deps %description Koji-tool is a CLI interface to Koji with commands to query builds, tasks, install rpms, and track buildlog sizes. Koji is the RPM-based buildsystem of Fedora Linux and CentOS. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_bin_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_bin_install mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ %{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name} # End cabal-rpm install %check %if %{with tests} %cabal_test %endif %files # Begin cabal-rpm files: %license LICENSE %doc ChangeLog.md README.md TODO %{_bindir}/%{name} %{_datadir}/bash-completion/completions/%{name} # End cabal-rpm files %changelog * Sat Apr 23 2022 Jens Petersen - 0.8.3-1 - https://hackage.haskell.org/package/koji-tool-0.8.3/changelog * Tue Mar 29 2022 Jens Petersen - 0.8.2-1 - spec file generated by cabal-rpm-2.0.11