rpmdev-newspec man page

rpmdev-newspec — manual page for rpmdev-newspec version 2.4

Synopsis

rpmdev-newspec [option]... [appname[.spec]]

Description

rpmdev-newspec generates new rpm .spec files from templates.

Options

-o FILE, --output FILE
Output the specfile to FILE. "-" means stdout. The default is derived from <appname>, or "newpackage.spec" if <appname> is not given.
-t TYPE, --type TYPE
Force use of the TYPE spec template. The default is guessed from <appname>, falling back to "minimal" if the guesswork does not result in a more specific one or if <appname> is not given.
-m, --macros

Emit templates using macros instead of shell style variables. Configuration variable: NEWSPEC_PREFER_MACROS, default is off.

-r VERSION, --rpm-version VERSION
Filter out some spec file constructs not needed by the specified rpm(build) version and newer ones. Configuration variable: NEWSPEC_MIN_RPMVER, default is system rpm version.
-h, --help

Show this usage message and exit.

-v, --version

Print version information and exit.

Files

/etc/rpmdevtools

Directory for specfile templates.

/etc/rpmdevtools/newspec.conf

System wide configuration.

Reporting Bugs

Report bugs at <https://bugzilla.redhat.com/>, component rpmdevtools, or at <https://pagure.io/rpmdevtools/issues>.

Info

January 2017 rpmdev-newspec version 2.4 User Commands