# generated by cabal-rpm-2.0.5 --standalone # https://docs.fedoraproject.org/en-US/packaging-guidelines/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} %global pkg_name pdc %global pkgver %{pkg_name}-%{version} Name: %{pkg_name} Version: 0.0.90 Release: 1%{?dist} Summary: Fedora Product Definition Center service License: MIT Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-pretty-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-extra-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-http-conduit-devel BuildRequires: ghc-lens-devel BuildRequires: ghc-lens-aeson-devel BuildRequires: ghc-simple-cmd-args-devel BuildRequires: ghc-split-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-yaml-devel BuildRequires: cabal-install > 1.18 # End cabal-rpm deps %description A library and cli to Fedora's PDC service. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %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 find %{buildroot}%{_libdir} -name 'libHS%{pkgver}-*.so' -delete rm -r %{buildroot}%{ghclibdir} # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %doc ChangeLog.md README.md %{_bindir}/pdc-cli # End cabal-rpm files %changelog * Sun May 31 2020 Fedora Haskell SIG - 0.0.90-1 - spec file generated by cabal-rpm-2.0.5