I've enhanced my mga-gnome script to be able to increase the version number + reset %mkrel in an existing spec file. The script is meant for GNOME related packages/versions!
To e.g. increase boabab to version 3.3.2: # just once: mkdir ~/src ~/bin ~/pkgs cd ~/src svn co svn+ssh://svn.mageia.org/svn/soft/mga-gnome/trunk mga-gnome cd ~/bin ln -s ~/src/mga-gnome mga-gnome # command itself: mga-gnome increase baobab 3.3.2 This will: cd ~/pkgs mgarepo co baobab - checks current version is newer than existing version - do some regexp magic to increase version + reset %mkrel - some verifications for the regexp magic mgarepo sync -d (downloads the new version) bm -p --nodeps (check that patches apply) I want it to also check the version more closely, e.g.: 3.3.x -> 3.3.y : OK (unstable->unstable) 3.3.x -> 3.4.0 : OK (unstable->stable) 3.2.x -> 3.2.y : OK (stable->stable) 3.2.x -> 3.3.y : NOT OK (stable->unstable) You might get a few bad looking tracebacks when "mgarepo" or "bm" fails. I have to make the output a bit nicer. Anyway, I've just tried this with a few packages. In future, I might automatically even do: mgarepo ci -m "new version" mgarepo submit But I want to first do more testing, plus add SHA256 verification (what GNOME uses and advises). -- Regards, Olav
