]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - java.spec
- allow using alternate JDKs with %use_jdk and %buildrequires_jdk
[projects/template-specs.git] / java.spec
index 19981fb95b1e050908fd28b2acd9bb00ce9082eb..d7ac8e34d77c9928fe12b3fa482a9329a1a634a7 100644 (file)
--- a/java.spec
+++ b/java.spec
@@ -6,6 +6,10 @@
 
 %include       /usr/lib/rpm/macros.java
 
+# To force building with specific JDK implementation
+# without replacing currently installed /usr/bin/javac, etc.
+#%%define      use_jdk java-gcj-compat
+
 # Name without java- prefix. If it is application, not a library,
 # just do s/srcname/name/g
 %define                srcname         -
@@ -25,7 +29,8 @@ URL:          -
 %if %(locale -a | grep -q '^en_US$'; echo $?)
 BuildRequires: glibc-localedb-all
 %endif
-BuildRequires: jdk
+# allows building with alternate JDK
+%buildrequires_jdk
 BuildRequires: jpackage-utils
 BuildRequires: rpm-javaprov
 BuildRequires: rpmbuild(macros) >= 1.300
This page took 0.041676 seconds and 4 git commands to generate.