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