.\" Automatically generated by Pandoc 2.7.1 .\" .TH "CABAL-RPM" "1" "2013-01-21" "" "" .hy .SH NAME .PP cabal-rpm - a RPM packaging tool for Haskell Cabal packages .SH SYNOPSIS .PP cabal-rpm [\f[I]options\f[R]] spec [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] local [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] srpm [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] prep [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] builddep [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] install [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] depends [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] requires [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] missingdeps [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] diff [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] update [\f[I]path-or-pkg\f[R]] cabal-rpm [\f[I]options\f[R]] refresh [\f[I]path-or-pkg\f[R]] .SH DESCRIPTION .PP cabal-rpm generates RPM packages and .spec files from Haskell Cabal package. .PP If no \f[I]path-or-pkg\f[R] is specified, cabal-rpm looks for a .spec or \&.cabal file in the current directory. Otherwise, it will look for \f[I]path-or-pkg\f[R]. If the argument is a directory then it will look there for a .spec or \&.cabal file. If the argument is a path to a .cabal file then it will use it. Otherwise if there is no `/' in the argument and it does not exist then cabal-rpm will try to unpack the package and use its .cabal file. cabal-rpm uses a temporary directory for unpackaging tarballs or packages. cabal-rpm then parses the .cabal file and uses it to generate a .spec file that can be built. .PP If a .spec already exists, cabal-rpm outputs to .spec.cblrpm instead. .SH OPTIONS .TP .B -h, \[en]help Show the help text. .TP .B -b, \[en]binary Force the base package name to be the Hackage package name. .TP .B -f \f[I]FLAGS\f[R], \[en]flags=\f[I]FLAGS\f[R] Override one or more Cabal build configuration flags. .TP .B \[en]force overwrite existing spec file .TP .B \[en]missing comment out unavailable BuildRequires deps .TP .B \[en]release=\f[I]RELEASE\f[R] Override the release number in the .spec file. .TP .B \[en]standalone create a standalone package, built using cabal-install .TP .B -s \f[I]STREAM\f[R] , \[en]stream=\f[I]STREAM\f[R] Stackage stream (eg lts-13) or `hackage' used to get package version. .TP .B -v \f[I]N\f[R], \[en]verbose=\f[I]N\f[R] Set verbosity to \f[I]N\f[R]. .TP .B \[en]version=\f[I]VERSION\f[R] Override the version number in the .spec file. .SH EXAMPLES .PP Below CMD can be one of: spec, srpm, prep, local, install, diff, builddep, depends, requires, missingdeps, update, refresh .PP Do CMD for the package in current directory: .IP .nf \f[C] cabal-rpm CMD \f[R] .fi .PP Do CMD for package (directory or package name): .IP .nf \f[C] cabal-rpm CMD [package] \f[R] .fi .PP Do CMD for package-version (directory or package name): .IP .nf \f[C] cabal-rpm CMD [package-version] \f[R] .fi .PP Do CMD on a .cabal file: .IP .nf \f[C] cabal-rpm CMD path/to/some.cabal \f[R] .fi .SH HISTORY .PP Cabal-rpm was originally written by Bryan O\[cq]Sullivan in 2007-2008 and resurrected by Jens Petersen in 2012 to replace cabal2spec. .SH SEE ALSO .PP .SH AUTHORS This manpage was written by Jens Petersen.