This project hosts the rpmautospec
python package and script, which has these functions:
Dependencies:
The script rpmautospec.py
allows testing the various algorithms for automatic release and
changelog generation. It accepts normal CLI options, run python rpmautospec.py --help
for more
information.
This is how you can use it:
fedpkg clone -a guake
python rpmautospec.py generate-changelog guake
Note: You can also generate a good basic changelog using:
git log --after=2018-01-28 --pretty=oneline \ --format='%w(1000)**%h**%n* %cd %an <%ae>%n%w(60,0,2)- %s%n' \ --date="format:%a %b %d %Y"
Calculate the next value for the RPM release field (i.e. to be used for the next build) by running the script this way:
python rpmautospec.py calculate-release [--algorithm ...] <pkgname> <disttag> [<evr>]
E.g.:
python rpmautospec.py calculate-release bash fc31
python rpmautospec.py --algorithm holistic_heuristic gimp fc30
To tag a dist-git repository with <name>-[<epoch>:]<version>-<release> for existing builds, run the script like this:
python rpmautospec.py tag-project <path-to-project-repository>
E.g.:
python rpmautospec.py tag-project /home/fedora-packages/python-arrow
---
License: MIT