This commit is contained in:
Jens Petersen 2022-04-07 14:42:59 +08:00
parent 5c7cfbddd7
commit fcf05506b9
3 changed files with 86 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/koji-tool-0.8.2.tar.gz

84
koji-tool.spec Normal file
View File

@ -0,0 +1,84 @@
# 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.2
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
* Tue Mar 29 2022 Jens Petersen <petersen@redhat.com> - 0.8.2-1
- spec file generated by cabal-rpm-2.0.11

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (koji-tool-0.8.2.tar.gz) = ef3f4f7c4e96391b8f924204167d4b01c1808b0efe4ca1f393a9dec52c1e4865ba587902ae76ca0a2a88f792c78a2f5eb3e644399c7b6acfee2d101ff2f301a8