-
Notifications
You must be signed in to change notification settings - Fork 94
Release Guide
Tomas Mlcoch edited this page Oct 20, 2015
·
3 revisions
- Try to compile whole project (
cmake .. && make
) - Run unit-tests (
make ARGS="-V" tests
) - Run acceptance tests (
cd acceptance_tests && ./run_nosetests.sh
)
-
Bump version
vim VERSION.cmake
-
Commit the change
git commit VERSION.cmake -m "Bump to X.Y.Z"
-
Push the change
git push
-
Add a tag
git tag -a X.Y.Z COMMIT_HASH
-
Write a tag description
vX.Y.Z
- Changelog entry A
- Changelog entry B
-
Push the tag
git push --tags
- Create Fedora package (see next chapter)
- Update on-line documentation
Clone fedora repo for createrepo_c package.
mkdir ~/fedora-scm
cd ~/fedora-scm
fedpkg clone createrepo_c
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
Check which bugs were resolved:
Create an update (be sure you are on correct git branch inside fedora-scm project dir!)
fedpkg update