# generated by cabal-rpm-0.13.3 # https://fedoraproject.org/wiki/Packaging:Haskell %bcond_with tests Name: c2hs Version: 0.28.6 Release: 1%{?dist} Summary: C->Haskell FFI tool that gives some cross-language type safety 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 BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-language-c-devel BuildRequires: ghc-pretty-devel BuildRequires: ghc-process-devel %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-shelly-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel %endif # End cabal-rpm deps %description C->Haskell assists in the development of Haskell bindings to C libraries. It extracts interface information from C header files and generates Haskell code with foreign imports and marshaling. Unlike writing foreign imports by hand (or using hsc2hs), this ensures that C functions are imported with the correct Haskell types. %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 # End cabal-rpm install %check %cabal_test %files # Begin cabal-rpm files: %license COPYING %doc AUTHORS ChangeLog ChangeLog.old README %{_bindir}/%{name} %{_datadir}/%{name}-%{version} # End cabal-rpm files %changelog * Thu Jul 18 2019 Fedora Haskell SIG - 0.28.6-1 - spec file generated by cabal-rpm-0.13.3