Rebase to LDAP SDK 5.5.0-alpha4

Resolves: https://issues.redhat.com/browse/RHEL-12302
side-tag: c9s-build-side-2633-stack-gate
This commit is contained in:
Endi S. Dewata 2023-12-07 06:10:58 +07:00
parent caa1dfd556
commit 2f9b29c19d
3 changed files with 39 additions and 34 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ ldapjdk-4.18.tar.gz
/ldap-sdk-5.3.0-beta1.tar.gz
/ldap-sdk-5.3.0.tar.gz
/ldap-sdk-5.4.0.tar.gz
/ldap-sdk-5.5.0-alpha4.tar.gz

View File

@ -6,26 +6,26 @@ Name: ldapjdk
# Upstream version number:
%global major_version 5
%global minor_version 4
%global minor_version 5
%global update_version 0
# Downstream release number:
# - development/stabilization (unsupported): 0.<n> where n >= 1
# - GA/update (supported): <n> where n >= 1
%global release_number 1
%global release_number 0.1
# Development phase:
# - development (unsupported): alpha<n> where n >= 1
# - stabilization (unsupported): beta<n> where n >= 1
# - GA/update (supported): <none>
#global phase
%global phase alpha4
%undefine timestamp
%undefine commit_id
Summary: LDAP SDK
URL: https://github.com/dogtagpki/ldap-sdk
License: MPLv1.1 or GPLv2+ or LGPLv2+
License: MPL-1.1 or GPL-2.0-or-later or LGPL-2.1-or-later
Version: %{major_version}.%{minor_version}.%{update_version}
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
@ -45,6 +45,9 @@ Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?phase:-}%{?p
# Patch: ldap-sdk-VERSION-RELEASE.patch
BuildArch: noarch
%if 0%{?java_arches:1}
ExclusiveArch: %{java_arches} noarch
%endif
################################################################################
# Java
@ -60,10 +63,10 @@ BuildArch: noarch
BuildRequires: ant
BuildRequires: %{java_devel}
BuildRequires: javapackages-local
BuildRequires: slf4j
BuildRequires: slf4j-jdk14
BuildRequires: jss = 5.4
BuildRequires: maven-local
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
BuildRequires: mvn(org.dogtagpki.jss:jss-base) >= 5.5.0
%description
The Mozilla LDAP SDKs enable you to write applications which access,
@ -76,10 +79,9 @@ manage, and update the information stored in an LDAP directory.
Summary: LDAP SDK
Requires: %{java_headless}
Requires: jpackage-utils >= 0:1.5
Requires: slf4j
Requires: slf4j-jdk14
Requires: jss = 5.4
Requires: mvn(org.slf4j:slf4j-api)
Requires: mvn(org.slf4j:slf4j-jdk14)
Requires: mvn(org.dogtagpki.jss:jss-base) >= 5.5.0
Obsoletes: ldapjdk < %{version}-%{release}
Provides: ldapjdk = %{version}-%{release}
@ -112,38 +114,40 @@ Javadoc for LDAP SDK
%autosetup -n ldap-sdk-%{version}%{?phase:-}%{?phase} -p 1
# flatten-maven-plugin is not available in RPM
%pom_remove_plugin org.codehaus.mojo:flatten-maven-plugin
# specify Maven artifact locations
%mvn_file org.dogtagpki.ldap-sdk:ldapjdk ldapjdk/ldapjdk ldapjdk
%mvn_file org.dogtagpki.ldap-sdk:ldapbeans ldapjdk/ldapbeans ldapbeans
%mvn_file org.dogtagpki.ldap-sdk:ldapfilter ldapjdk/ldapfilter ldapfilt
%mvn_file org.dogtagpki.ldap-sdk:ldapsp ldapjdk/ldapsp ldapsp
%mvn_file org.dogtagpki.ldap-sdk:ldaptools ldapjdk/ldaptools ldaptools
################################################################################
%build
################################################################################
export JAVA_HOME=%{java_home}
./build.sh \
%{?_verbose:-v} \
--work-dir=%{_vpath_builddir} \
dist
%mvn_build
################################################################################
%install
################################################################################
./build.sh \
%{?_verbose:-v} \
--work-dir=%{_vpath_builddir} \
--java-lib-dir=%{_javadir} \
--javadoc-dir=%{_javadocdir} \
--install-dir=%{buildroot} \
install
%mvn_install
ln -sf %{name}/ldapjdk.pom %{buildroot}%{_mavenpomdir}/JPP-ldapjdk.pom
ln -sf %{name}/ldapsp.pom %{buildroot}%{_mavenpomdir}/JPP-ldapsp.pom
ln -sf %{name}/ldapfilter.pom %{buildroot}%{_mavenpomdir}/JPP-ldapfilter.pom
ln -sf %{name}/ldapbeans.pom %{buildroot}%{_mavenpomdir}/JPP-ldapbeans.pom
ln -sf %{name}/ldaptools.pom %{buildroot}%{_mavenpomdir}/JPP-ldaptools.pom
################################################################################
%files -n %{product_id}
%files -n %{product_id} -f .mfiles
################################################################################
%{_javadir}/ldapjdk.jar
%{_javadir}/ldapsp.jar
%{_javadir}/ldapfilt.jar
%{_javadir}/ldapbeans.jar
%{_javadir}/ldaptools.jar
%{_mavenpomdir}/JPP-ldapjdk.pom
%{_mavenpomdir}/JPP-ldapsp.pom
%{_mavenpomdir}/JPP-ldapfilter.pom
@ -151,14 +155,14 @@ export JAVA_HOME=%{java_home}
%{_mavenpomdir}/JPP-ldaptools.pom
################################################################################
%files -n %{product_id}-javadoc
%files -n %{product_id}-javadoc -f .mfiles-javadoc
################################################################################
%dir %{_javadocdir}/ldapjdk
%{_javadocdir}/ldapjdk/*
################################################################################
%changelog
* Thu Dec 07 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.5.0-0.1.alpha4
- Rebase to LDAP SDK 5.5.0-alpha4
* Mon Jun 05 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.4.0-1
- Rebase to LDAP SDK 5.4.0

View File

@ -1 +1 @@
SHA512 (ldap-sdk-5.4.0.tar.gz) = 39f6bb5053caaf62cc63384afd31b3af8ad91de4356f13858ca2d7b29e6246180661450d3f30c1a796dbc526b34a55ca3440de5d82512069c14585672487fbc2
SHA512 (ldap-sdk-5.5.0-alpha4.tar.gz) = 0df00069fdb9bb63e93970f896a3539f8e37f043bcb9aec2e51894f171d8e9c82cb38a8b19fa783cd317f4b2a80a046b0b9408aee005c3b589ec1e415b9eabeb