import ldapjdk-5.0.0-1.el9
This commit is contained in:
parent
09a6dda89d
commit
2d67b4bf4e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/ldap-sdk-5.0.0-alpha1.tar.gz
|
||||
SOURCES/ldap-sdk-5.0.0.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
6c759d6ac17f365cb34a26ddab2e22ca1aa9b255 SOURCES/ldap-sdk-5.0.0-alpha1.tar.gz
|
||||
4398c56637bf8bb815b52de6a8bbca5d71abd03a SOURCES/ldap-sdk-5.0.0.tar.gz
|
||||
|
@ -11,12 +11,8 @@ BuildArch: noarch
|
||||
# For development (i.e. unsupported) releases, use x.y.z-0.n.<phase>.
|
||||
# For official (i.e. supported) releases, use x.y.z-r where r >=1.
|
||||
Version: 5.0.0
|
||||
Release: 0.3.alpha1%{?_timestamp}%{?_commit_id}%{?dist}
|
||||
%global _phase -alpha1
|
||||
|
||||
%global spname ldapsp
|
||||
%global filtname ldapfilt
|
||||
%global beansname ldapbeans
|
||||
Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
|
||||
#global _phase -alpha1
|
||||
|
||||
# To create a tarball from a version tag:
|
||||
# $ git archive \
|
||||
@ -39,15 +35,7 @@ Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?_phase}/ldap
|
||||
|
||||
%define java_devel java-11-openjdk-devel
|
||||
%define java_headless java-11-openjdk-headless
|
||||
%define java_home /usr/lib/jvm/java-11-openjdk
|
||||
|
||||
################################################################################
|
||||
# Build Options
|
||||
################################################################################
|
||||
|
||||
# Do not build javadoc package unless --with javadoc option is specified.
|
||||
|
||||
%bcond_with javadoc
|
||||
%define java_home /usr/lib/jvm/jre-11-openjdk
|
||||
|
||||
################################################################################
|
||||
# Build Dependencies
|
||||
@ -76,16 +64,14 @@ manage, and update the information stored in an LDAP directory.
|
||||
|
||||
%license docs/ldapjdk/license.txt
|
||||
|
||||
%if %{with javadoc}
|
||||
################################################################################
|
||||
%package javadoc
|
||||
################################################################################
|
||||
|
||||
Summary: Javadoc for %{name}
|
||||
Summary: Javadoc for LDAP SDK
|
||||
|
||||
%description javadoc
|
||||
Javadoc for %{name}
|
||||
%endif
|
||||
Javadoc for LDAP SDK
|
||||
|
||||
################################################################################
|
||||
%prep
|
||||
@ -93,69 +79,54 @@ Javadoc for %{name}
|
||||
|
||||
%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1
|
||||
|
||||
# Remove all bundled jars, we must build against build-system jars
|
||||
rm -f ./java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar
|
||||
|
||||
################################################################################
|
||||
%build
|
||||
################################################################################
|
||||
|
||||
pushd java-sdk/ldapjdk/lib
|
||||
build-jar-repository -s -p . jss
|
||||
popd
|
||||
|
||||
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
||||
|
||||
pushd java-sdk
|
||||
export JAVA_HOME=%{java_home}
|
||||
sh -x ant dist
|
||||
popd
|
||||
|
||||
./build.sh \
|
||||
%{?_verbose:-v} \
|
||||
--work-dir=%{_vpath_builddir} \
|
||||
dist
|
||||
|
||||
################################################################################
|
||||
%install
|
||||
################################################################################
|
||||
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 java-sdk/dist/packages/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
install -m 644 java-sdk/dist/packages/%{spname}.jar $RPM_BUILD_ROOT%{_javadir}/%{spname}.jar
|
||||
install -m 644 java-sdk/dist/packages/%{filtname}.jar $RPM_BUILD_ROOT%{_javadir}/%{filtname}.jar
|
||||
install -m 644 java-sdk/dist/packages/%{beansname}.jar $RPM_BUILD_ROOT%{_javadir}/%{beansname}.jar
|
||||
|
||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 java-sdk/ldapjdk/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapjdk.pom
|
||||
install -pm 644 java-sdk/ldapfilter/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapfilter.pom
|
||||
install -pm 644 java-sdk/ldapbeans/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapbeans.pom
|
||||
install -pm 644 java-sdk/ldapsp/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapsp.pom
|
||||
|
||||
%if %{with javadoc}
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
%endif
|
||||
./build.sh \
|
||||
%{?_verbose:-v} \
|
||||
--work-dir=%{_vpath_builddir} \
|
||||
--java-lib-dir=%{_javadir} \
|
||||
--javadoc-dir=%{_javadocdir} \
|
||||
--install-dir=%{buildroot} \
|
||||
install
|
||||
|
||||
################################################################################
|
||||
%files
|
||||
################################################################################
|
||||
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{spname}*.jar
|
||||
%{_javadir}/%{filtname}*.jar
|
||||
%{_javadir}/%{beansname}*.jar
|
||||
%{_javadir}/ldapjdk.jar
|
||||
%{_javadir}/ldapsp.jar
|
||||
%{_javadir}/ldapfilt.jar
|
||||
%{_javadir}/ldapbeans.jar
|
||||
%{_mavenpomdir}/JPP-ldapjdk.pom
|
||||
%{_mavenpomdir}/JPP-ldapsp.pom
|
||||
%{_mavenpomdir}/JPP-ldapfilter.pom
|
||||
%{_mavenpomdir}/JPP-ldapbeans.pom
|
||||
|
||||
%if %{with javadoc}
|
||||
################################################################################
|
||||
%files javadoc
|
||||
################################################################################
|
||||
|
||||
%dir %{_javadocdir}/%{name}
|
||||
%{_javadocdir}/%{name}/*
|
||||
%endif
|
||||
%dir %{_javadocdir}/ldapjdk
|
||||
%{_javadocdir}/ldapjdk/*
|
||||
|
||||
################################################################################
|
||||
%changelog
|
||||
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-1
|
||||
- Rebase to LDAP SDK 5.0.0
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.0.0-0.3.alpha1
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
Loading…
Reference in New Issue
Block a user