import #2066552
This commit is contained in:
parent
5c7cfbddd7
commit
fcf05506b9
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/koji-tool-0.8.2.tar.gz
|
84
koji-tool.spec
Normal file
84
koji-tool.spec
Normal 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
|
Loading…
Reference in New Issue
Block a user