From Fedora Project Wiki

< PackagingDrafts‎ | Haskell

Revision as of 04:17, 25 November 2008 by Petersen (talk | contribs) (→‎Binary Only Template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

# ghc does not emit debug information
%define debug_package %{nil}

Name: haProg
Version: version
Release: 1%{?dist}
License: BSD
Group: Development/Languages
Summary: Summary of %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# ghc has only been bootstrapped on the following archs:
ExclusiveArch:	i386 x86_64 ppc
BuildRequires: ghc
BuildRequires: ...

Description of %{name}.

%setup -q


rm -rf ${RPM_BUILD_ROOT}

rm -rf ${RPM_BUILD_ROOT}


* Day Month Date Year Fedora Haskell Packager <email@address> - version-release
- initial packaging for Fedora