Your company here — click to reach over 10,000 unique daily visitors

rpmdev-newspec - Man Page

manual page for rpmdev-newspec version 2.4


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


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


-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.

-D,  --legacy-datestamp
Use use legacy datestamp for changelog entries. Configuration variable: NEWSPEC_LEGACY_DATESTAMP, 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.



Directory for specfile templates.


System wide configuration.

Reporting Bugs

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


January 2024 rpmdev-newspec version 2.4