"rpkg nvr" not working.
https://docs.pagure.org/rpkg-util/v3/quick_start.html#new-project
«Yet, if you invoke rpkg nvr to find out what rpkg thinks the application version for the commit is (and what it will put into the rpm name as well), you get:»
$ rpkg nvr hello_rpkg_existing-0.0.git.11.437de491-1.fc31
Actually, I get
…/fedora/hello_rpkg$ rpkg nvr ↑ usage: rpkg [-h] [--config CONFIG] [--module-name MODULE_NAME] [--user USER] [--path PATH] [--verbose] [--debug] [-q] {help,make-source,clean,clog,clone,co,commit,ci,compile,copr-build,build,diff,gimmespec,import,install,is-packed,lint,local,n ew,new-sources,prep,pull,push,sources,spec,srpm,switch-branch,tag,unused-patches,upload,verify-files,verrel} ... rpkg: error: invalid choice: 'nvr' (choose from 'help', 'make-source', 'clean', 'clog', 'clone', 'co', 'commit', 'ci', 'compile', 'copr-b uild', 'build', 'diff', 'gimmespec', 'import', 'install', 'is-packed', 'lint', 'local', 'new', 'new-sources', 'prep', 'pull', 'push', 'so urces', 'spec', 'srpm', 'switch-branch', 'tag', 'unused-patches', 'upload', 'verify-files', 'verrel')
$ rpm -qa | grep rpkg rpkg-common-1.63-2.fc34.noarch python3-rpkg-1.63-2.fc34.noarch rpkg-2.10-1.fc34.noarch
Hello, the rpkg nvr command is only present in rpkg-3, whereas you used rpkg-2 (there the command is called verrel). The link into rpkg documentation you provided is for the v3.
rpkg nvr
verrel
I recommend installing v3 from: https://copr.fedorainfracloud.org/coprs/clime/rpkg-util/
Metadata Update from @belonesox: - Issue status updated to: Closed (was: Open)
This issue has been migrated to GitHub: https://github.com/fedora-copr/rpkg-util/issues/35 Don't forget to subscribe for notifications about new comments.