import ldapjdk-5.2.0-1.el9

This commit is contained in:
CentOS Sources 2022-09-27 05:32:30 -04:00 committed by Stepan Oksanichenko
parent 2d67b4bf4e
commit de4143acf8
3 changed files with 62 additions and 24 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/ldap-sdk-5.0.0.tar.gz
SOURCES/ldap-sdk-5.2.0.tar.gz

View File

@ -1 +1 @@
4398c56637bf8bb815b52de6a8bbca5d71abd03a SOURCES/ldap-sdk-5.0.0.tar.gz
528725334ea80bf159fc4aa0450df171290a471a SOURCES/ldap-sdk-5.2.0.tar.gz

View File

@ -2,17 +2,33 @@
Name: ldapjdk
################################################################################
%global product_id idm-ldapjdk
# Upstream version number:
%global major_version 5
%global minor_version 2
%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
# Development phase:
# - development (unsupported): alpha<n> where n >= 1
# - stabilization (unsupported): beta<n> where n >= 1
# - GA/update (supported): <none>
%undefine phase
%undefine timestamp
%undefine commit_id
Summary: LDAP SDK
URL: http://www.dogtagpki.org/
URL: https://github.com/dogtagpki/ldap-sdk
License: MPLv1.1 or GPLv2+ or LGPLv2+
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: 1%{?_timestamp}%{?_commit_id}%{?dist}
#global _phase -alpha1
Version: %{major_version}.%{minor_version}.%{update_version}
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
# To create a tarball from a version tag:
# $ git archive \
@ -20,7 +36,7 @@ Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
# --prefix ldap-sdk-<version>/ \
# -o ldap-sdk-<version>.tar.gz \
# <version tag>
Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?_phase}/ldap-sdk-%{version}%{?_phase}.tar.gz
Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?phase:-}%{?phase}/ldap-sdk-%{version}%{?phase:-}%{?phase}.tar.gz
# To create a patch for all changes since a version tag:
# $ git format-patch \
@ -33,9 +49,9 @@ Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?_phase}/ldap
# Java
################################################################################
%define java_devel java-11-openjdk-devel
%define java_headless java-11-openjdk-headless
%define java_home /usr/lib/jvm/jre-11-openjdk
%define java_devel java-17-openjdk-devel
%define java_headless java-17-openjdk-headless
%define java_home %{_jvmdir}/jre-17-openjdk
################################################################################
# Build Dependencies
@ -46,38 +62,50 @@ BuildRequires: %{java_devel}
BuildRequires: javapackages-local
BuildRequires: slf4j
BuildRequires: slf4j-jdk14
BuildRequires: jss >= 5.0.0
BuildRequires: jss >= 5.2.0
%description
The Mozilla LDAP SDKs enable you to write applications which access,
manage, and update the information stored in an LDAP directory.
################################################################################
# Runtime Dependencies
%package -n %{product_id}
################################################################################
Summary: LDAP SDK
Requires: %{java_headless}
Requires: jpackage-utils >= 0:1.5
Requires: slf4j
Requires: slf4j-jdk14
Requires: jss >= 5.0.0
Requires: jss >= 5.2.0
%description
Obsoletes: ldapjdk < %{version}-%{release}
Provides: ldapjdk = %{version}-%{release}
%description -n %{product_id}
The Mozilla LDAP SDKs enable you to write applications which access,
manage, and update the information stored in an LDAP directory.
%license docs/ldapjdk/license.txt
################################################################################
%package javadoc
%package -n %{product_id}-javadoc
################################################################################
Summary: Javadoc for LDAP SDK
Summary: Javadoc for LDAP SDK
%description javadoc
Obsoletes: ldapjdk-javadoc < %{version}-%{release}
Provides: ldapjdk-javadoc = %{version}-%{release}
%description -n %{product_id}-javadoc
Javadoc for LDAP SDK
################################################################################
%prep
################################################################################
%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1
%autosetup -n ldap-sdk-%{version}%{?phase:-}%{?phase} -p 1
################################################################################
%build
@ -103,7 +131,7 @@ export JAVA_HOME=%{java_home}
install
################################################################################
%files
%files -n %{product_id}
################################################################################
%{_javadir}/ldapjdk.jar
@ -116,7 +144,7 @@ export JAVA_HOME=%{java_home}
%{_mavenpomdir}/JPP-ldapbeans.pom
################################################################################
%files javadoc
%files -n %{product_id}-javadoc
################################################################################
%dir %{_javadocdir}/ldapjdk
@ -124,6 +152,16 @@ export JAVA_HOME=%{java_home}
################################################################################
%changelog
* Thu Jun 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-1
- Rebase to LDAP SDK 5.2.0
* Mon May 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-0.3.beta2
- Rebase to LDAP SDK 5.2.0-beta2
- Rename packages to idm-ldapjdk
* Mon Apr 18 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-0.2.beta1
- Rebase to LDAP SDK 5.2.0-beta1
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-1
- Rebase to LDAP SDK 5.0.0