1CPANSPEC(1)           User Contributed Perl Documentation          CPANSPEC(1)
2
3
4

NAME

6       cpanspec - Generate a spec file for a CPAN module
7

SYNOPSIS

9       cpanspec [options] [file [...]]
10
11        Options:
12          --help       -h      Help message
13          --old        -o      Be more compatible with old RHL/FC releases
14          --license    -l      Include generated license texts if absent in source
15          --noprefix   -n      Don't add perl- prefix to package name
16          --force      -f      Force overwriting existing spec
17          --packager   -p      Name and email address of packager (for changelog)
18          --release    -r      Release of package (defaults to 1)
19          --epoch      -e      Epoch of package
20          --disttag    -d      Disttag (defaults to %{?dist})
21          --srpm       -s      Build a source rpm
22          --build      -b      Build source and binary rpms
23          --cpan       -c      CPAN mirror URL
24          --verbose    -v      Be more verbose
25          --prefer-macros  -m  Prefer macros over environment variables in the spec
26
27        Long options:
28          --follow             Process build dependencies
29          --filter-requires    Specify Requires to remove
30          --filter-provides    Specify Provides to remove
31          --add-requires       Add Requires for this item
32          --add-provides       Add Provides for this item
33          --add-buildrequires  Add BuildRequires for this item
34          --version            Print the version number and exit
35

DESCRIPTION

37       cpanspec will generate a spec file to build a rpm from a CPAN-style
38       Perl module distribution.
39

OPTIONS

41       -h, --help
42           Print a brief help message and exit.
43
44       -o, --old
45           Be more compatible with old RHL/FC releases.  With this option
46           enabled, the generated spec file
47
48           •   Defines perl_vendorlib or perl_vendorarch.
49
50           •   Includes explicit dependencies for core Perl modules.
51
52           •   Uses "%check || :" instead of just %check.
53
54           •   Includes a hack to remove LD_RUN_PATH from Makefile.
55
56       -l, --license
57           Generate COPYING and Artistic license texts if the source doesn't
58           seem to include them.
59
60       -n, --noprefix
61           Don't add perl- prefix to the name of the package.  This is useful
62           for perl-based applications (such as this one), so that the name of
63           the rpm is simply cpanspec instead of perl-cpanspec.
64
65       -f, --force
66           Force overwriting an existing spec file.  Normally cpanspec will
67           refuse to overwrite an existing spec file for safety.  This option
68           removes that safety check.  Please use with caution.
69
70       -p, --packager
71           The name and email address of the packager.  Overrides the
72           %packager macro in "~/.rpmmacros".
73
74       -r, --release
75           The release number of the package.  Defaults to 1.
76
77       -e, --epoch
78           The epoch number of the package.  By default, this is undefined, so
79           no epoch will be used in the generated spec.
80
81       -d, --disttag
82           Disttag (a string to append to the release number), used to
83           differentiate builds for various releases.  Defaults to the semi-
84           standard (for Fedora) string "%{?dist}".
85
86       -s, --srpm
87           Build a source rpm from the generated spec file.
88
89       -b, --build
90           Build source and binary rpms from the generated spec file.  Please
91           be aware that this is likely to fail!  Even if it succeeds, the
92           generated rpm will almost certainly need some work to make rpmlint
93           happy.
94
95       -c, --cpan
96           The URL to a CPAN mirror.  If not specified with this option or the
97           CPAN environment variable, defaults to <http://www.cpan.org/>.
98
99       -v, --verbose
100           Be more verbose.
101
102       -m, --prefer-macros
103           Prefer the macro form of common spec constructs over the
104           environment variable form (e.g. %{buildroot} vs $RPM_BUILD_ROOT).
105
106       --follow
107           Add build dependencies to the list of modules to process.
108
109       --filter-requires
110           Specify Requires to remove.
111
112       --filter-provides
113           Specify Provides to remove.
114
115       --add-requires
116           Add Requires for this item.
117
118       --add-provides
119           Add Provides for this item.
120
121       --add-buildrequires
122           Add BuildRequires for this item.
123
124       --version
125           Print the version number and exit.
126

AUTHOR

128       Steven Pritchard <steve@kspei.com>
129

SEE ALSO

131       perl(1), cpan2rpm(1), cpanflute2(1)
132
133
134
135perl v5.38.0                      2023-07-19                       CPANSPEC(1)
Impressum