|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
Name: ldapjdk
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
1b1033 |
Summary: LDAP SDK
|
|
|
1b1033 |
URL: http://www.dogtagpki.org/
|
|
|
1b1033 |
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
1b1033 |
|
|
|
1b1033 |
BuildArch: noarch
|
|
|
1b1033 |
|
|
|
34f8a7 |
# For development (i.e. unsupported) releases, use x.y.z-0.n.<phase>.
|
|
|
34f8a7 |
# For official (i.e. supported) releases, use x.y.z-r where r >=1.
|
|
|
34f8a7 |
Version: 4.23.0
|
|
|
34f8a7 |
Release: 0.1.alpha1%{?_timestamp}%{?_commit_id}%{?dist}
|
|
|
34f8a7 |
%global _phase -alpha1
|
|
|
1b1033 |
|
|
|
1b1033 |
%global spname ldapsp
|
|
|
1b1033 |
%global filtname ldapfilt
|
|
|
1b1033 |
%global beansname ldapbeans
|
|
|
1b1033 |
|
|
|
1b1033 |
# To create a tarball from a version tag:
|
|
|
1b1033 |
# $ git archive \
|
|
|
1b1033 |
# --format=tar.gz \
|
|
|
1b1033 |
# --prefix ldap-sdk-<version>/ \
|
|
|
1b1033 |
# -o ldap-sdk-<version>.tar.gz \
|
|
|
1b1033 |
# <version tag>
|
|
|
1b1033 |
Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?_phase}/ldap-sdk-%{version}%{?_phase}.tar.gz
|
|
|
1b1033 |
|
|
|
1b1033 |
# To create a patch for all changes since a version tag:
|
|
|
1b1033 |
# $ git format-patch \
|
|
|
1b1033 |
# --stdout \
|
|
|
1b1033 |
# <version tag> \
|
|
|
1b1033 |
# > ldap-sdk-VERSION-RELEASE.patch
|
|
|
1b1033 |
# Patch: ldap-sdk-VERSION-RELEASE.patch
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
34f8a7 |
# Java
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
34f8a7 |
%if 0%{?fedora} && 0%{?fedora} <= 32 || 0%{?rhel} && 0%{?rhel} <= 8
|
|
|
34f8a7 |
%define java_devel java-1.8.0-openjdk-devel
|
|
|
34f8a7 |
%define java_headless java-1.8.0-openjdk-headless
|
|
|
34f8a7 |
%define java_home /usr/lib/jvm/java-1.8.0-openjdk
|
|
|
34f8a7 |
%else
|
|
|
34f8a7 |
%define java_devel java-11-openjdk-devel
|
|
|
34f8a7 |
%define java_headless java-11-openjdk-headless
|
|
|
34f8a7 |
%define java_home /usr/lib/jvm/java-11-openjdk
|
|
|
34f8a7 |
%endif
|
|
|
34f8a7 |
|
|
|
34f8a7 |
################################################################################
|
|
|
34f8a7 |
# Build Dependencies
|
|
|
34f8a7 |
################################################################################
|
|
|
1b1033 |
|
|
|
1b1033 |
BuildRequires: ant
|
|
|
34f8a7 |
BuildRequires: %{java_devel}
|
|
|
1b1033 |
BuildRequires: javapackages-local
|
|
|
1b1033 |
BuildRequires: slf4j
|
|
|
1b1033 |
BuildRequires: slf4j-jdk14
|
|
|
1b1033 |
BuildRequires: jss >= 4.6.0
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
# Runtime Dependencies
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
34f8a7 |
Requires: %{java_headless}
|
|
|
1b1033 |
Requires: jpackage-utils >= 0:1.5
|
|
|
1b1033 |
Requires: slf4j
|
|
|
1b1033 |
Requires: slf4j-jdk14
|
|
|
1b1033 |
Requires: jss >= 4.6.0
|
|
|
1b1033 |
|
|
|
1b1033 |
%description
|
|
|
1b1033 |
The Mozilla LDAP SDKs enable you to write applications which access,
|
|
|
1b1033 |
manage, and update the information stored in an LDAP directory.
|
|
|
1b1033 |
|
|
|
1b1033 |
%license docs/ldapjdk/license.txt
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%package javadoc
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
1b1033 |
Summary: Javadoc for %{name}
|
|
|
1b1033 |
|
|
|
1b1033 |
%description javadoc
|
|
|
1b1033 |
Javadoc for %{name}
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%prep
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
34f8a7 |
%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1
|
|
|
1b1033 |
|
|
|
1b1033 |
# Remove all bundled jars, we must build against build-system jars
|
|
|
1b1033 |
rm -f ./java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%build
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
34f8a7 |
pushd java-sdk/ldapjdk/lib
|
|
|
34f8a7 |
build-jar-repository -s -p . jss
|
|
|
34f8a7 |
popd
|
|
|
34f8a7 |
|
|
|
1b1033 |
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
|
|
34f8a7 |
|
|
|
34f8a7 |
pushd java-sdk
|
|
|
34f8a7 |
export JAVA_HOME=%{java_home}
|
|
|
1b1033 |
sh -x ant dist
|
|
|
34f8a7 |
popd
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%install
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
1b1033 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
|
1b1033 |
install -m 644 java-sdk/dist/packages/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
1b1033 |
install -m 644 java-sdk/dist/packages/%{spname}.jar $RPM_BUILD_ROOT%{_javadir}/%{spname}.jar
|
|
|
1b1033 |
install -m 644 java-sdk/dist/packages/%{filtname}.jar $RPM_BUILD_ROOT%{_javadir}/%{filtname}.jar
|
|
|
1b1033 |
install -m 644 java-sdk/dist/packages/%{beansname}.jar $RPM_BUILD_ROOT%{_javadir}/%{beansname}.jar
|
|
|
1b1033 |
|
|
|
1b1033 |
mkdir -p %{buildroot}%{_mavenpomdir}
|
|
|
34f8a7 |
install -pm 644 java-sdk/ldapjdk/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapjdk.pom
|
|
|
34f8a7 |
install -pm 644 java-sdk/ldapfilter/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapfilter.pom
|
|
|
34f8a7 |
install -pm 644 java-sdk/ldapbeans/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapbeans.pom
|
|
|
34f8a7 |
install -pm 644 java-sdk/ldapsp/pom.xml %{buildroot}%{_mavenpomdir}/JPP-ldapsp.pom
|
|
|
1b1033 |
|
|
|
1b1033 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
1b1033 |
cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
34f8a7 |
%files
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
34f8a7 |
%{_javadir}/%{name}.jar
|
|
|
1b1033 |
%{_javadir}/%{spname}*.jar
|
|
|
1b1033 |
%{_javadir}/%{filtname}*.jar
|
|
|
1b1033 |
%{_javadir}/%{beansname}*.jar
|
|
|
34f8a7 |
%{_mavenpomdir}/JPP-ldapjdk.pom
|
|
|
34f8a7 |
%{_mavenpomdir}/JPP-ldapsp.pom
|
|
|
34f8a7 |
%{_mavenpomdir}/JPP-ldapfilter.pom
|
|
|
34f8a7 |
%{_mavenpomdir}/JPP-ldapbeans.pom
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%files javadoc
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
|
|
|
1b1033 |
%dir %{_javadocdir}/%{name}
|
|
|
1b1033 |
%{_javadocdir}/%{name}/*
|
|
|
1b1033 |
|
|
|
1b1033 |
################################################################################
|
|
|
1b1033 |
%changelog
|
|
|
34f8a7 |
* Fri Jun 11 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 4.23.0-0.1
|
|
|
34f8a7 |
- Rebase to LDAP SDK 4.23.0-alpha1
|
|
|
34f8a7 |
|
|
|
1b1033 |
* Tue May 26 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.22.0-1
|
|
|
34f8a7 |
- Rebase to LDAP SDK 4.22.0
|
|
|
1b1033 |
|
|
|
1b1033 |
* Thu Oct 31 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.21.0-2
|
|
|
1b1033 |
- Bump min required JSS version to 4.6.0
|
|
|
1b1033 |
|
|
|
1b1033 |
* Mon Jun 10 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.21.0-1
|
|
|
34f8a7 |
- Rebase to LDAP SDK 4.21.0
|
|
|
1b1033 |
|
|
|
1b1033 |
* Fri Aug 10 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.20.0-0
|
|
|
34f8a7 |
- Rebase to LDAP SDK 4.20.0
|
|
|
1b1033 |
|