[Fedora-haskell] Announce: Cabal2rpm

Tom Moertel tom at moertel.com
Tue Feb 22 15:32:47 EST 2005


I would like to announce the availability of cabal2rpm, a tool that 
converts Cabal package descriptions into RPM spec files.  Get it here:

     http://community.moertel.com/ss/space/Cabal2rpm

Description:

This tool converts Haskell Cabal package-descriptions (.cabal files) 
into RPM spec files. It makes reasonable guesses at what should go in 
the specs, but because ``Cabalized'' tarballs presently do not have a 
standardized layout and naming conventions, you may need to make some 
adjustments.

The syntax for using cabal2rpm is as follows:

     cabal2rpm package.cabal [name=value...] > package.spec

The resulting RPM spec file can be fed to rpmbuild to build binary packages.

Note: All packages built by cabal2rpm are targeted to a specific release 
of GHC from the Fedora Haskell project. Thus if you build Cabal for GHC 
6.2.2, you will end up with the following RPMs:

     cabal-ghc622-0.5-1.i386.rpm
     cabal-ghc622-debuginfo-0.5-1.i386.rpm
     cabal-ghc622-0.5-1.src.rpm

Cheers,
Tom


More information about the Fedora-haskell mailing list