[kubernetes] Bump to upstream a18cdac616962a2c486feb22afa3538fc3cf3a3a
by Eric Paris
commit c638c2eb1bbd244c45cced3539dba57fffa545dc
Author: Eric Paris <eparis(a)redhat.com>
Date: Fri Oct 31 08:51:59 2014 -0400
Bump to upstream a18cdac616962a2c486feb22afa3538fc3cf3a3a
.gitignore | 1 +
kubernetes.spec | 9 ++++++---
sources | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 03f2f5a..2ab6ce2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/kubernetes-1c61486.tar.gz
/kubernetes-8e1d416.tar.gz
/kubernetes-78df011.tar.gz
+/kubernetes-a18cdac.tar.gz
diff --git a/kubernetes.spec b/kubernetes.spec
index d08179a..ce01f96 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -1,7 +1,7 @@
#debuginfo not supported with Go
%global debug_package %{nil}
%global import_path github.com/GoogleCloudPlatform/kubernetes
-%global commit 78df01172af5cc132b7276afb668d31e91e61c11
+%global commit a18cdac616962a2c486feb22afa3538fc3cf3a3a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#binaries which should be called kube-*
@@ -18,7 +18,7 @@
Name: kubernetes
Version: 0.4+
-Release: 397.0.git%{shortcommit}%{?dist}
+Release: 426.0.git%{shortcommit}%{?dist}
Summary: Container cluster management
License: ASL 2.0
URL: https://github.com/GoogleCloudPlatform/kubernetes
@@ -84,7 +84,7 @@ BuildRequires: golang(gopkg.in/v1/yaml)
%build
export KUBE_GIT_COMMIT=%{commit}
export KUBE_GIT_TREE_STATE="dirty"
-export KUBE_GIT_VERSION=v0.4-397-g78df01172af5cc
+export KUBE_GIT_VERSION=v0.4-426-ga18cdac616962a
export KUBE_EXTRA_GOPATH=%{gopath}
export KUBE_NO_GODEPS="true"
@@ -193,6 +193,9 @@ getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin \
%systemd_postun
%changelog
+* Fri Oct 31 2014 Eric Paris <eparis(a)redhat.com - 0.4+-426.0.gita18cdac
+- Bump to upstream a18cdac616962a2c486feb22afa3538fc3cf3a3a
+
* Thu Oct 30 2014 Eric Paris <eparis(a)redhat.com - 0.4+-397.0.git78df011
- Bump to upstream 78df01172af5cc132b7276afb668d31e91e61c11
diff --git a/sources b/sources
index 95648bc..08eacc9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8b946816dda51dab76d293197ce58d2c kubernetes-78df011.tar.gz
+5f57bef6ebb85f15b207c99327222413 kubernetes-a18cdac.tar.gz
9 years, 6 months
[golang] revert macros in subpackage
by Vincent Batts
commit 84f93201d954b212de7a24dfd7d19892c3439b2f
Author: Vincent Batts <vbatts(a)hashbangbash.com>
Date: Thu Oct 30 14:32:05 2014 -0400
revert macros in subpackage
they'll need to be in their own rpm entirely
golang.spec | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/golang.spec b/golang.spec
index 86f9dd3..8d84865 100644
--- a/golang.spec
+++ b/golang.spec
@@ -40,7 +40,7 @@
Name: golang
Version: 1.3.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The Go Programming Language
License: BSD
@@ -62,7 +62,6 @@ BuildRequires: /bin/hostname
Provides: go = %{version}-%{release}
Requires: golang-bin
Requires: golang-src = %{version}-%{release}
-Requires: golang-srpm-macros = %{version}-%{release}
BuildRequires: emacs
@@ -110,14 +109,6 @@ Source102: macros.golang
#%{summary}.
-%package srpm-macros
-Summary: RPM macros for the Go programming language
-BuildArch: noarch
-
-%description srpm-macros
-%{summary}.
-
-
%package vim
Summary: Vim plugins for Go
# fedora only
@@ -639,8 +630,6 @@ fi
# prelink blacklist
%{_sysconfdir}/prelink.conf.d
-
-%files srpm-macros
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
%{_rpmconfigdir}/macros.d/macros.golang
%else
@@ -915,6 +904,9 @@ fi
%changelog
+* Thu Oct 30 2014 Vincent Batts <vbatts(a)fedoraproject.org> - 1.3.3-3
+- macros will need to be in their own rpm
+
* Fri Oct 24 2014 Vincent Batts <vbatts(a)fedoraproject.org> - 1.3.3-2
- split out rpm macros (bz1156129)
- progress on gccgo accomodation
9 years, 6 months
[kubernetes] Bump to upstream 78df01172af5cc132b7276afb668d31e91e61c11
by Eric Paris
commit 109846f997531110f5aa213ce6f7f7727b5909b3
Author: Eric Paris <eparis(a)redhat.com>
Date: Thu Oct 30 12:04:17 2014 -0400
Bump to upstream 78df01172af5cc132b7276afb668d31e91e61c11
.gitignore | 1 +
add-chglog | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
getsource.sh | 33 +++++++++++++---
kubernetes.spec | 9 +++-
sources | 2 +-
5 files changed, 152 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9d04ab7..03f2f5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/kubernetes-dc7e3d6.tar.gz
/kubernetes-1c61486.tar.gz
/kubernetes-8e1d416.tar.gz
+/kubernetes-78df011.tar.gz
diff --git a/add-chglog b/add-chglog
new file mode 100755
index 0000000..513026a
--- /dev/null
+++ b/add-chglog
@@ -0,0 +1,117 @@
+#!/usr/bin/python -t
+# -*- mode: Python; indent-tabs-mode: nil; coding: utf-8 -*-
+#
+# Copyright (c) 2005-2013 Fedora Project
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+import re
+import subprocess
+import sys
+import textwrap
+import time
+from optparse import OptionParser
+
+
+__version__ = "1.0.12"
+
+class SpecFile:
+ def __init__(self, filename):
+ self.filename = filename
+ f = None
+ try:
+ f = open(filename,"r")
+ self.lines = f.readlines()
+ finally:
+ f and f.close()
+
+ _changelog_pattern = re.compile(r"^%changelog(\s|$)", re.I)
+
+ def addChangelogEntry(self, evr, entry, email):
+ for i in range(len(self.lines)):
+ if SpecFile._changelog_pattern.match(self.lines[i]):
+ if len(evr):
+ evrstring = ' - %s' % evr
+ else:
+ evrstring = ''
+ date = time.strftime("%a %b %d %Y", time.gmtime())
+ newchangelogentry = "* %s %s%s\n%s\n\n" % \
+ (date, email, evrstring, entry)
+ self.lines[i] += newchangelogentry
+ return
+
+ def writeFile(self, filename):
+ f = open(filename, "w")
+ f.writelines(self.lines)
+ f.close()
+
+ def debugdiff(self, old, new):
+ print ('%s\n-%s\n+%s\n' % (self.filename, old, new))
+
+if __name__ == "__main__":
+ usage = '''Usage: %prog [OPTION]... SPECFILE...'''
+
+ userstring = subprocess.Popen("rpmdev-packager 2>/dev/null", shell = True,
+ stdout = subprocess.PIPE).communicate()[0]
+ userstring = userstring.strip() or None
+
+ parser = OptionParser(usage=usage)
+ parser.add_option("-c", "--comment", default='- rebuilt',
+ help="changelog comment (default: \"- rebuilt\")")
+ parser.add_option("-u", "--userstring", default=userstring,
+ help="user name+email string (default: output from "+
+ "rpmdev-packager(1))")
+ (opts, args) = parser.parse_args()
+
+ if not args:
+ parser.error('No specfiles specified')
+
+ if not opts.userstring:
+ parser.error('Userstring required, see option -u')
+
+ # Grab bullet, insert one if not found.
+ bullet_re = re.compile(r'^([^\s\w])\s', re.UNICODE)
+ bullet = "-"
+ match = bullet_re.search(opts.comment)
+ if match:
+ bullet = match.group(1)
+ else:
+ opts.comment = bullet + " " + opts.comment
+
+ # Format comment.
+ if opts.comment.find("\n") == -1:
+ wrapopts = { "subsequent_indent": (len(bullet)+1) * " ",
+ "break_long_words": False }
+ if sys.version_info[:2] > (2, 5):
+ wrapopts["break_on_hyphens"] = False
+ opts.comment = textwrap.fill(opts.comment, 80, **wrapopts)
+
+ for aspec in args:
+ try:
+ s = SpecFile(aspec)
+ except:
+ # Not actually a parser error, but... meh.
+ parser.error(sys.exc_info()[1])
+
+ # Get EVR for changelog entry.
+ cmd = ("rpm", "-q", "--specfile", "--define", "dist %{nil}",
+ "--qf=%|epoch?{%{epoch}:}:{}|%{version}-%{release}\n", aspec)
+ popen = subprocess.Popen(cmd, stdout = subprocess.PIPE)
+ evr = str(popen.communicate()[0]).split("\n")[0]
+
+ s.addChangelogEntry(evr, opts.comment, opts.userstring)
+ s.writeFile(aspec)
+
+sys.exit(0)
diff --git a/getsource.sh b/getsource.sh
index a14ae6a..17d8b1d 100755
--- a/getsource.sh
+++ b/getsource.sh
@@ -1,17 +1,38 @@
#!/bin/sh
-set -e
+KUBE_GIT_COMMIT="$1"
+KUBE_GIT_VERSION="$2"
+
+set -o errexit
+set -o nounset
+set -o pipefail
SPEC=kubernetes.spec
-wget https://github.com/GoogleCloudPlatform/kubernetes/archive/$1/kubernetes-$...
+wget https://github.com/GoogleCloudPlatform/kubernetes/archive/${KUBE_GIT_COMM...
+
+
+if [[ "${KUBE_GIT_VERSION}" =~ ^v([0-9]+)\.([0-9]+)\-([0-9]+)\-(.*)?$ ]]; then
+ git_major=${BASH_REMATCH[1]}
+ git_minor=${BASH_REMATCH[2]}
+ if [[ -n "${BASH_REMATCH[3]}" ]]; then
+ git_minor+="+"
+ since_tag=${BASH_REMATCH[3]}
+ fi
+fi
-#put the git hash in there
-sed -i -e "s/%global commit\t\t[[:xdigit:]]\{40\}/%global commit\t\t$1/" ${SPEC}
+#put the git hash in as the commit
+sed -i -e "s/%global commit\t\t[[:xdigit:]]\{40\}/%global commit\t\t${KUBE_GIT_COMMIT}/" ${SPEC}
+#update the version with the latest tag
+sed -i -e "s/Version:\t[[:digit:]]\+\.[[:digit:]]\++\?/Version:\t${git_major}.${git_minor}/" ${SPEC}
+#update the release with since_tag
+sed -i -e "s/Release:\t[[:digit:]]\+\.[[:digit:]]\+/Release:\t${since_tag}.0/" ${SPEC}
+#update the git Version inside the built binaries
+sed -i -e "s/export KUBE_GIT_VERSION=v.*/export KUBE_GIT_VERSION=${KUBE_GIT_VERSION}/" ${SPEC}
#increment the version number
-rpmdev-bumpspec --comment="Bump to upstream ${1}" --userstring="Eric Paris <eparis(a)redhat.com" ${SPEC}
+./add-chglog --comment="Bump to upstream ${KUBE_GIT_COMMIT}" --userstring="Eric Paris <eparis(a)redhat.com" ${SPEC}
fedpkg clog
-echo "****Don't forget to run: fedpkg new-sources kubernetes-${1:0:7}.tar.gz"
+echo "****Don't forget to run: fedpkg new-sources kubernetes-${KUBE_GIT_COMMIT:0:7}.tar.gz"
diff --git a/kubernetes.spec b/kubernetes.spec
index 6ea4953..d08179a 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -1,7 +1,7 @@
#debuginfo not supported with Go
%global debug_package %{nil}
%global import_path github.com/GoogleCloudPlatform/kubernetes
-%global commit 8e1d41670783cb75cf0c5088f199961a7d8e05e5
+%global commit 78df01172af5cc132b7276afb668d31e91e61c11
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#binaries which should be called kube-*
@@ -18,7 +18,7 @@
Name: kubernetes
Version: 0.4+
-Release: 0.9.git%{shortcommit}%{?dist}
+Release: 397.0.git%{shortcommit}%{?dist}
Summary: Container cluster management
License: ASL 2.0
URL: https://github.com/GoogleCloudPlatform/kubernetes
@@ -84,7 +84,7 @@ BuildRequires: golang(gopkg.in/v1/yaml)
%build
export KUBE_GIT_COMMIT=%{commit}
export KUBE_GIT_TREE_STATE="dirty"
-export KUBE_GIT_VERSION=v%{version}
+export KUBE_GIT_VERSION=v0.4-397-g78df01172af5cc
export KUBE_EXTRA_GOPATH=%{gopath}
export KUBE_NO_GODEPS="true"
@@ -193,6 +193,9 @@ getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin \
%systemd_postun
%changelog
+* Thu Oct 30 2014 Eric Paris <eparis(a)redhat.com - 0.4+-397.0.git78df011
+- Bump to upstream 78df01172af5cc132b7276afb668d31e91e61c11
+
* Wed Oct 29 2014 Eric Paris <eparis(a)redhat.com - 0.4+-0.9.git8e1d416
- Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
diff --git a/sources b/sources
index 5ed9772..95648bc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2941ceb0f3e2abdee5f0e1d5973e20e9 kubernetes-8e1d416.tar.gz
+8b946816dda51dab76d293197ce58d2c kubernetes-78df011.tar.gz
9 years, 6 months
[kubernetes/f20] Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
by Eric Paris
commit 1b7a3b3964ebcb89c6f03f3052cfe59d10531c57
Author: Eric Paris <eparis(a)redhat.com>
Date: Wed Oct 29 15:41:01 2014 -0400
Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
.gitignore | 1 +
kubernetes.spec | 9 ++++++---
sources | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5901438..9d04ab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/kubernetes-e46af6e.tar.gz
/kubernetes-dc7e3d6.tar.gz
/kubernetes-1c61486.tar.gz
+/kubernetes-8e1d416.tar.gz
diff --git a/kubernetes.spec b/kubernetes.spec
index 478115f..6ea4953 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -1,7 +1,7 @@
#debuginfo not supported with Go
%global debug_package %{nil}
%global import_path github.com/GoogleCloudPlatform/kubernetes
-%global commit 1c61486ec343246a81f62b4297671217c9576df7
+%global commit 8e1d41670783cb75cf0c5088f199961a7d8e05e5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#binaries which should be called kube-*
@@ -17,8 +17,8 @@
%global _checkshell /bin/bash
Name: kubernetes
-Version: 0.4
-Release: 0.8.git%{shortcommit}%{?dist}
+Version: 0.4+
+Release: 0.9.git%{shortcommit}%{?dist}
Summary: Container cluster management
License: ASL 2.0
URL: https://github.com/GoogleCloudPlatform/kubernetes
@@ -193,6 +193,9 @@ getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin \
%systemd_postun
%changelog
+* Wed Oct 29 2014 Eric Paris <eparis(a)redhat.com - 0.4+-0.9.git8e1d416
+- Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
+
* Tue Oct 28 2014 Eric Paris <eparis(a)redhat.com - 0.4-0.8.git1c61486
- Bump to upstream 1c61486ec343246a81f62b4297671217c9576df7
diff --git a/sources b/sources
index 7d49014..5ed9772 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6556a17f5ee815e6529b3336f4811865 kubernetes-1c61486.tar.gz
+2941ceb0f3e2abdee5f0e1d5973e20e9 kubernetes-8e1d416.tar.gz
9 years, 6 months
[kubernetes/f21] Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
by Eric Paris
commit c7fa06f4f1c21029c3c23f41b87af165854c9fc6
Author: Eric Paris <eparis(a)redhat.com>
Date: Wed Oct 29 15:39:35 2014 -0400
Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
.gitignore | 1 +
kubernetes.spec | 9 ++++++---
sources | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5901438..9d04ab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/kubernetes-e46af6e.tar.gz
/kubernetes-dc7e3d6.tar.gz
/kubernetes-1c61486.tar.gz
+/kubernetes-8e1d416.tar.gz
diff --git a/kubernetes.spec b/kubernetes.spec
index 478115f..6ea4953 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -1,7 +1,7 @@
#debuginfo not supported with Go
%global debug_package %{nil}
%global import_path github.com/GoogleCloudPlatform/kubernetes
-%global commit 1c61486ec343246a81f62b4297671217c9576df7
+%global commit 8e1d41670783cb75cf0c5088f199961a7d8e05e5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#binaries which should be called kube-*
@@ -17,8 +17,8 @@
%global _checkshell /bin/bash
Name: kubernetes
-Version: 0.4
-Release: 0.8.git%{shortcommit}%{?dist}
+Version: 0.4+
+Release: 0.9.git%{shortcommit}%{?dist}
Summary: Container cluster management
License: ASL 2.0
URL: https://github.com/GoogleCloudPlatform/kubernetes
@@ -193,6 +193,9 @@ getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin \
%systemd_postun
%changelog
+* Wed Oct 29 2014 Eric Paris <eparis(a)redhat.com - 0.4+-0.9.git8e1d416
+- Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
+
* Tue Oct 28 2014 Eric Paris <eparis(a)redhat.com - 0.4-0.8.git1c61486
- Bump to upstream 1c61486ec343246a81f62b4297671217c9576df7
diff --git a/sources b/sources
index 7d49014..5ed9772 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6556a17f5ee815e6529b3336f4811865 kubernetes-1c61486.tar.gz
+2941ceb0f3e2abdee5f0e1d5973e20e9 kubernetes-8e1d416.tar.gz
9 years, 6 months
[kubernetes] Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
by Eric Paris
commit 98657e1dc63104f55bb3ead37102e859da77d0a0
Author: Eric Paris <eparis(a)redhat.com>
Date: Wed Oct 29 15:37:34 2014 -0400
Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
.gitignore | 1 +
kubernetes.spec | 9 ++++++---
sources | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5901438..9d04ab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/kubernetes-e46af6e.tar.gz
/kubernetes-dc7e3d6.tar.gz
/kubernetes-1c61486.tar.gz
+/kubernetes-8e1d416.tar.gz
diff --git a/kubernetes.spec b/kubernetes.spec
index 478115f..6ea4953 100644
--- a/kubernetes.spec
+++ b/kubernetes.spec
@@ -1,7 +1,7 @@
#debuginfo not supported with Go
%global debug_package %{nil}
%global import_path github.com/GoogleCloudPlatform/kubernetes
-%global commit 1c61486ec343246a81f62b4297671217c9576df7
+%global commit 8e1d41670783cb75cf0c5088f199961a7d8e05e5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#binaries which should be called kube-*
@@ -17,8 +17,8 @@
%global _checkshell /bin/bash
Name: kubernetes
-Version: 0.4
-Release: 0.8.git%{shortcommit}%{?dist}
+Version: 0.4+
+Release: 0.9.git%{shortcommit}%{?dist}
Summary: Container cluster management
License: ASL 2.0
URL: https://github.com/GoogleCloudPlatform/kubernetes
@@ -193,6 +193,9 @@ getent passwd kube >/dev/null || useradd -r -g kube -d / -s /sbin/nologin \
%systemd_postun
%changelog
+* Wed Oct 29 2014 Eric Paris <eparis(a)redhat.com - 0.4+-0.9.git8e1d416
+- Bump to upstream 8e1d41670783cb75cf0c5088f199961a7d8e05e5
+
* Tue Oct 28 2014 Eric Paris <eparis(a)redhat.com - 0.4-0.8.git1c61486
- Bump to upstream 1c61486ec343246a81f62b4297671217c9576df7
diff --git a/sources b/sources
index 7d49014..5ed9772 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6556a17f5ee815e6529b3336f4811865 kubernetes-1c61486.tar.gz
+2941ceb0f3e2abdee5f0e1d5973e20e9 kubernetes-8e1d416.tar.gz
9 years, 6 months