]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- allow using alternate JDKs with %use_jdk and %buildrequires_jdk
authorJacek Konieczny <jajcus@pld-linux.org>
Sun, 18 Apr 2010 19:08:37 +0000 (19:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    java.spec -> 1.47

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.122183 seconds and 4 git commands to generate.