From ae831e9d409d8684fa93c6dff0cc258f3dd83d4d Mon Sep 17 00:00:00 2001 From: Chan Lee Date: Tue, 2 Feb 2016 14:44:14 +0900 Subject: [PATCH] packaging: change pkgversion for Tizen/Linaro change pkgversion like "Tizen/Linaro GCC [version] [release]" like Tizen 2.4. and remove prerelease string. You can see this by typing 'gcc --version' or 'gcc -v'. Change-Id: I27f9320f4e625d9219f0669d7ec85a38f83c8373 Signed-off-by: Chan Lee --- packaging/gcc-aarch64.spec | 6 +++++- packaging/gcc-armv7l.spec | 6 +++++- packaging/linaro-gcc.spec | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec index c096b94..f26a20b 100644 --- a/packaging/gcc-aarch64.spec +++ b/packaging/gcc-aarch64.spec @@ -598,6 +598,10 @@ ln -sf isl-0.12.2 isl tar xf %{SOURCE14} ln -sf cloog-0.18.1 cloog +echo "" > gcc/DEV-PHASE + +%global gcc_release `sed -e 's/^.*-//g' %{_builddir}/gcc-%{version}/gcc/LINARO-VERSION` + %build rm -rf obj mkdir obj @@ -683,7 +687,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-libitm \ } \ --with-bugurl="http://bugs.tizen.org/" \ - --with-pkgversion="Tizen" \ + --with-pkgversion="Tizen/Linaro GCC %{version} %{gcc_release}" \ --target=%{target_arch} \ --host=%{host_arch} \ --build=%{host_arch} diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec index dc48dd9..43a4ea3 100644 --- a/packaging/gcc-armv7l.spec +++ b/packaging/gcc-armv7l.spec @@ -598,6 +598,10 @@ ln -sf isl-0.12.2 isl tar xf %{SOURCE14} ln -sf cloog-0.18.1 cloog +echo "" > gcc/DEV-PHASE + +%global gcc_release `sed -e 's/^.*-//g' %{_builddir}/gcc-%{version}/gcc/LINARO-VERSION` + %build rm -rf obj mkdir obj @@ -683,7 +687,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-libitm \ } \ --with-bugurl="http://bugs.tizen.org/" \ - --with-pkgversion="Tizen" \ + --with-pkgversion="Tizen/Linaro GCC %{version} %{gcc_release}" \ --target=%{target_arch} \ --host=%{host_arch} \ --build=%{host_arch} diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec index d3a4ff2..3fc34de 100644 --- a/packaging/linaro-gcc.spec +++ b/packaging/linaro-gcc.spec @@ -595,6 +595,10 @@ ln -sf isl-0.12.2 isl tar xf %{SOURCE14} ln -sf cloog-0.18.1 cloog +echo "" > gcc/DEV-PHASE + +%global gcc_release `sed -e 's/^.*-//g' %{_builddir}/gcc-%{version}/gcc/LINARO-VERSION` + %build rm -rf obj mkdir obj @@ -680,7 +684,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-libitm \ } \ --with-bugurl="http://bugs.tizen.org/" \ - --with-pkgversion="Tizen" \ + --with-pkgversion="Tizen/Linaro GCC %{version} %{gcc_release}" \ --target=%{target_arch} \ --host=%{host_arch} \ --build=%{host_arch} -- 2.7.4