2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
Name: ldapjdk
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
Summary: LDAP SDK
|
|
|
|
URL: http://www.dogtagpki.org/
|
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
# 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.
|
2021-06-22 20:16:24 +00:00
|
|
|
Version: 5.0.0
|
2021-06-07 23:16:22 +00:00
|
|
|
Release: 0.1.alpha1%{?_timestamp}%{?_commit_id}%{?dist}
|
|
|
|
%global _phase -alpha1
|
2018-08-10 19:19:15 +00:00
|
|
|
|
2011-02-18 07:03:33 +00:00
|
|
|
%global spname ldapsp
|
|
|
|
%global filtname ldapfilt
|
|
|
|
%global beansname ldapbeans
|
2004-09-09 07:11:38 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
################################################################################
|
2021-06-07 23:16:22 +00:00
|
|
|
# Java
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
%define java_devel java-11-openjdk-devel
|
|
|
|
%define java_headless java-11-openjdk-headless
|
2021-06-22 20:16:24 +00:00
|
|
|
%define java_home /usr/lib/jvm/java-11-openjdk
|
2021-06-07 23:16:22 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Build Dependencies
|
|
|
|
################################################################################
|
2018-08-10 19:19:15 +00:00
|
|
|
|
|
|
|
BuildRequires: ant
|
2021-06-07 23:16:22 +00:00
|
|
|
BuildRequires: %{java_devel}
|
2018-08-10 19:19:15 +00:00
|
|
|
BuildRequires: javapackages-local
|
2019-08-08 20:11:36 +00:00
|
|
|
BuildRequires: slf4j
|
2020-06-10 21:00:52 +00:00
|
|
|
BuildRequires: slf4j-jdk14
|
2021-06-22 20:16:24 +00:00
|
|
|
BuildRequires: jss >= 5.0.0
|
2018-08-10 19:19:15 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Runtime Dependencies
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
Requires: %{java_headless}
|
2018-08-10 19:19:15 +00:00
|
|
|
Requires: jpackage-utils >= 0:1.5
|
2019-08-08 20:11:36 +00:00
|
|
|
Requires: slf4j
|
2020-06-10 21:00:52 +00:00
|
|
|
Requires: slf4j-jdk14
|
2021-06-22 20:16:24 +00:00
|
|
|
Requires: jss >= 5.0.0
|
2004-09-09 07:11:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Mozilla LDAP SDKs enable you to write applications which access,
|
|
|
|
manage, and update the information stored in an LDAP directory.
|
|
|
|
|
2020-06-10 21:00:52 +00:00
|
|
|
%license docs/ldapjdk/license.txt
|
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%package javadoc
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2004-09-09 07:11:38 +00:00
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}
|
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%prep
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1
|
2018-08-10 19:19:15 +00:00
|
|
|
|
2008-02-20 02:29:40 +00:00
|
|
|
# Remove all bundled jars, we must build against build-system jars
|
2017-03-10 02:32:26 +00:00
|
|
|
rm -f ./java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar
|
2009-03-20 20:56:37 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%build
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
pushd java-sdk/ldapjdk/lib
|
2021-06-22 20:16:24 +00:00
|
|
|
build-jar-repository -s -p . jss
|
2021-06-07 23:16:22 +00:00
|
|
|
popd
|
|
|
|
|
2017-09-06 11:18:59 +00:00
|
|
|
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
2021-06-07 23:16:22 +00:00
|
|
|
|
|
|
|
pushd java-sdk
|
|
|
|
export JAVA_HOME=%{java_home}
|
2009-03-20 20:56:37 +00:00
|
|
|
sh -x ant dist
|
2021-06-07 23:16:22 +00:00
|
|
|
popd
|
2004-09-09 07:11:38 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%install
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
2017-03-10 02:32:26 +00:00
|
|
|
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
|
2004-09-09 07:11:38 +00:00
|
|
|
|
2012-08-24 01:04:31 +00:00
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
2021-06-07 23:16:22 +00:00
|
|
|
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
|
2012-08-24 01:04:31 +00:00
|
|
|
|
2011-02-18 07:03:33 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2017-03-10 02:32:26 +00:00
|
|
|
cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2006-07-24 19:29:52 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2021-06-07 23:16:22 +00:00
|
|
|
%files
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-06-07 23:16:22 +00:00
|
|
|
%{_javadir}/%{name}.jar
|
2004-09-09 07:11:38 +00:00
|
|
|
%{_javadir}/%{spname}*.jar
|
2008-02-20 02:29:40 +00:00
|
|
|
%{_javadir}/%{filtname}*.jar
|
|
|
|
%{_javadir}/%{beansname}*.jar
|
2021-06-07 23:16:22 +00:00
|
|
|
%{_mavenpomdir}/JPP-ldapjdk.pom
|
|
|
|
%{_mavenpomdir}/JPP-ldapsp.pom
|
|
|
|
%{_mavenpomdir}/JPP-ldapfilter.pom
|
|
|
|
%{_mavenpomdir}/JPP-ldapbeans.pom
|
2004-09-09 07:11:38 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%files javadoc
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
2011-02-18 07:03:33 +00:00
|
|
|
%dir %{_javadocdir}/%{name}
|
|
|
|
%{_javadocdir}/%{name}/*
|
2004-09-09 07:11:38 +00:00
|
|
|
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
2004-09-09 07:11:38 +00:00
|
|
|
%changelog
|
2021-06-22 20:16:24 +00:00
|
|
|
* Tue Jun 22 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-0.1
|
|
|
|
- Rebase to LDAP SDK 5.0.0-alpha1
|