diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | scripts/classpath.spec.in | 66 |
3 files changed, 72 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2005-03-22 Archie Cobbs <archie@dellroad.org> + + * configure.ac: Generate scripts/classpath.spec. + * scripts/classpath.spec.in: New file. + 2005-03-21 Audrius Meskauskas <audriusa@bluewin.ch> * gnu/xml/dom/html2/DomHTMLParser.java: New file. diff --git a/configure.ac b/configure.ac index a3c15c1ab..727bee3e0 100644 --- a/configure.ac +++ b/configure.ac @@ -424,6 +424,7 @@ native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile +scripts/classpath.spec lib/Makefile lib/gen-classlist.sh examples/Makefile]) diff --git a/scripts/classpath.spec.in b/scripts/classpath.spec.in new file mode 100644 index 000000000..66af9ca27 --- /dev/null +++ b/scripts/classpath.spec.in @@ -0,0 +1,66 @@ +# $Id: classpath.spec.in,v 1.1 2005-03-22 19:06:33 archie172 Exp $ + +%define version_num @PACKAGE_VERSION@ +%define release_num 1 + +Summary: GNU Classpath Java class libraries +Name: classpath +Version: %{version_num} +Release: %{release_num} +Group: Development/Tools +Copyright: GPL+exception +URL: http://www.classpath.org/ +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: jikes, zip +Packager: GNU Classpath <classpath@gnu.org> +Source: ftp://ftp.gnu.org/pub/gnu/classpath/classpath-%{version_num}.tar.gz + +%description +GNU Classpath, Essential Libraries for Java, is a GNU project to create +free core class libraries for use with virtual machines and compilers +for the Java programming language. + +%prep +%setup -n classpath-%{version_num} + +%build +pushd ${RPM_BUILD_DIR}/classpath-%{version_num} +# Determine if we can build the GTK stuff +GTKPEER='disable' +if pkg-config --exists 'gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 libart-2.0 gdk-pixbuf-2.0'; then + GTKPEER='enable' +fi +%configure --with-jikes --enable-jni --${GTKPEER}-gtk-peer +make +popd + +%install +pushd ${RPM_BUILD_DIR}/classpath-%{version_num} +%{makeinstall} +popd + +pushd ${RPM_BUILD_ROOT}/%{_infodir} +rm -f dir +for i in *; do + mv $i classpath-$i +done +popd + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING LICENSE README THANKYOU +%{_libdir}/classpath +%dir %{_datadir}/classpath +%{_libdir}/security/classpath.security +%{_datadir}/classpath/glibj.zip +%doc %{_datadir}/classpath/api +%doc %{_datadir}/classpath/examples +%doc %{_infodir}/* + |