# generated by cabal-rpm-0.12 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name bdcs-api %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: %{pkg_name} Version: 0.1.0 Release: 0.20180220git0a2712b Summary: BDCS API Server License: GPLv3+ Url: https://github.com/weldr/bdcs-api.git Source0: %{pkg_name}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: chrpath BuildRequires: ghc-aeson-devel BuildRequires: ghc-bdcs-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-concurrent-extra-devel BuildRequires: ghc-cond-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-gi-ggit-devel BuildRequires: ghc-gi-gio-devel BuildRequires: ghc-gi-glib-devel BuildRequires: ghc-gitrev-devel BuildRequires: ghc-haskell-gi-base-devel BuildRequires: ghc-htoml-devel BuildRequires: ghc-http-media-devel BuildRequires: ghc-http-types-devel BuildRequires: ghc-monad-logger-devel BuildRequires: ghc-monad-loops-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-persistent-devel BuildRequires: ghc-persistent-sqlite-devel BuildRequires: ghc-semver-devel BuildRequires: ghc-servant-options-devel BuildRequires: ghc-servant-server-devel BuildRequires: ghc-split-devel BuildRequires: ghc-string-conversions-devel BuildRequires: ghc-temporary-devel BuildRequires: ghc-text-devel BuildRequires: ghc-wai-cors-devel BuildRequires: ghc-wai-devel BuildRequires: ghc-warp-devel %if %{with tests} BuildRequires: ghc-hspec-devel BuildRequires: ghc-http-client-devel BuildRequires: ghc-servant-client-devel BuildRequires: ghc-string-qq-devel %endif # End cabal-rpm deps %description BDCS API Server. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Provides: ghc-%{name}-doc = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} %endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %prep %setup -q %build %ghc_lib_build %install %ghc_lib_install %ghc_fix_rpath %{pkgver} %check %cabal_test %post -n ghc-%{name}-devel %ghc_pkg_recache %postun -n ghc-%{name}-devel %ghc_pkg_recache %files %license LICENSE %doc Dockerfile.build README.tests %{_bindir}/bdcs-api-server %files -n ghc-%{name} -f ghc-%{name}.files %license LICENSE %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %doc Dockerfile.build README.tests %changelog * Tue Feb 20 2018 Fedora Haskell SIG - 0.1.0-0.20180220 - spec file generated by cabal-rpm-0.12