RDOPKG-FEATURE-NEW-VERSION(7)
π RDOPKG NEW-VERSION(7) π
okay so bestie, welcome to the rdopkg new-version manual page β the RDOPKG NEW-VERSION(7) one, yes, that one, you're in the right place π«Ά
β¨ NAME β¨
rdopkg-feature-new-version β autogenerated from feature spec new-version.feature π§
πΈ SYNOPSIS πΈ
Updating package to new version is a core feature. that's the whole vibe, that's the synopsis, periodt π
π¦ SCENARIOS π¦
π rdopkg new-version --bump-only
- Given a distgit at Version
2.0.0and Release3, - When I run
rdopkg new-version --bump-only -n 2.1.0, - Then command output contains
Action finished, - Then .spec file tag Version is
2.1.0, - Then .spec file tag Release is
1%{?dist}, - Then .spec file doesn't contain
patches_base, - Then .spec file contains new changelog entry with 1 lines,
- Then new commit was created,
- Then git is clean,
- Then last commit message is:
foo-bar-2.1.0-1
Changelog:
- Update to 2.1.0
π rdopkg new-version with upstream patches
- Given a distgit at Version
0.1and Release0.1, - Given a patches branch with 5 patches,
- Given a new version
1.0.0with 2 patches from patches branch, - When I run
rdopkg new-version -lntU 1.0.0, - Then command output contains
Action finished, - Then .spec file tag Version is
1.0.0, - Then .spec file tag Release is
1%{?dist}, - Then .spec file doesn't contain
patches_base, - Then .spec file has 3 patches defined,
- Then .spec file contains new changelog entry with 1 lines,
- Then new commit was created,
- Then git is clean,
- Then last commit message is:
foo-bar-1.0.0-1
Changelog:
- Update to 1.0.0
π rdopkg new-version with patches_ignore filtering
- Given a distgit at Version
0.1and Release0.1with magic comments:
# patches_ignore=DROP-IN-RPM|Wololo
# patches_base=0.1
- Given a patches branch with following patches:
Banana Patch DROP-IN-RPM
Mango Patch
Wololo Patch
Kiwi Patch
- Given a new version
1.0.0, - When I run
rdopkg new-version -ltU 1.0.0, - Then command output contains
Action finished, - Then .spec file tag Version is
1.0.0, - Then .spec file tag Release is
1%{?dist}, - Then .spec file has 2 patches defined,
- Then .spec file contains
patches_base=1.0.0, - Then .spec file contains new changelog entry with 1 lines,
- Then new commit was created,
- Then git is clean,
- Then last commit message is:
foo-bar-1.0.0-1
Changelog:
- Update to 1.0.0
π rdopkg new-version --bump-only --bug <id>
- Given a distgit at Version
2.0.0and Release3, - When I run
rdopkg new-version --bump-only -n 2.1.0 --bug rhbz#12345, - Then command output contains
Action finished, - Then .spec file contains new changelog entry with
rhbz#12345, - Then new commit was created,
- Then git is clean,
- Then last commit message contains
rhbz#12345, - Then last commit message is:
foo-bar-2.1.0-1
Changelog:
- Update to 2.1.0 (rhbz#12345)
Resolves: rhbz#12345
β rdopkg new-version --bump-only --commit-header-file <file>
- Given a distgit at Version
2.0.0and Release3, - Given a local file
commitmsgcontaining "Testing Alternate Commit Header", - When I run
rdopkg new-version --bump-only -n --commit-header-file commitmsg 2.1.0, - Then command output contains
Action finished, - Then new commit was created,
- Then git is clean,
- Then last commit message is:
Testing Alternate Commit Header
Changelog:
- Update to 2.1.0
π₯ rdopkg new-version --bump-only --bug <id> -H <file>
- Given a distgit at Version
2.0.0and Release3, - Given a local file
commitmsg:
Testing
Multiline
Commit
Header
- When I run
rdopkg new-version --bump-only -n --bug rhbz#12345,rhbz#232323 -H commitmsg 2.1.0, - Then command output contains
Action finished, - Then .spec file contains new changelog entry with
rhbz#12345, - Then .spec file contains new changelog entry with
rhbz#232323, - Then new commit was created,
- Then git is clean,
- Then last commit message contains
rhbz#12345, - Then last commit message contains
rhbz#232323, - Then last commit message is:
Testing
Multiline
Commit
Header
Changelog:
- Update to 2.1.0 (rhbz#12345,rhbz#232323)
Resolves: rhbz#12345
Resolves: rhbz#232323
πΈ rdopkg new-version without starting version git tag
- Given a distgit at Version
0.1and Release0.1, - Given a patches branch with 2 patches without version git tag,
- When I run
rdopkg new-version -l 1.0.0, - Then no new commit was created,
- Then git is clean,
- Then command output contains
Invalid base patches branch git reference:
lowkey a whole mood: nothing gets committed and git stays clean, but the command is out here complaining about that missing tag π
π§ rdopkg new-version without new version git tag
- Given a distgit at Version
0.1and Release0.1, - Given a patches branch with 2 patches,
- When I run
rdopkg new-version -l 2.2.2, - Then no new commit was created,
- Then git is clean,
- Then command output contains
Invalid git reference: 2.2.2
π rdopkg new-version --bump-only with macro in Name
- Given a distgit at Version
2.0.0and Release3, - When I prepend .spec file with:
%global lib foo
- When I run
rdopkg new-version --bump-only -n 2.1.0, - Then command output contains
Action finished, - Then new commit was created,
- Then git is clean,
- Then last commit message contains
python-foo-foo, - Then last commit message is:
python-foo-foo-2.1.0-1
Changelog:
- Update to 2.1.0
π the sign-off π
that's the whole page bestie, no cap. this masterpiece dropped on 10/04/2023 and it's the RDOPKG NEW-VERSION(7) page, autogenerated from new-version.feature β go forth and bump those versions, you absolute icon πβ¨π¦
π¦ where this page comes from
- epel 9: rdopkg 1.7.0-1.el9 Β· ASL 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms