# generated by cabal-rpm-2.0.10
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/

# testsuite missing deps: HUnit shelly test-framework test-framework-hunit

Name:           c2hs
Version:        0.28.8
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-static
BuildRequires:  ghc-base-static
BuildRequires:  ghc-bytestring-static
BuildRequires:  ghc-containers-static
BuildRequires:  ghc-directory-static
BuildRequires:  ghc-dlist-static
BuildRequires:  ghc-filepath-static
BuildRequires:  ghc-language-c-static
BuildRequires:  ghc-pretty-static
BuildRequires:  ghc-process-static
# 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


%files
# Begin cabal-rpm files:
%license COPYING
%doc AUTHORS ChangeLog ChangeLog.old README
%{_bindir}/%{name}
%{_datadir}/%{name}-%{version}
# End cabal-rpm files


%changelog
* Sun Nov  7 2021 Róman Joost <romanjoost@microsoft.com> - 0.28.8-1
- spec file generated by cabal-rpm-2.0.10