]> git.pld-linux.org Git - packages/pl.git/commitdiff
enforce openjdk8
authorJan Palus <atler@pld-linux.org>
Fri, 3 Feb 2023 17:55:36 +0000 (18:55 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 3 Feb 2023 17:55:36 +0000 (18:55 +0100)
pl.spec

diff --git a/pl.spec b/pl.spec
index 0ce8e9f75bb3d6caa709f75106928083acdb7ee8..61a81f8db241314ce66052bce99be9bca2fab10a 100644 (file)
--- a/pl.spec
+++ b/pl.spec
@@ -16,6 +16,8 @@
 # No poin in building debug packages without debug info
 %define                _enable_debug_packages  0
 
+%define                use_jdk                 openjdk8
+
 Summary:       SWI Prolog Language
 Summary(pl.UTF-8):     Język SWI Prolog
 Name:          pl
@@ -38,7 +40,7 @@ BuildRequires:        db-devel
 BuildRequires: fontconfig-devel
 BuildRequires: freetype-devel
 BuildRequires: gmp-devel >= 4.2.0
-%{?with_java:BuildRequires:    jdk}
+%{?with_java:%buildrequires_jdk}
 BuildRequires: libjpeg-devel
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel
@@ -83,7 +85,7 @@ Summary:      Dynamic, bidirectional interface between SWI-Prolog and Java
 Summary(pl.UTF-8):     Dynamiczny, dwukierunkowy interfejs pomiędzy SWI-Prologiem a Javą
 Group:         Development/Languages
 Requires:      %{name} = %{version}-%{release}
-Requires:      jdk
+Requires:      jdk >= 8
 
 %description jpl
 JPL 3.x is a dynamic, bidirectional interface between SWI-Prolog 5.2.0
@@ -165,6 +167,8 @@ Prolog.
 CFLAGS=$(echo %{rpmcflags} | sed 's|-march=[^ ]*||')
 export CFLAGS
 
+%{?with_java:export JAVA_HOME="%{java_home}"}
+
 cd src
 cp -f /usr/share/automake/config.sub .
 %{__aclocal}
This page took 0.214566 seconds and 4 git commands to generate.