packages feed

cabal-rpm-0.6.6: man/cabal-rpm.1

.TH CABAL-RPM 1 "2012-11-01" 
.SH NAME
.PP
cabal-rpm - generates RPM .spec files from Cabal packages
.SH SYNOPSIS
.PP
cabal-rpm [\f[I]options\f[]] [\f[I]path-or-pkg\f[]]
.SH DESCRIPTION
.PP
Cabal-rpm generates RPM .spec files from Haskell Cabal package.
.PP
If no \f[I]path-or-pkg\f[] is specified, cabal-rpm looks for a .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 .cabal
file.
If the argument is a path to a .cabal or .tar.gz file then it will use
it.
Otherwise if there is no \[aq]/\[aq] 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.
.PP
Cabal-rpm then parses the above specified .cabal file and uses it to
generate a .spec file that can be built.
.PP
If a .spec already exists, cabal-rpm output to .spec.cblrpm instead.
.PP
The cabal-rpm-diff command can be used in the same way to output a diff
of .spec and .spec.cblrpm directly.
.SH OPTIONS
.TP
.B -h, --help
Show the help text.
.RS
.RE
.TP
.B -l, --library
Force a BinLib package with executable(s) to be considered a Lib
package.
.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
Create a .spec file for the Cabal src package in current directory:
.IP
.nf
\f[C]
cabal-rpm
\f[]
.fi
.PP
Create a .spec file for package (directory or package name):
.IP
.nf
\f[C]
cabal-rpm\ [package]
\f[]
.fi
.PP
Create a .spec file for package-version (directory or package name):
.IP
.nf
\f[C]
cabal-rpm\ [package-version]
\f[]
.fi
.PP
Create a .spec file for a .cabal file:
.IP
.nf
\f[C]
cabal-rpm\ path/to/some.cabal
\f[]
.fi
.PP
Create a .spec file from a tarball:
.IP
.nf
\f[C]
cabal-rpm\ path/to/pkg-ver.tar.gz
\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.