1CABAL-RPM(1) CABAL-RPM(1)
2
3
4
6 cabal-rpm - a RPM packaging tool for Haskell Cabal packages
7
9 cabal-rpm [options] spec [path-or-pkg]
10 cabal-rpm [options] local [path-or-pkg]
11 cabal-rpm [options] srpm [path-or-pkg]
12 cabal-rpm [options] prep [path-or-pkg]
13 cabal-rpm [options] builddep [path-or-pkg]
14 cabal-rpm [options] install [path-or-pkg]
15 cabal-rpm [options] depends [path-or-pkg]
16 cabal-rpm [options] requires [path-or-pkg]
17 cabal-rpm [options] missingdeps [path-or-pkg]
18 cabal-rpm [options] diff [path-or-pkg]
19 cabal-rpm [options] update [path-or-pkg]
20 cabal-rpm [options] refresh [path-or-pkg]
21
23 cabal-rpm generates RPM packages and .spec files from Haskell Cabal
24 package.
25
26 If no path-or-pkg is specified, cabal-rpm looks for a .spec or .cabal
27 file in the current directory. Otherwise, it will look for path-or-
28 pkg. If the argument is a directory then it will look there for a
29 .spec or .cabal file. If the argument is a path to a .cabal file then
30 it will use it. Otherwise if there is no `/' in the argument and it
31 does not exist then cabal-rpm will try to unpack the package and use
32 its .cabal file. cabal-rpm uses a temporary directory for unpackaging
33 tarballs or packages. cabal-rpm then parses the .cabal file and uses
34 it to generate a .spec file that can be built.
35
36 If a .spec already exists, cabal-rpm outputs to .spec.cblrpm instead.
37
39 -h, –help
40 Show the help text.
41
42 -b, –binary
43 Force the base package name to be the Hackage package name.
44
45 -f FLAGS, –flags=FLAGS
46 Override one or more Cabal build configuration flags.
47
48 –force overwrite existing spec file
49
50 –missing
51 comment out unavailable BuildRequires deps
52
53 –release=RELEASE
54 Override the release number in the .spec file.
55
56 –standalone
57 create a standalone package, built using cabal-install
58
59 -s STREAM , –stream=STREAM
60 Stackage stream (eg lts-13) or `hackage' used to get package
61 version.
62
63 -v N, –verbose=N
64 Set verbosity to N.
65
66 –version=VERSION
67 Override the version number in the .spec file.
68
70 Below CMD can be one of: spec, srpm, prep, local, install, diff, build‐
71 dep, depends, requires, missingdeps, update, refresh
72
73 Do CMD for the package in current directory:
74
75 cabal-rpm CMD
76
77 Do CMD for package (directory or package name):
78
79 cabal-rpm CMD [package]
80
81 Do CMD for package-version (directory or package name):
82
83 cabal-rpm CMD [package-version]
84
85 Do CMD on a .cabal file:
86
87 cabal-rpm CMD path/to/some.cabal
88
90 Cabal-rpm was originally written by Bryan O’Sullivan in 2007-2008 and
91 resurrected by Jens Petersen in 2012 to replace cabal2spec.
92
94 <http://github.com/juhp/cabal-rpm/>
95
97 This manpage was written by Jens Petersen.
98
99
100
101 2013-01-21 CABAL-RPM(1)