RPMDEV-NEWSPEC(1)

πŸ“¦
version 9.6 Β· 5 versions
, in centos-stream 10

πŸ’… 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 to FILE. 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 the TYPE spec 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 is NEWSPEC_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 is NEWSPEC_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 is NEWSPEC_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 Β© 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