import ldapjdk-5.0.0-0.3.alpha1.el9
This commit is contained in:
commit
09a6dda89d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/ldap-sdk-5.0.0-alpha1.tar.gz
|
1
.ldapjdk.metadata
Normal file
1
.ldapjdk.metadata
Normal file
@ -0,0 +1 @@
|
||||
6c759d6ac17f365cb34a26ddab2e22ca1aa9b255 SOURCES/ldap-sdk-5.0.0-alpha1.tar.gz
|
167
SPECS/ldapjdk.spec
Normal file
167
SPECS/ldapjdk.spec
Normal file
@ -0,0 +1,167 @@
|
||||
################################################################################
|
||||
Name: ldapjdk
|
||||
################################################################################
|
||||
|
||||
Summary: LDAP SDK
|
||||
URL: http://www.dogtagpki.org/
|
||||
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: 0.3.alpha1%{?_timestamp}%{?_commit_id}%{?dist}
|
||||
%global _phase -alpha1
|
||||
|
||||
%global spname ldapsp
|
||||
%global filtname ldapfilt
|
||||
%global beansname ldapbeans
|
||||
|
||||
# To create a tarball from a version tag:
|
||||
# $ git archive \
|
||||
# --format=tar.gz \
|
||||
# --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
|
||||
|
||||
# To create a patch for all changes since a version tag:
|
||||
# $ git format-patch \
|
||||
# --stdout \
|
||||
# <version tag> \
|
||||
# > ldap-sdk-VERSION-RELEASE.patch
|
||||
# Patch: ldap-sdk-VERSION-RELEASE.patch
|
||||
|
||||
################################################################################
|
||||
# Java
|
||||
################################################################################
|
||||
|
||||
%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
|
||||
|
||||
################################################################################
|
||||
# Build Dependencies
|
||||
################################################################################
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: %{java_devel}
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: slf4j
|
||||
BuildRequires: slf4j-jdk14
|
||||
BuildRequires: jss >= 5.0.0
|
||||
|
||||
################################################################################
|
||||
# Runtime Dependencies
|
||||
################################################################################
|
||||
|
||||
Requires: %{java_headless}
|
||||
Requires: jpackage-utils >= 0:1.5
|
||||
Requires: slf4j
|
||||
Requires: slf4j-jdk14
|
||||
Requires: jss >= 5.0.0
|
||||
|
||||
%description
|
||||
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
|
||||
|
||||
%if %{with javadoc}
|
||||
################################################################################
|
||||
%package javadoc
|
||||
################################################################################
|
||||
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
Javadoc for %{name}
|
||||
%endif
|
||||
|
||||
################################################################################
|
||||
%prep
|
||||
################################################################################
|
||||
|
||||
%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
|
||||
|
||||
################################################################################
|
||||
%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
|
||||
|
||||
################################################################################
|
||||
%files
|
||||
################################################################################
|
||||
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{spname}*.jar
|
||||
%{_javadir}/%{filtname}*.jar
|
||||
%{_javadir}/%{beansname}*.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
|
||||
|
||||
################################################################################
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* Mon Aug 2 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.2
|
||||
- Drop javadoc package
|
||||
|
||||
* Fri Jun 25 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.1
|
||||
- Rebase to LDAP SDK 5.0.0-alpha1
|
Loading…
Reference in New Issue
Block a user