Skip to content
Tomas Mlcoch edited this page Oct 20, 2015 · 3 revisions

New createrepo_c release

Pre-release steps

  • Try to compile whole project (cmake .. && make)
  • Run unit-tests (make ARGS="-V" tests)
  • Run acceptance tests (cd acceptance_tests && ./run_nosetests.sh)

Release

  1. Bump version

    vim VERSION.cmake

  2. Commit the change

    git commit VERSION.cmake -m "Bump to X.Y.Z"

  3. Push the change

    git push

  4. Add a tag

    git tag -a X.Y.Z COMMIT_HASH

  5. Write a tag description

    vX.Y.Z

    • Changelog entry A
    • Changelog entry B
  6. Push the tag

    git push --tags

Post-release steps

Fedora package

Prep

Clone fedora repo for createrepo_c package.

mkdir ~/fedora-scm
cd ~/fedora-scm
fedpkg clone createrepo_c

Build

Make sure that your fedora createrepo_c's git is up to date.

cd ~cd/fedora-scm/createrepo_c
fedpkg switch-branch master  # Master branch is rawhide
fedpkg pull

Prepare a tarball & try to build the package locally.

cd git/createrepo_c
utils/cleanup.sh       # Remove old artefacts (tarballs, rpm packages, etc.)
utils/make_tarball.sh  # Prepare a tarball from current local git revision
utils/make_rpm.sh .    # (Optional) Build createrepo_c package locally (this step includes the previous one)
                       # Note: This step requires createrepo_c.spec in the checkout dir

Add your changes (use your own paths).

fedpkg new-sources ~/git/createrepo_c/createrepo_c-XXXXXX.tar.xz
cp ~/git/createrepo_c/createrepo_c.spec .  # Copy the spec used for local build

Review the changes, commit & push them

fedpkg diff
fedpkg commit -m "Update to X.Y.Z" -p

Build the package in Koji

fedpkg build

Optionally update other branches (fedora or EPEL versions as well)

fedpkg switch-branch fXX
git merge master  # Merge changes from the master branch (rawhide)
fedpkg push
fedpkg build
fedpkg update

Tips

koji build f21 --scratch createrepo_c-X.Y.Z.fcBB.src.rpm    # Sratch build for Fedora 21
koji build el6 --scratch createrepo_c-X.Y.Z.fcBB.src.rpm    # Sratch build for EPEL for RHEL 6
koji build epel7 --scratch createrepo_c-X.Y.Z.fcBB.src.rpm  # Sratch build for EPEL for RHEL 7

Fedora Update

Check which bugs were resolved:

Create an update (be sure you are on correct git branch inside fedora-scm project dir!)

fedpkg update