PackagingDrafts/Haskell/BinaryOnlyTemplate

= Binary Only Template = This is a sample spec file for a Haskell Cabal package. This sample demonstrates how to package a Haskell Cabal package that contains only a binary. It was orginally generated automatically using cabal-rpm, and then modified to overcome some of cabal-rpm's limitations: including missing dependency declarations which need to be added in manually.

%define debug_package %{nil}
 * 1) ghc does not emit debug information

Name: haProg Version: version Release: 1%{?dist} License: BSD Group: Development/Languages URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name} Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz Summary: Summary of %{name} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExclusiveArch:	i386 x86_64 ppc BuildRequires: ghc BuildRequires: ...
 * 1) ghc has only been bootstrapped on the following archs:

%description Description of %{name}.

%prep %setup -q

%build %cabal_configure %cabal_build

%install rm -rf ${RPM_BUILD_ROOT} %cabal_install

%clean rm -rf ${RPM_BUILD_ROOT}

%files %defattr(-,root,root,-) %doc LICENSE %{_bindir}/%{name}

%changelog - initial packaging for Fedora
 * Day Month Date Year Fedora Haskell Packager  - version-release