[eclipse/f17] Add macro for build ID to ease moving to new ones

Andrew Overholt overholt at fedoraproject.org
Wed Feb 29 16:46:20 UTC 2012


commit 5b2774b0d4089f5e991beced91f90221c7abf490
Author: Andrew Overholt <overholt at redhat.com>
Date:   Wed Feb 29 11:46:11 2012 -0500

    Add macro for build ID to ease moving to new ones

 eclipse.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/eclipse.spec b/eclipse.spec
index 10c3a6a..006024c 100644
--- a/eclipse.spec
+++ b/eclipse.spec
@@ -7,6 +7,7 @@ Epoch:  1
 %global initialize      1
 %global download_url    http://download.eclipse.org/technology/linuxtools/eclipse-build/3.8.x/
 %global eb_sha1         d253930a27aece45223d8c84c64894b02b04bf51
+%global build_id        I20120228-0800
 
 # FIXME:  update java packaging guidelines for this.  See
 # fedora-devel-java-list discussion in September 2008.
@@ -17,12 +18,12 @@ Epoch:  1
 Summary:        An open, extensible IDE
 Name:           eclipse
 Version:        %{eclipse_majmin}.%{eclipse_micro}
-Release:        0.15.I201202280800%{?dist}
+Release:        0.16.I201202280800%{?dist}
 License:        EPL
 Group:          Text Editors/Integrated Development Environments (IDE)
 URL:            http://www.eclipse.org/
 Source0:        %{download_url}eclipse-build-%{eb_sha1}.tar.xz
-Source1:        %{download_url}eclipse-3.8.0-I20120228-0800-src.tar.bz2
+Source1:        %{download_url}eclipse-%{version}-%{build_id}-src.tar.bz2
 Source2:        eclipse-reconciler.sh
 Source4:        macros.%{name}
 Source5:        http://repo1.maven.org/maven2/org/eclipse/osgi/org.eclipse.osgi/3.6.0.v20100517/org.eclipse.osgi-3.6.0.v20100517.pom
@@ -166,7 +167,7 @@ export JAVA_HOME=%{java_home}
 %setup -q -n eclipse-build-%{eb_sha1}
 cp %{SOURCE1} .
 ant applyPatches
-pushd build/eclipse-3.8.0-I20120228-0800-src
+pushd build/eclipse-%{version}-%{build_id}-src
 
 # Use our system-installed javadocs, reference only what we built, and
 # don't like to osgi.org docs (FIXME:  maybe we should package them?)
@@ -574,6 +575,9 @@ rm -rf %{_bindir}/efj/
 %{_libdir}/%{name}/dropins/sdk
 
 %changelog
+* Wed Feb 29 2012 Andrew Overholt <overholt at redhat.com> 1:3.8.0-0.16.I201202280800
+- Add macro for build ID to ease moving to new ones.
+
 * Wed Feb 29 2012 Krzysztof Daniel <kdaniel at redhat.com> 1:3.8.0-0.15.I201202280800
 - Eclipse update to I20120228-0800
 


More information about the scm-commits mailing list