Edit variable $VERSION
in check_pgactivity
, and update the version field at
the end of the inline documentation in this script.
In check_pgactivity.spec
:
- update the tag in the
_tag
variable (first line) - update the version in
Version:
- edit the changelog
- date format:
LC_TIME=C date +"%a %b %d %Y"
- date format:
In debian/
, edit the changelog
file
Generate updated documentation :
pod2text check_pgactivity > README
podselect check_pgactivity > README.pod
TAG=REL2_3
git -a $TAG
git push --tags
git archive --prefix=check_pgactivity-$TAG/ -o /tmp/check_pgactivity-$TAG.tgz $TAG
-
edit the release notes for the new tag
-
set "check_pgactivity $VERSION" as title, eg. "check_pgactivity 2.3"
-
here is the format of the release node itself: YYYY-MM-DD - Version X.Y
Changelog:
- item 1
- item 2
- ...
See http://opmdg.github.io/checkpg_activity/documentation.html
-
upload the tar file
-
save
yum group install "Development Tools"
yum install rpmdevtools
useradd makerpm
su - makerpm
rpmdev-setuptree
git clone https://github.com/OPMDG/check_pgactivity.git
spectool -R -g check_pgactivity/check_pgactivity.spec
rpmbuild -ba check_pgactivity/check_pgactivity.spec
Don't forget to upload the package on github release page.