]>
Commit | Line | Data |
---|---|---|
2b804e44 | 1 | |
2 | # TODO: | |
3 | # - conditional build with motiff | |
4 | # - .so binaries should be removed and linked with PLD one... | |
5 | # (we really need them here?) | |
6 | ||
f4a571c1 | 7 | %define _buildid 200303272130 |
2b804e44 | 8 | |
9 | Summary: eclipse | |
10 | Summary(pl): eclipse | |
11 | Name: eclipse-SDK | |
12 | Version: 2.1.0 | |
f4a571c1 | 13 | Release: 1 |
2b804e44 | 14 | License: Apache |
15 | Group: Development/Languages/Java | |
f4a571c1 | 16 | Source0: http://download2.eclipse.org/downloads/drops/R-2.1-%{_buildid}/eclipse-sourceBuild-srcIncluded-2.1.zip |
24c4ac31 | 17 | # Source0-md5: cc193abe0cdc0f59a2e97b8a41290ffd |
2b804e44 | 18 | URL: http://www.eclipse.org |
2b804e44 | 19 | BuildRequires: jdk |
20 | BuildRequires: jakarta-ant >= 1.4 | |
21 | BuildRequires: gtk+2-devel | |
22 | Requires: jdk | |
23 | #BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _javalibdir /usr/share/java | |
2b804e44 | 27 | |
f4a571c1 | 28 | %define _noautoreq libc.so.2 libdb.so.2 libkdecore.so.4 libkdecore.so.3 libksycoca.so.3 libphexlib.so.2 libphrender.so.2 libph.so.2 libqt.so.2 libqt-mt.so.3 |
2b804e44 | 29 | |
30 | %description | |
31 | ||
32 | %description -l pl | |
33 | ||
34 | %prep | |
35 | %setup -q -c -n %{name}-%{version} | |
36 | ||
37 | ||
38 | %build | |
ac78c087 | 39 | JAVA_HOME=/usr/lib/java |
40 | export JAVA_HOME | |
2b804e44 | 41 | ./build -os linux -ws gtk -target compile |
42 | ./build -os linux -ws gtk -target buildDoc | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | ./build -os linux -ws gtk -target install | |
48 | ||
49 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
50 | cp -a . $RPM_BUILD_ROOT%{_datadir}/%{name} | |
51 | ||
52 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name src -exec rm -rf {} \; ||: | |
53 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name temp.folder -exec rm -rf {} \; ||: | |
54 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type f -name build.xml -exec rm -f {} \; ||: | |
55 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type f -name build.properties -exec rm -f {} \; ||: | |
56 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type f -name ".*" -exec rm -f {} \; ||: | |
57 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type f -name "*src.zip" -exec rm -f {} \; ||: | |
58 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*solaris*" -exec rm -rf {} \; ||: | |
59 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*hpux*" -exec rm -rf {} \; ||: | |
60 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*macosx*" -exec rm -rf {} \; ||: | |
61 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*aix*" -exec rm -rf {} \; ||: | |
62 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*win32*" -exec rm -rf {} \; ||: | |
63 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type d -name "*qnx*" -exec rm -rf {} \; ||: | |
64 | ||
65 | # I'm not so sure about that: | |
66 | find $RPM_BUILD_ROOT%{_datadir}/%{name} -type f -name "*.java" -exec rm -f {} \; ||: | |
67 | ||
68 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{build.bat,compilelog.txt,instructions.html,build} | |
69 | ||
2b804e44 | 70 | #desktop file |
f4a571c1 | 71 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
72 | cat > $RPM_BUILD_ROOT%{_desktopdir}/eclipse.desktop << EOF | |
2b804e44 | 73 | [Desktop Entry] |
74 | Name=Eclipse | |
75 | Comment=Eclipse | |
76 | Comment[pl]=Eclipse | |
77 | Exec=eclipse | |
78 | Icon= | |
79 | Terminal=false | |
80 | MultipleArgs=false | |
81 | Type=Application | |
f4a571c1 | 82 | Categories=Application;Development; |
2b804e44 | 83 | # vi: encoding=utf-8 |
84 | EOF | |
85 | ||
86 | #wrapper | |
87 | install -d $RPM_BUILD_ROOT%{_bindir} | |
88 | cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF | |
89 | #!/bin/sh | |
90 | %{_datadir}/%{name}/eclipse -nosplash -data \$HOME/eclipse | |
91 | EOF | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
2b804e44 | 98 | %attr(755,root,root) %{_bindir}/eclipse |
99 | %attr(755,root,root) %{_datadir}/%{name}/eclipse | |
f4a571c1 | 100 | %{_desktopdir}/eclipse.desktop |
2b804e44 | 101 | |
102 | %dir %{_datadir}/%{name} | |
103 | %dir %{_datadir}/%{name}/plugins | |
104 | ||
105 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.source | |
106 | ||
107 | %dir %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk | |
108 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/plugin.properties | |
109 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/eclipse32.gif | |
110 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/about.ini | |
111 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/about.html | |
112 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/libXm.so.2.1 | |
113 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/about.properties | |
114 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/plugin.xml | |
115 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk/about.mappings | |
116 | ||
117 | %{_datadir}/%{name}/plugins/org.eclipse.webdav | |
118 | %{_datadir}/%{name}/plugins/org.eclipse.ui.workbench | |
119 | %{_datadir}/%{name}/plugins/org.eclipse.core.runtime | |
120 | %{_datadir}/%{name}/plugins/org.eclipse.platform.doc.isv | |
121 | %{_datadir}/%{name}/plugins/org.eclipse.update.core | |
122 | %{_datadir}/%{name}/plugins/org.eclipse.jface | |
123 | %{_datadir}/%{name}/plugins/org.eclipse.ui | |
124 | %{_datadir}/%{name}/plugins/org.eclipse.debug.core | |
125 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.launching | |
126 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.core | |
127 | %{_datadir}/%{name}/plugins/org.eclipse.help | |
128 | %{_datadir}/%{name}/plugins/org.eclipse.help.webapp | |
129 | %{_datadir}/%{name}/plugins/org.eclipse.core.resources | |
130 | %{_datadir}/%{name}/plugins/org.eclipse.ant.optional.junit | |
131 | %{_datadir}/%{name}/plugins/org.eclipse.update.ui.forms | |
132 | %{_datadir}/%{name}/plugins/org.eclipse.ui.workbench.texteditor | |
133 | %{_datadir}/%{name}/plugins/org.eclipse.ui.editors | |
134 | %{_datadir}/%{name}/plugins/org.eclipse.team.extras | |
135 | %{_datadir}/%{name}/plugins/org.eclipse.team.cvs.core | |
136 | %{_datadir}/%{name}/plugins/org.eclipse.sdk.linux.gtk | |
137 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.gtk.source | |
138 | %{_datadir}/%{name}/plugins/org.eclipse.pde | |
139 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.junit | |
140 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.doc.user | |
141 | ||
142 | %dir %{_datadir}/%{name}/plugins/org.eclipse.update.core.linux | |
143 | %{_datadir}/%{name}/plugins/org.eclipse.update.core.linux/about.html | |
144 | %{_datadir}/%{name}/plugins/org.eclipse.update.core.linux/fragment.xml | |
2b804e44 | 145 | |
146 | %{_datadir}/%{name}/plugins/org.eclipse.pde.runtime | |
147 | ||
148 | %dir %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk | |
f4a571c1 | 149 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/os/linux/x86/libswt-pi-gtk-*.so |
150 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/os/linux/x86/libswt-gtk-*.so | |
151 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/os/linux/x86/libswt-gnome-gtk-*.so | |
2b804e44 | 152 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/lgpl-v21.txt |
153 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/cpl-v10.html | |
154 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/fragment.xml | |
155 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/about.html | |
156 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/fragment.properties | |
157 | %{_datadir}/%{name}/plugins/org.eclipse.swt.gtk/ws | |
158 | ||
159 | %{_datadir}/%{name}/plugins/org.eclipse.help.ui | |
160 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.ui | |
161 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif.source | |
162 | %{_datadir}/%{name}/plugins/org.eclipse.ui.externaltools | |
163 | %{_datadir}/%{name}/plugins/org.eclipse.tomcat | |
164 | %{_datadir}/%{name}/plugins/org.eclipse.platform | |
165 | %{_datadir}/%{name}/plugins/org.eclipse.platform.doc.user | |
166 | ||
167 | %dir %{_datadir}/%{name}/plugins/org.eclipse.swt.motif | |
f4a571c1 | 168 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/os/linux/x86/libswt-kde-motif-*.so |
169 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/os/linux/x86/libswt-gnome-motif-*.so | |
170 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/os/linux/x86/libswt-motif-*.so | |
2b804e44 | 171 | %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/fragment.xml |
172 | %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/about.html | |
173 | %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/fragment.properties | |
174 | %{_datadir}/%{name}/plugins/org.eclipse.swt.motif/permissions.properties | |
175 | ||
176 | %{_datadir}/%{name}/plugins/org.eclipse.team.core | |
177 | %{_datadir}/%{name}/plugins/org.eclipse.pde.source | |
178 | %{_datadir}/%{name}/plugins/org.eclipse.team.cvs.ssh | |
179 | %{_datadir}/%{name}/plugins/org.eclipse.pde.ui | |
180 | %{_datadir}/%{name}/plugins/org.eclipse.text | |
181 | %{_datadir}/%{name}/plugins/org.junit | |
182 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.debug | |
183 | %{_datadir}/%{name}/plugins/org.eclipse.team.ui | |
184 | %{_datadir}/%{name}/plugins/org.eclipse.debug.ui | |
185 | %{_datadir}/%{name}/plugins/org.eclipse.swt.carbon | |
186 | %{_datadir}/%{name}/plugins/org.eclipse.pde.doc.user | |
187 | %{_datadir}/%{name}/plugins/org.eclipse.pde.core | |
188 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.debug.ui | |
189 | %{_datadir}/%{name}/plugins/org.eclipse.swt.photon | |
190 | %{_datadir}/%{name}/plugins/org.eclipse.jdt | |
191 | %{_datadir}/%{name}/plugins/org.eclipse.pde.build | |
192 | %{_datadir}/%{name}/plugins/org.eclipse.platform.source | |
193 | %{_datadir}/%{name}/plugins/org.eclipse.compare | |
194 | %{_datadir}/%{name}/plugins/org.apache.lucene | |
195 | %{_datadir}/%{name}/plugins/org.eclipse.ui.views | |
196 | %{_datadir}/%{name}/plugins/org.eclipse.sdk.linux.motif | |
197 | ||
198 | %dir %{_datadir}/%{name}/plugins/org.eclipse.core.resources.linux | |
f4a571c1 | 199 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.core.resources.linux/os/linux/x86/libcore_2_1_0a.so |
2b804e44 | 200 | %{_datadir}/%{name}/plugins/org.eclipse.core.resources.linux/fragment.xml |
201 | %{_datadir}/%{name}/plugins/org.eclipse.core.resources.linux/about.html | |
202 | ||
203 | %{_datadir}/%{name}/plugins/org.eclipse.jdt.doc.isv | |
204 | %{_datadir}/%{name}/plugins/org.eclipse.help.appserver | |
205 | %{_datadir}/%{name}/plugins/org.apache.xerces | |
206 | %{_datadir}/%{name}/plugins/org.eclipse.team.cvs.ui | |
207 | %{_datadir}/%{name}/plugins/org.eclipse.team.webdav | |
208 | %{_datadir}/%{name}/plugins/org.eclipse.update.ui | |
209 | %{_datadir}/%{name}/plugins/org.eclipse.team.ftp | |
210 | %{_datadir}/%{name}/plugins/org.eclipse.jface.text | |
211 | ||
212 | %dir %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif | |
213 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/plugin.xml | |
214 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/about.mappings | |
215 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/os/linux/x86/libXm.so.2.1 | |
216 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/plugin.properties | |
217 | %attr(755,root,root) %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/libXm.so.2.1 | |
218 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/eclipse32.gif | |
219 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/about.ini | |
220 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/about.properties | |
221 | %{_datadir}/%{name}/plugins/org.eclipse.platform.linux.motif/about.html | |
222 | ||
223 | %{_datadir}/%{name}/plugins/org.eclipse.search | |
224 | %{_datadir}/%{name}/plugins/org.eclipse.core.boot | |
225 | %{_datadir}/%{name}/plugins/org.apache.ant | |
226 | %{_datadir}/%{name}/plugins/org.eclipse.swt | |
227 | %{_datadir}/%{name}/plugins/org.eclipse.ant.core | |
228 | %{_datadir}/%{name}/plugins/platform-launcher | |
229 | ||
230 | %{_datadir}/%{name}/features | |
231 | %{_datadir}/%{name}/startup.jar | |
232 | %{_datadir}/%{name}/splash.bmp | |
233 | %{_datadir}/%{name}/icon.xpm |