Fixed builds for CentOS 7
This commit is contained in:
parent
112a9bf87c
commit
6821ae2744
13
ldapjdk.spec
13
ldapjdk.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: ldapjdk
|
Name: ldapjdk
|
||||||
Version: 4.19
|
Version: 4.19
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: The Mozilla LDAP Java SDK
|
Summary: The Mozilla LDAP Java SDK
|
||||||
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||||
@ -28,7 +28,11 @@ Requires: jpackage-utils >= 0:1.5
|
|||||||
Requires: jss
|
Requires: jss
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
|
%if 0%{?rhel}
|
||||||
|
BuildRequires: jpackage-utils >= 0:1.5
|
||||||
|
%else
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
|
%endif
|
||||||
BuildRequires: jss
|
BuildRequires: jss
|
||||||
|
|
||||||
Provides: jndi-ldap = 1.3.0
|
Provides: jndi-ldap = 1.3.0
|
||||||
@ -58,8 +62,12 @@ rm -f ./java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar
|
|||||||
rm -fr $(find . -name CVS -type d)
|
rm -fr $(find . -name CVS -type d)
|
||||||
# Link to build-system BRs
|
# Link to build-system BRs
|
||||||
pwd
|
pwd
|
||||||
|
%if 0%{?rhel}
|
||||||
|
( cd java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 jsse jaas jndi )
|
||||||
|
%else
|
||||||
( cd java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 )
|
( cd java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 )
|
||||||
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
||||||
|
%endif
|
||||||
cd java-sdk
|
cd java-sdk
|
||||||
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
|
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
|
||||||
sh -x ant dist
|
sh -x ant dist
|
||||||
@ -99,6 +107,9 @@ cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|||||||
%{_javadocdir}/%{name}/*
|
%{_javadocdir}/%{name}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 12 2017 Matthew Harmsen <mharmsen@redhat.com> 0:4.19-5
|
||||||
|
- Fix build for CentOS 7
|
||||||
|
|
||||||
* Wed Oct 11 2017 Matthew Harmsen <mharmsen@redhat.com> 0:4.19-4
|
* Wed Oct 11 2017 Matthew Harmsen <mharmsen@redhat.com> 0:4.19-4
|
||||||
- Mozilla Bug #1376300 - Missing getter methods in JDAPFilter classes
|
- Mozilla Bug #1376300 - Missing getter methods in JDAPFilter classes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user