# generated by cabal-rpm-2.0.5 --standalone # https://fedoraproject.org/wiki/Packaging:Haskell %global ghc_without_dynamic 1 %global ghc_without_shared 1 %undefine with_ghc_prof %undefine with_haddock %global without_prof 1 %global without_haddock 1 %global debug_package %{nil} Name: pagure-cli Version: 0.2 Release: 1%{?dist} Summary: Pagure client License: GPLv2+ 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 %if 0%{?fedora} BuildRequires: ghc-aeson-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-http-conduit-devel BuildRequires: ghc-lens-devel BuildRequires: ghc-lens-aeson-devel BuildRequires: ghc-optparse-applicative-devel BuildRequires: ghc-simple-cmd-args-devel BuildRequires: ghc-text-devel %else BuildRequires: ghc-libraries BuildRequires: zlib-devel %endif BuildRequires: cabal-install > 1.18 # End cabal-rpm deps %description A command-line Pagure client for querying projects and users. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup # for ghc-7.10 %if %{undefined fedora} sed -i.orig -e "s/\(cabal-version: \)2.0/\11.18/" %{name}.cabal %endif %build # Begin cabal-rpm build: %global cabal cabal %cabal update %cabal sandbox init %cabal install --only-dependencies %ghc_bin_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_bin_install # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/pagure # End cabal-rpm files %changelog * Mon Apr 06 2020 Jens Petersen - 0.2-1 - https://hackage.haskell.org/package/pagure-cli-0.2/changelog * Wed Dec 11 2019 Fedora Haskell SIG - 0.1-1 - spec file generated by cabal-rpm-1.0.2