]>
Commit | Line | Data |
---|---|---|
e858e78f ER |
1 | # TODO: |
2 | # - com.google.appengine.eclipse.sdkbundle_1.2.1.v200905131156/ | |
3 | # - com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062254 is x86 centric (build from source?) | |
4 | %define pluginver 1.0.1 | |
5 | %define appengver 1.2.1 | |
6 | %define gwtver 1.6.4 | |
f36e8c62 ER |
7 | %include /usr/lib/rpm/macros.java |
8 | Summary: Google Plugin for Eclipse | |
9 | Name: eclipse-plugin-google | |
e858e78f | 10 | Version: %{pluginver} |
799207e2 | 11 | Release: 0.7 |
f36e8c62 ER |
12 | License: Apache License, v2.0 |
13 | Group: Development/Tools | |
14 | URL: http://code.google.com/eclipse/ | |
15 | # http://code.google.com/eclipse/docs/install-from-zip.html | |
16 | Source0: http://dl.google.com/eclipse/plugin/3.3/zips/gpe-e33-latest.zip | |
17 | # Source0-md5: 955d207982a0ec954b1c067019c33694 | |
e858e78f ER |
18 | Source1: http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine.eclipse.sdkbundle.e33.feature_%{appengver}.v200905131156.jar |
19 | # Source1-md5: 44dbeb0e33c1458658b1626b86efd677 | |
20 | Source2: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.eclipse.sdkbundle_%{appengver}.v200905131156.jar | |
21 | # Source2-md5: ebc7c16b7291830497a24312980919c6 | |
22 | Source3: http://dl.google.com/eclipse/plugin/3.3/features/com.google.gwt.eclipse.sdkbundle.e33.feature_%{gwtver}.v200904062254.jar | |
23 | # Source3-md5: 8de9b4a53690e36e4af4fdd0e02f1528 | |
24 | Source4: http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.linux_%{gwtver}.v200904062254.jar | |
25 | # Source4-md5: 9fe86bcde62ab891569b96fdb6fc0752 | |
f36e8c62 | 26 | BuildRequires: rpm-javaprov |
b1662a51 | 27 | BuildRequires: unzip |
f36e8c62 ER |
28 | Requires: eclipse >= 3.3 |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %define eclipsedir %{_datadir}/eclipse | |
33 | ||
799207e2 ER |
34 | # somewhy rpm-4.5 searches for ELF provides even the .so files are not executable |
35 | %define _noautoprovfiles %{_datadir}/eclipse | |
36 | ||
f36e8c62 ER |
37 | %description |
38 | The Google Plugin for Eclipse is the fastest way to start developing | |
39 | Google Web Toolkit and App Engine applications, allowing you to go | |
40 | from installing the plugin to deploying an Ajax "Hello World" in a | |
41 | matter of minutes. Simply install the plugin and get started. If you | |
42 | don't have the GWT and App Engine SDKs installed, the plugin can take | |
43 | care of that for you. | |
44 | ||
45 | The plugin currently supports Google App Engine and Google Web Toolkit | |
46 | development. | |
47 | ||
e858e78f ER |
48 | %package appengine |
49 | Summary: Google App Engine for Java SDK Bundle for Eclipse | |
50 | Version: %{appengver} | |
51 | Group: Development/Tools | |
52 | Requires: %{name} = %{pluginver}-%{release} | |
53 | ||
54 | %description appengine | |
55 | Google App Engine for Java SDK Bundle for Eclipse. | |
56 | ||
57 | %package gwt | |
58 | Summary: Google Web Toolkit SDK Bundle for Eclipse | |
59 | Version: %{gwtver} | |
60 | Group: Development/Tools | |
61 | Requires: %{name} = %{pluginver}-%{release} | |
62 | ||
63 | %description gwt | |
64 | Google Web Toolkit SDK Bundle for Eclipse. | |
65 | ||
f36e8c62 ER |
66 | %prep |
67 | %setup -qc | |
799207e2 ER |
68 | install -d appengine gwt |
69 | %{__unzip} -d appengine -qq %{SOURCE2} | |
70 | %{__unzip} -d gwt -qq %{SOURCE4} | |
f36e8c62 ER |
71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | install -d $RPM_BUILD_ROOT%{eclipsedir}/{features,plugins} | |
75 | cp -a features/* $RPM_BUILD_ROOT%{eclipsedir}/features | |
76 | cp -a plugins/* $RPM_BUILD_ROOT%{eclipsedir}/plugins | |
77 | ||
e858e78f ER |
78 | # appengine sdkbundle |
79 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{eclipsedir}/features | |
799207e2 | 80 | cp -a appengine $RPM_BUILD_ROOT%{eclipsedir}/plugins/$(basename %{SOURCE2} .jar) |
e858e78f ER |
81 | # gwt sdkbundle |
82 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{eclipsedir}/features | |
799207e2 | 83 | cp -a gwt $RPM_BUILD_ROOT%{eclipsedir}/plugins/$(basename %{SOURCE4} .jar) |
e858e78f | 84 | |
f36e8c62 ER |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %{eclipsedir}/features/com.google.gdt.eclipse.suite.e33.feature_* | |
91 | %{eclipsedir}/plugins/com.google.appengine.eclipse.core_*.jar | |
92 | %{eclipsedir}/plugins/com.google.gdt.eclipse.core_*.jar | |
93 | %{eclipsedir}/plugins/com.google.gdt.eclipse.suite_*.jar | |
94 | %{eclipsedir}/plugins/com.google.gwt.eclipse.core_*.jar | |
e858e78f ER |
95 | |
96 | %files appengine | |
97 | %defattr(644,root,root,755) | |
98 | %{eclipsedir}/features/com.google.appengine.eclipse.sdkbundle.e33.feature_*.jar | |
799207e2 | 99 | %{eclipsedir}/plugins/com.google.appengine.eclipse.sdkbundle_* |
e858e78f ER |
100 | |
101 | %files gwt | |
102 | %defattr(644,root,root,755) | |
103 | %{eclipsedir}/features/com.google.gwt.eclipse.sdkbundle.e33.feature_*.jar | |
104 | # XXX: ix86 mozilla inside | |
799207e2 | 105 | %{eclipsedir}/plugins/com.google.gwt.eclipse.sdkbundle.linux_* |