cabal-rpm-0.9.2: man/cblrpm.1
.TH "CBLRPM" "1" "2013\-01\-21" "" ""
.SH NAME
.PP
cblrpm \- a RPM packaging tool for Haskell Cabal packages
.SH SYNOPSIS
.PP
cblrpm [\f[I]options\f[]] spec [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] local [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] srpm [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] prep [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] builddep [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] install [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] depends [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] requires [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] missingdeps [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] diff [\f[I]path\-or\-pkg\f[]] cblrpm
[\f[I]options\f[]] update [\f[I]path\-or\-pkg\f[]]
.SH DESCRIPTION
.PP
cblrpm generates RPM packages and .spec files from Haskell Cabal
package.
.PP
If no \f[I]path\-or\-pkg\f[] is specified, cblrpm looks for a .spec or
.cabal file in the current directory.
Otherwise, it will look for \f[I]path\-or\-pkg\f[].
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 \[aq]/\[aq] in the argument and it does not
exist then cblrpm will try to unpack the package and use its .cabal
file.
cblrpm uses a temporary directory for unpackaging tarballs or packages.
cblrpm then parses the .cabal file and uses it to generate a .spec file
that can be built.
.PP
If a .spec already exists, cblrpm outputs to .spec.cblrpm instead.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show the help text.
.RS
.RE
.TP
.B \-b, \-\-binary
Force the base package name to be the Hackage package name.
.RS
.RE
.PP
\-f \f[I]FLAGS\f[], \-\-flags=\f[I]FLAGS\f[] : Override one or more
Cabal build configuration flags.
.PP
\-\-release=\f[I]RELEASE\f[] : Override the release number in the .spec
file.
.PP
\-v \f[I]N\f[], \-\-verbose=\f[I]N\f[] : Set verbosity to \f[I]N\f[].
.PP
\-\-version=\f[I]VERSION\f[] : 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
.PP
Do CMD for the package in current directory:
.IP
.nf
\f[C]
cblrpm\ CMD
\f[]
.fi
.PP
Do CMD for package (directory or package name):
.IP
.nf
\f[C]
cblrpm\ CMD\ [package]
\f[]
.fi
.PP
Do CMD for package\-version (directory or package name):
.IP
.nf
\f[C]
cblrpm\ CMD\ [package\-version]
\f[]
.fi
.PP
Do CMD on a .cabal file:
.IP
.nf
\f[C]
cblrpm\ CMD\ path/to/some.cabal
\f[]
.fi
.SH HISTORY
.PP
Cabal\-rpm was originally written by Bryan O\[aq]Sullivan in 2007\-2008
and resurrected by Jens Petersen in 2012 to replace cabal2spec.
.SH SEE ALSO
.PP
<http://github.com/juhp/cabal-rpm/>
.SH AUTHORS
This manpage was written by Jens Petersen.