úterý 4. května 2010

Bumping the spec file

I'm sure every packager has come across this situation: something breaks and you need to bump the RPM spec version number automatically, here's the trick:

$ rpmdev-bumpspec -r --comment="- rebuild against correct tag" F-1{1,2,3}/*.spec

Above you see a real life example, we needed to rebuild all KDE packages against the correct tag in Fedora F11, F12 and F13. What this command does is that it bumps the version number right after the %{?dist} tag and generates the respective changelog entry.

2 komentáře:

  1. Shouldn't it bump the release before the %{?dist} tag and not after?

    OdpovědětVymazat
  2. We use this variant in case of rebuilding KDE packages without any real changes inside (hence the -r switch).

    OdpovědětVymazat