summaryrefslogtreecommitdiff
path: root/libjava/classpath/scripts/classpath.spec.in
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/classpath/scripts/classpath.spec.in
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'libjava/classpath/scripts/classpath.spec.in')
-rw-r--r--libjava/classpath/scripts/classpath.spec.in66
1 files changed, 66 insertions, 0 deletions
diff --git a/libjava/classpath/scripts/classpath.spec.in b/libjava/classpath/scripts/classpath.spec.in
new file mode 100644
index 000000000..4120d2550
--- /dev/null
+++ b/libjava/classpath/scripts/classpath.spec.in
@@ -0,0 +1,66 @@
+# $Id: classpath.spec.in,v 1.3 2006/12/10 20:25:50 gnu_andrew 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 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}/*
+