RPMDEV-NEWSPEC(1)
π RPMDEV-NEWSPEC β the manual page, but make it make sense
okay so bestie, you know how every single RPM package needs a .spec file and writing one from scratch is giving "staring at a blank page at 3am" energy? yeah. this is the tool that fixes that. it's rpmdev-newspec, from rpmdevtools version 2.4, and it's lowkey iconic. π
β¨ SYNOPSIS β¨
rpmdev-newspec [option]... [appname[.spec]]
like, you give it a name, it gives you a spec file. that's the whole vibe. π¦
πΈ DESCRIPTION πΈ
rpmdev-newspec generates new rpm .spec files from templates. that's it, that's the tea. you point it at an app name, it hands you a starter spec file so you don't have to remember all the boilerplate. main character energy fr fr. π
π OPTIONS π
-o FILE,--output FILEβ where the specfile goes. write it toFILE. the magic value"-"means stdout (yes, just the dash, in quotes, okay?). if you don't pick a destination, the default is derived from<appname>β or, if you never gave an<appname>at all, it falls back to"newpackage.spec". no cap.-t TYPE,--type TYPEβ force the use of theTYPEspec template. don't wanna be guessed at? this is your girl. otherwise the default gets guessed from<appname>, and it falls back to"minimal"if the guesswork doesn't turn up anything more specific β or if<appname>wasn't given in the first place.-m,--macrosβ emit templates using macros instead of shell style variables. the configuration variable for this isNEWSPEC_PREFER_MACROS, and the default is off. π-D,--legacy-datestampβ use the legacy datestamp for changelog entries (yes, the original says "use use", we're all just gonna pretend we didn't see that π«Ά). the configuration variable isNEWSPEC_LEGACY_DATESTAMP, and the default is off.-r VERSION,--rpm-version VERSIONβ filter out some spec file constructs that aren't needed by the specified rpm(build) version and newer ones. the configuration variable isNEWSPEC_MIN_RPMVER, and its default is the system rpm version.-h,--helpβ show this usage message and exit. classic. β-v,--versionβ print version information and exit. also classic. π
ποΈ FILES ποΈ
/etc/rpmdevtoolsβ the directory for specfile templates. this is where the goods live./etc/rpmdevtools/newspec.confβ system wide configuration. your global settings go here. β¨
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie. report it at <https://bugzilla.redhat.com/>, component rpmdevtools, or at <https://pagure.io/rpmdevtools/issues>. the maintainers wanna know, fr fr.
π COPYRIGHT π
Copyright Β© Warren Togami <warren@togami.com>, Ville SkyttΓ€ <ville.skytta@iki.fi>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
like every good license, there's a "no warranty" situation lurking β read the full GPL text for the deets, this page only quotes the redistribution clause above. π§
and that's the whole page, babe β¨
this was rpmdev-newspec version 2.4, dated October 2024, part of the rpmdevtools family β go forth and generate some absolutely gorgeous spec files, you've got this ππΈπ¦ππ
π¦ where this page comes from
- centos-stream 10: rpmdevtools 9.6-9.el10 Β· GPL-2.0-or-later AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms