]>
Commit | Line | Data |
---|---|---|
b215e0f3 | 1 | # |
851bf794 JB |
2 | # TODO: split (awt-gtk, midi-alsa, midi-dssi, ???-qt, ???-gconf, ???-gstreamer, browser???, tools, devel-tools) |
3 | # | |
b215e0f3 | 4 | # Conditional build: |
475ef45e | 5 | %bcond_with gcj # use gcj instead of jdk [broken] |
dc21371e PS |
6 | %bcond_with apidocs # prepare API documentation (over 200MB) |
7 | # | |
270aae70 | 8 | Summary: GNU Classpath (Essential Libraries for Java) |
76281c76 | 9 | Summary(pl.UTF-8): GNU Classpath (Najważniejsze biblioteki dla Javy) |
270aae70 | 10 | Name: classpath |
b3020aa2 | 11 | Version: 0.97.2 |
851bf794 JB |
12 | Release: 0.1 |
13 | License: GPL v2+ with linking exception | |
270aae70 | 14 | Group: Libraries |
3a4db645 | 15 | Source0: http://ftp.gnu.org/gnu/classpath/%{name}-%{version}.tar.gz |
b3020aa2 | 16 | # Source0-md5: 6a35347901ace03c31cc49751b338f31 |
7a1d724e | 17 | Patch0: %{name}-info.patch |
270aae70 | 18 | URL: http://www.gnu.org/software/classpath/classpath.html |
851bf794 JB |
19 | BuildRequires: QtCore-devel >= 4.1.0 |
20 | BuildRequires: QtGui-devel >= 4.1.0 | |
21 | BuildRequires: GConf2-devel >= 2.6.0 | |
aeec3c88 | 22 | BuildRequires: alsa-lib-devel |
270aae70 | 23 | BuildRequires: autoconf >= 2.59 |
01137a2b | 24 | BuildRequires: automake >= 1:1.7 |
851bf794 JB |
25 | BuildRequires: cairo-devel >= 1.1.8 |
26 | BuildRequires: dssi | |
aeec3c88 | 27 | %{?with_gcj:BuildRequires: gcc-java >= 5:4.0.2} |
dc21371e | 28 | %{?with_apidocs:BuildRequires: gjdoc} |
851bf794 JB |
29 | BuildRequires: gstreamer-devel >= 0.10.10 |
30 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.10 | |
31 | BuildRequires: gtk+2-devel >= 2:2.8 | |
475ef45e | 32 | %{!?with_gcj:BuildRequires: jdk >= 1.5} |
851bf794 JB |
33 | BuildRequires: libmagic-devel |
34 | BuildRequires: libstdc++-devel | |
270aae70 | 35 | BuildRequires: libtool >= 1.4.2 |
851bf794 JB |
36 | BuildRequires: libxml2-devel >= 1:2.6.8 |
37 | BuildRequires: libxslt-devel >= 1.1.11 | |
eb3d2039 | 38 | BuildRequires: perl-base |
d833cdc8 | 39 | BuildRequires: pkgconfig |
ab28b1f3 | 40 | BuildRequires: qt4-build >= 4.3.3-3 |
270aae70 | 41 | BuildRequires: texinfo >= 4.2 |
851bf794 JB |
42 | BuildRequires: xorg-lib-libXrandr-devel |
43 | BuildRequires: xorg-lib-libXrender-devel | |
44 | BuildRequires: xorg-lib-libXtst-devel | |
45 | BuildRequires: xulrunner-devel >= 1.8 | |
cb9ba31c | 46 | BuildRequires: zip |
270aae70 | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
50 | GNU Classpath (Essential Libraries for Java) is a project to create | |
51 | free core class libraries for use with virtual machines and compilers | |
52 | for the Java language. It includes all native methods and core classes | |
53 | necessary for a completely functional Java runtime. | |
54 | ||
fac0b156 | 55 | %description -l pl.UTF-8 |
851bf794 JB |
56 | GNU Classpath (najważniejsze biblioteki Javy) to projekt stworzenia |
57 | wolnodostępnych bibliotek klas podstawowych do wykorzystania z | |
58 | wirtualnymi maszynami i kompilatorami języka Java. Zawiera wszystkie | |
59 | natywne metody i główne klasy niezbędne dla kompletnej funkcjonalności | |
60 | środowiska Javy. | |
282c4432 | 61 | |
dc21371e PS |
62 | %package apidocs |
63 | Summary: API documentation | |
76281c76 | 64 | Summary(pl.UTF-8): Dokumentacja API |
dc21371e PS |
65 | Group: Documentation |
66 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
67 | ||
68 | %description apidocs | |
69 | Annotated reference of GNU Classpath libraries programming interface including: | |
70 | - class lists | |
71 | - class members | |
72 | - namespaces | |
73 | ||
fac0b156 | 74 | %description apidocs -l pl.UTF-8 |
dc21371e PS |
75 | Dokumentacja interfejsu programowania bibliotek GNU Classpath z przypisami. |
76 | Zawiera: | |
fac0b156 JR |
77 | - listy klas i ich składników |
78 | - listę przestrzeni nazw (namespace) | |
dc21371e | 79 | |
6afa14a4 PS |
80 | %package devel |
81 | Summary: Development files for GNU Classpath | |
76281c76 | 82 | Summary(pl.UTF-8): Pliki dla programistów używających GNU Classpath |
6afa14a4 | 83 | Group: Development/Libraries |
851bf794 JB |
84 | Obsoletes: classpath-static |
85 | # doesn't require base | |
6afa14a4 PS |
86 | |
87 | %description devel | |
88 | GNU Classpath (Essential Libraries for Java) - development files. | |
89 | ||
fac0b156 JR |
90 | %description devel -l pl.UTF-8 |
91 | GNU Classpath (Najważniejsze biblioteki dla Javy) - pliki dla | |
92 | programistów. | |
6afa14a4 | 93 | |
fd53dd0d | 94 | %package tools |
95 | Summary: Shared Java tools | |
96 | Summary(pl.UTF-8): Współdzielone narzędzia Javy | |
97 | Group: Development/Languages/Java | |
98 | Requires: %{name} = %{version}-%{release} | |
99 | Provides: jar | |
100 | Provides: java-jre-tools | |
101 | Provides: java-shared | |
102 | Obsoletes: fastjar | |
103 | Obsoletes: jar | |
104 | Obsoletes: java-jre-tools | |
105 | Obsoletes: java-shared | |
106 | ||
107 | %description tools | |
108 | GNU Classpath java tools. | |
109 | ||
110 | %description tools -l pl.UTF-8 | |
111 | Narzędzia dla javy GNU Classpath. | |
112 | ||
113 | %package tools-devel | |
114 | Summary: Shared java tools development files | |
115 | Group: Development/Languages/Java | |
116 | Requires: %{name}-tools = %{version}-%{release} | |
117 | ||
118 | %description tools-devel | |
119 | GNU Classpath java tools development files. | |
120 | ||
270aae70 | 121 | %prep |
122 | %setup -q | |
7a1d724e | 123 | %patch0 -p1 |
270aae70 | 124 | |
125 | %build | |
270aae70 | 126 | %configure \ |
475ef45e | 127 | JAVAC="%{?with_gcj:gcj -C}%{!?with_gcj:javac}" \ |
ab28b1f3 | 128 | MOC=moc-qt4 \ |
53a5b0ca | 129 | --%{?debug:en}%{!?debug:dis}able-debug \ |
851bf794 | 130 | --enable-gstreamer-peer \ |
270aae70 | 131 | --enable-gtk-peer \ |
7a1d724e JB |
132 | --enable-java \ |
133 | --enable-jni \ | |
270aae70 | 134 | --enable-load-library \ |
851bf794 JB |
135 | --enable-qt-peer \ |
136 | --enable-xmlj \ | |
dc21371e | 137 | --with%{!?with_apidocs:out}-gjdoc \ |
475ef45e | 138 | --with-javah=%{?with_gcj:gcjh}%{!?with_gcj:javah} \ |
b215e0f3 | 139 | --disable-examples |
9ee99d1d | 140 | |
851bf794 | 141 | %{__make} |
270aae70 | 142 | |
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
dc21371e | 145 | install -d $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}/%{name}-%{version}-apidocs} |
9ee99d1d | 146 | |
270aae70 | 147 | %{__make} install \ |
851bf794 | 148 | DESTDIR=$RPM_BUILD_ROOT |
9ee99d1d | 149 | |
dc21371e PS |
150 | %if %{with apidocs} |
151 | cp -afr doc/api/html/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}-apidocs | |
152 | %endif | |
153 | ||
851bf794 JB |
154 | rm -f $RPM_BUILD_ROOT%{_libdir}/classpath/*.la |
155 | ||
270aae70 | 156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
475ef45e | 159 | %post devel -p /sbin/postshell |
fd64271d | 160 | -/usr/sbin/fix-info-dir -c %{_infodir} |
aeec3c88 | 161 | |
475ef45e | 162 | %postun devel -p /sbin/postshell |
2d4ff92a | 163 | -/usr/sbin/fix-info-dir -c %{_infodir} |
eb3d2039 | 164 | |
270aae70 | 165 | %files |
166 | %defattr(644,root,root,755) | |
aeec3c88 | 167 | %doc AUTHORS BUGS ChangeLog NEWS README THANKYOU TODO |
bed4f9d3 | 168 | %dir %{_libdir}/classpath |
851bf794 JB |
169 | %attr(755,root,root) %{_libdir}/classpath/libgcjwebplugin.so |
170 | %attr(755,root,root) %{_libdir}/classpath/libgconfpeer.so | |
171 | %attr(755,root,root) %{_libdir}/classpath/libgjsmalsa.so | |
172 | %attr(755,root,root) %{_libdir}/classpath/libgjsmdssi.so | |
173 | %attr(755,root,root) %{_libdir}/classpath/libgstreamerpeer.so | |
174 | %attr(755,root,root) %{_libdir}/classpath/libgtkpeer.so | |
175 | %attr(755,root,root) %{_libdir}/classpath/libjavaio.so* | |
176 | %attr(755,root,root) %{_libdir}/classpath/libjavalang.so* | |
177 | %attr(755,root,root) %{_libdir}/classpath/libjavalangmanagement.so* | |
178 | %attr(755,root,root) %{_libdir}/classpath/libjavalangreflect.so* | |
179 | %attr(755,root,root) %{_libdir}/classpath/libjavanet.so* | |
180 | %attr(755,root,root) %{_libdir}/classpath/libjavanio.so* | |
181 | %attr(755,root,root) %{_libdir}/classpath/libjavautil.so* | |
182 | %attr(755,root,root) %{_libdir}/classpath/libjawt.so | |
183 | %attr(755,root,root) %{_libdir}/classpath/libqtpeer.so | |
184 | %attr(755,root,root) %{_libdir}/classpath/libxmlj.so* | |
185 | %dir %{_libdir}/security | |
186 | %{_libdir}/security/classpath.security | |
187 | %{_libdir}/logging.properties | |
188 | %dir %{_datadir}/classpath | |
aeec3c88 | 189 | %{_datadir}/classpath/glibj.zip |
851bf794 JB |
190 | %{_datadir}/classpath/tools.zip |
191 | ||
fd53dd0d | 192 | %files tools |
851bf794 JB |
193 | %attr(755,root,root) %{_bindir}/gappletviewer |
194 | %attr(755,root,root) %{_bindir}/gkeytool | |
195 | %attr(755,root,root) %{_bindir}/gorbd | |
196 | %attr(755,root,root) %{_bindir}/grmid | |
197 | %attr(755,root,root) %{_bindir}/grmiregistry | |
198 | %attr(755,root,root) %{_bindir}/gtnameserv | |
199 | %{_mandir}/man1/gappletviewer.1* | |
200 | %{_mandir}/man1/gkeytool.1* | |
201 | %{_mandir}/man1/gorbd.1* | |
202 | %{_mandir}/man1/grmid.1* | |
203 | %{_mandir}/man1/grmiregistry.1* | |
204 | %{_mandir}/man1/gtnameserv.1* | |
205 | ||
fd53dd0d | 206 | %files tools-devel |
851bf794 JB |
207 | %attr(755,root,root) %{_bindir}/gjar |
208 | %attr(755,root,root) %{_bindir}/gjarsigner | |
209 | %attr(755,root,root) %{_bindir}/gjavah | |
210 | %attr(755,root,root) %{_bindir}/gnative2ascii | |
211 | %attr(755,root,root) %{_bindir}/grmic | |
212 | %attr(755,root,root) %{_bindir}/gserialver | |
213 | %{_mandir}/man1/gjar.1* | |
214 | %{_mandir}/man1/gjarsigner.1* | |
215 | %{_mandir}/man1/gjavah.1* | |
216 | %{_mandir}/man1/gnative2ascii.1* | |
217 | %{_mandir}/man1/gserialver.1* | |
218 | # no bin | |
219 | #%{_mandir}/man1/gcjh.1* | |
6afa14a4 | 220 | |
dc21371e PS |
221 | %if %{with apidocs} |
222 | %files apidocs | |
223 | %defattr(644,root,root,755) | |
224 | %{_javadocdir}/%{name}-%{version}-apidocs | |
225 | %endif | |
226 | ||
6afa14a4 PS |
227 | %files devel |
228 | %defattr(644,root,root,755) | |
851bf794 JB |
229 | %{_includedir}/jawt.h |
230 | %{_includedir}/jawt_md.h | |
231 | %{_includedir}/jni.h | |
232 | %{_includedir}/jni_md.h | |
233 | %{_infodir}/cp-hacking.info* | |
234 | %{_infodir}/cp-tools.info* | |
235 | %{_infodir}/cp-vmintegration.info* |