]>
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 |
3a4db645 | 11 | Version: 0.97.1 |
851bf794 JB |
12 | Release: 0.1 |
13 | License: GPL v2+ with linking exception | |
270aae70 | 14 | Group: Libraries |
3a4db645 JB |
15 | Source0: http://ftp.gnu.org/gnu/classpath/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 35e81f0e0055a8b8a7a879077cf2b3c6 | |
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 | |
270aae70 | 94 | %prep |
95 | %setup -q | |
7a1d724e | 96 | %patch0 -p1 |
270aae70 | 97 | |
98 | %build | |
270aae70 | 99 | %configure \ |
475ef45e | 100 | JAVAC="%{?with_gcj:gcj -C}%{!?with_gcj:javac}" \ |
ab28b1f3 | 101 | MOC=moc-qt4 \ |
53a5b0ca | 102 | --%{?debug:en}%{!?debug:dis}able-debug \ |
851bf794 | 103 | --enable-gstreamer-peer \ |
270aae70 | 104 | --enable-gtk-peer \ |
7a1d724e JB |
105 | --enable-java \ |
106 | --enable-jni \ | |
270aae70 | 107 | --enable-load-library \ |
851bf794 JB |
108 | --enable-qt-peer \ |
109 | --enable-xmlj \ | |
dc21371e | 110 | --with%{!?with_apidocs:out}-gjdoc \ |
475ef45e | 111 | --with-javah=%{?with_gcj:gcjh}%{!?with_gcj:javah} \ |
b215e0f3 | 112 | --disable-examples |
9ee99d1d | 113 | |
851bf794 | 114 | %{__make} |
270aae70 | 115 | |
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
dc21371e | 118 | install -d $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}/%{name}-%{version}-apidocs} |
9ee99d1d | 119 | |
270aae70 | 120 | %{__make} install \ |
851bf794 | 121 | DESTDIR=$RPM_BUILD_ROOT |
9ee99d1d | 122 | |
dc21371e PS |
123 | %if %{with apidocs} |
124 | cp -afr doc/api/html/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}-apidocs | |
125 | %endif | |
126 | ||
851bf794 JB |
127 | rm -f $RPM_BUILD_ROOT%{_libdir}/classpath/*.la |
128 | ||
270aae70 | 129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
475ef45e | 132 | %post devel -p /sbin/postshell |
fd64271d | 133 | -/usr/sbin/fix-info-dir -c %{_infodir} |
aeec3c88 | 134 | |
475ef45e | 135 | %postun devel -p /sbin/postshell |
2d4ff92a | 136 | -/usr/sbin/fix-info-dir -c %{_infodir} |
eb3d2039 | 137 | |
270aae70 | 138 | %files |
139 | %defattr(644,root,root,755) | |
aeec3c88 | 140 | %doc AUTHORS BUGS ChangeLog NEWS README THANKYOU TODO |
bed4f9d3 | 141 | %dir %{_libdir}/classpath |
851bf794 JB |
142 | %attr(755,root,root) %{_libdir}/classpath/libgcjwebplugin.so |
143 | %attr(755,root,root) %{_libdir}/classpath/libgconfpeer.so | |
144 | %attr(755,root,root) %{_libdir}/classpath/libgjsmalsa.so | |
145 | %attr(755,root,root) %{_libdir}/classpath/libgjsmdssi.so | |
146 | %attr(755,root,root) %{_libdir}/classpath/libgstreamerpeer.so | |
147 | %attr(755,root,root) %{_libdir}/classpath/libgtkpeer.so | |
148 | %attr(755,root,root) %{_libdir}/classpath/libjavaio.so* | |
149 | %attr(755,root,root) %{_libdir}/classpath/libjavalang.so* | |
150 | %attr(755,root,root) %{_libdir}/classpath/libjavalangmanagement.so* | |
151 | %attr(755,root,root) %{_libdir}/classpath/libjavalangreflect.so* | |
152 | %attr(755,root,root) %{_libdir}/classpath/libjavanet.so* | |
153 | %attr(755,root,root) %{_libdir}/classpath/libjavanio.so* | |
154 | %attr(755,root,root) %{_libdir}/classpath/libjavautil.so* | |
155 | %attr(755,root,root) %{_libdir}/classpath/libjawt.so | |
156 | %attr(755,root,root) %{_libdir}/classpath/libqtpeer.so | |
157 | %attr(755,root,root) %{_libdir}/classpath/libxmlj.so* | |
158 | %dir %{_libdir}/security | |
159 | %{_libdir}/security/classpath.security | |
160 | %{_libdir}/logging.properties | |
161 | %dir %{_datadir}/classpath | |
aeec3c88 | 162 | %{_datadir}/classpath/glibj.zip |
851bf794 JB |
163 | %{_datadir}/classpath/tools.zip |
164 | ||
165 | # tools | |
166 | %attr(755,root,root) %{_bindir}/gappletviewer | |
167 | %attr(755,root,root) %{_bindir}/gkeytool | |
168 | %attr(755,root,root) %{_bindir}/gorbd | |
169 | %attr(755,root,root) %{_bindir}/grmid | |
170 | %attr(755,root,root) %{_bindir}/grmiregistry | |
171 | %attr(755,root,root) %{_bindir}/gtnameserv | |
172 | %{_mandir}/man1/gappletviewer.1* | |
173 | %{_mandir}/man1/gkeytool.1* | |
174 | %{_mandir}/man1/gorbd.1* | |
175 | %{_mandir}/man1/grmid.1* | |
176 | %{_mandir}/man1/grmiregistry.1* | |
177 | %{_mandir}/man1/gtnameserv.1* | |
178 | ||
179 | # tools-devel | |
180 | %attr(755,root,root) %{_bindir}/gjar | |
181 | %attr(755,root,root) %{_bindir}/gjarsigner | |
182 | %attr(755,root,root) %{_bindir}/gjavah | |
183 | %attr(755,root,root) %{_bindir}/gnative2ascii | |
184 | %attr(755,root,root) %{_bindir}/grmic | |
185 | %attr(755,root,root) %{_bindir}/gserialver | |
186 | %{_mandir}/man1/gjar.1* | |
187 | %{_mandir}/man1/gjarsigner.1* | |
188 | %{_mandir}/man1/gjavah.1* | |
189 | %{_mandir}/man1/gnative2ascii.1* | |
190 | %{_mandir}/man1/gserialver.1* | |
191 | # no bin | |
192 | #%{_mandir}/man1/gcjh.1* | |
6afa14a4 | 193 | |
dc21371e PS |
194 | %if %{with apidocs} |
195 | %files apidocs | |
196 | %defattr(644,root,root,755) | |
197 | %{_javadocdir}/%{name}-%{version}-apidocs | |
198 | %endif | |
199 | ||
6afa14a4 PS |
200 | %files devel |
201 | %defattr(644,root,root,755) | |
851bf794 JB |
202 | %{_includedir}/jawt.h |
203 | %{_includedir}/jawt_md.h | |
204 | %{_includedir}/jni.h | |
205 | %{_includedir}/jni_md.h | |
206 | %{_infodir}/cp-hacking.info* | |
207 | %{_infodir}/cp-tools.info* | |
208 | %{_infodir}/cp-vmintegration.info* |