Use the same naming scheme as rawhide for -stable RC kernels

This commit is contained in:
Chuck Ebbert 2011-11-11 19:58:39 -05:00
parent 8ee8a6ff8c
commit 97c2a18ca6
2 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,4 +2,5 @@ linux-*.tar.bz2
patch-*.bz2
clog
*.rpm
*.orig
kernel-[23].*/

View File

@ -137,8 +137,10 @@ Summary: The Linux kernel
%if 0%{?stable_rc}
%define stable_rctag .rc%{stable_rc}
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
%else
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
%endif
%define pkg_release %{fedora_build}%{?stable_rctag}%{?buildid}%{?dist}
# The kernel tarball/base version
%define realversion 3.%{real_sublevel}
@ -896,6 +898,11 @@ exit 1
%endif
%endif
%if !%{baserelease}
echo "baserelease must be greater than zero"
exit 1
%endif
# more sanity checking; do it quietly
if [ "%{patches}" != "%%{patches}" ] ; then
for patch in %{patches} ; do
@ -1858,6 +1865,10 @@ fi
# and build.
%changelog
* Fri Nov 11 2011 Chuck Ebbert <cebbert@redhat.com>
- Use the same naming scheme as rawhide for -stable RC kernels
(e.g. 2.6.41.1-0.rc1.1 instead of 2.6.41.1-1.rc1)
* Fri Nov 11 2011 Josh Boyer <jwboyer@redhat.com> 2.6.41.1-1
- Linux 3.1.1