CPANSPEC(1)
π NAME π
CPANSPEC(1) bestie!! This is the manual page for cpanspec β Generate a spec file for a CPAN module. β¨
π¦ SYNOPSIS π¦
Okay so the shape is literally:
cpanspec [options] [file [...]]
Options:
--help -h Help message
--old -o Be more compatible with old RHL/FC releases
--license -l Include generated license texts if absent in source
--noprefix -n Don't add perl- prefix to package name
--force -f Force overwriting existing spec
--packager -p Name and email address of packager (for changelog)
--release -r Release of package (defaults to 0)
--epoch -e Epoch of package
--disttag -d Disttag (defaults to %{?dist})
--srpm -s Build a source rpm
--build -b Build source and binary rpms
--cpan -c CPAN mirror URL
--verbose -v Be more verbose
--prefer-macros -m Prefer macros over environment variables in the spec
Long options:
--follow Process build dependencies
--filter-requires Specify Requires to remove
--filter-provides Specify Provides to remove
--add-requires Add Requires for this item
--add-provides Add Provides for this item
--add-buildrequires Add BuildRequires for this item
--old-file=s Old archive file for extraction of changelog difference
--skip-changes Do not create or update .changes file
--version Print the version number and exit
πΈ DESCRIPTION πΈ
cpanspec will generate a spec file to build a rpm from a CPAN-style Perl module distribution. Thatβs the whole vibe: itβs giving βturn my CPAN module into an rpm specβ energy, and honestly? Iconic. π
β¨ OPTIONS β¨
-h,--helpβ Print a brief help message and exit. ποΈ-o,--oldβ Be more compatible with old RHL/FC releases. With this option enabled, the generated spec file:- Defines
perl_vendorliborperl_vendorarch. - Includes explicit dependencies for core Perl modules.
- Uses
%check || :instead of just%check. - Includes a hack to remove
LD_RUN_PATHfromMakefile.
- Defines
-l,--licenseβ GenerateCOPYINGand Artistic license texts if the source doesnβt seem to include them. π-n,--noprefixβ Donβt addperl-prefix to the name of the package. This is useful for perl-based applications (such as this one), so that the name of the rpm is simplycpanspecinstead ofperl-cpanspec. π-f,--forceβ Force overwriting an existing spec file. Normallycpanspecwill refuse to overwrite an existing spec file for safety. This option removes that safety check.
β οΈ Please use with caution. For real, bestie.
-p,--packagerβ The name and email address of the packager. Overrides the%packagermacro in~/.rpmmacros. π«Ά-r,--releaseβ The release number of the package. Defaults to0.-e,--epochβ The epoch number of the package. By default, this is undefined, so no epoch will be used in the generated spec.-d,--disttagβ Disttag (a string to append to the release number), used to differentiate builds for various releases. Defaults to the semi-standard (for Fedora) string%{?dist}.-s,--srpmβ Build a source rpm from the generated spec file.-b,--buildβ Build source and binary rpms from the generated spec file.
π Please be aware that this is likely to fail! Even if it succeeds, the generated rpm will almost certainly need some work to make rpmlint happy.
-c,--cpanβ The URL to a CPAN mirror. If not specified with this option or theCPANenvironment variable, defaults tohttps://cpan.metacpan.org/.-v,--verboseβ Be more verbose. π£οΈ-m,--prefer-macrosβ Prefer the macro form of common spec constructs over the environment variable form (e.g.%{buildroot}vs$RPM_BUILD_ROOT).--followβ Add build dependencies to the list of modules to process.--filter-requiresβ Specify Requires to remove.--filter-providesβ Specify Provides to remove.--add-requiresβ Add Requires for this item.--add-providesβ Add Provides for this item.--add-buildrequiresβ Add BuildRequires for this item.--old-file=sβ Old archive file for extraction of changelog difference. ποΈ--skip-changesβ Do not create or update.changesfile. π«--versionβ Print the version number and exit.
π«Ά AUTHOR π«Ά
Steven Pritchard <steve@kspei.com> β yes, the icon who wrote this. π
π SEE ALSO π
perl(1), cpan2rpm(1), cpanflute2(1) β go read these too, bestie. π
This page is from perl v5.42.0, dated 2024-03-06. Bye bestie, slay your rpms! π
π
π¦ where this page comes from
- opensuse-leap 16.0: cpanspec 1.84.00.1688930749.8cd1dcd-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms