Add release-merge make target

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2022-04-07 10:45:10 -04:00
parent 81ee746e12
commit 5f71f3ec83
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11
6 changed files with 22 additions and 12 deletions

2
.gitignore vendored
View File

@ -1,7 +1,5 @@
clog-spec
clog
/lorax-templates-rhel-9.0-34.tar.gz
/lorax-templates-rhel-9.0-35.tar.gz
/lorax-templates-rhel-10.0-1.tar.gz
/lorax-templates-rhel-10.0-2.tar.gz
/lorax-templates-rhel-10.0-3.tar.gz

View File

@ -41,9 +41,19 @@ clog:
release:
$(MAKE) bump-serial && $(MAKE) tar && $(MAKE) update-spec && $(MAKE) commit
release-merge:
$(MAKE) bump-serial && $(MAKE) tar && $(MAKE) update-spec && $(MAKE) amend
commit:
$(RHPKG) new-sources ${TARBALL}
git add -u
git commit -F clog
amend:
$(RHPKG) new-sources ${TARBALL}
git add -u
git commit --amend
.PHONY: tar ${TARBALL} bump-serial update-spec release clog commit

11
README
View File

@ -13,9 +13,8 @@ Hi there! If you're trying to fix something here, do the following:
# To rebase from RHEL:
1. Add "cs" remote: `git remote add cs https://gitlab.com/redhat/centos-stream/rpms/lorax-templates-rhel.git`
2. `git merge [-X ours] cs/c9s`
3. `make release`
4. Examine the changes with 'git show' and make sure they look ok.
5. Push the changes to your fork of the project with:
'git push REMOTE BRANCHNAME' and follow the instructions to
create a merge request in gitlab.
6. `git rebase --interactive HEAD~2` and merge the commits together
3. `make release-merge`
4. Edit the %changelog section of lorax-templates-rhel.spec appropriately
5. `git add lorax-templates-rhel.spec`
6. `git commit --amend`

2
SERIAL
View File

@ -1 +1 @@
12
13

View File

@ -1,6 +1,6 @@
Name: lorax-templates-rhel
Version: 10.0
Release: 12%{?dist}
Release: 13%{?dist}
Summary: RHEL build templates for lorax and livemedia-creator
License: GPLv2+
@ -10,7 +10,7 @@ BuildArch: noarch
# This tarball is generated from the contents of this dist-git repository
# by running the command `make tar`.
# See README for full details of how to update this package
Source0: lorax-templates-rhel-10.0-12.tar.gz
Source0: lorax-templates-rhel-10.0-13.tar.gz
# Required for the template branding support
Requires: lorax >= 34.9.1
@ -38,6 +38,9 @@ cp -a 80-rhel/* $RPM_BUILD_ROOT/%{templatedir}
%{templatedir}/*
%changelog
* Thu Apr 07 2022 Stephen Gallagher <sgallagh@redhat.com> - 10.0-13
- Re-sync from CentOS Stream 9
* Tue Mar 08 2022 Stephen Gallagher <sgallagh@redhat.com> - 10.0-12
- Don't try to install packages that don't exist in ELN
- redhat-release-eula

View File

@ -1 +1 @@
SHA512 (lorax-templates-rhel-10.0-12.tar.gz) = cb6ed24e25c3b495e99052bdcfa47c60f9d818e1680e1fbf2235789f995dda87e5e0826e7bf37b74444ebba6b39a6a4cabb09b17fa494beafcc4693083be83a3
SHA512 (lorax-templates-rhel-10.0-13.tar.gz) = ec9a014f962701c9181493f9c78fcae8b1d4905cca38b251d121ce8275deb5a4e380cc6bf65bcf0bf54f2c31b1a8f6371bde01a6eed9991e0d132bd2d90be406