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
|
|
|
|
|
|
|
|
Version: 4.20.0
|
2019-07-25 12:33:07 +00:00
|
|
|
Release: 3%{?_timestamp}%{?_commit_id}%{?dist}
|
2018-08-10 19:19:15 +00:00
|
|
|
# global _phase -a1
|
|
|
|
|
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
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Build Dependencies
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# autosetup
|
|
|
|
BuildRequires: git
|
|
|
|
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-devel
|
2018-05-30 16:34:06 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2018-08-10 19:19:15 +00:00
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
2017-10-13 00:06:36 +00:00
|
|
|
%else
|
2018-08-10 19:19:15 +00:00
|
|
|
BuildRequires: javapackages-local
|
2017-10-13 00:06:36 +00:00
|
|
|
%endif
|
2018-08-10 19:19:15 +00:00
|
|
|
BuildRequires: jss >= 4.5.0-1
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Runtime Dependencies
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
Requires: jpackage-utils >= 0:1.5
|
|
|
|
Requires: jss >= 4.5.0-1
|
2008-02-20 02:29:40 +00:00
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
################################################################################
|
|
|
|
|
|
|
|
%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1 -S git
|
|
|
|
|
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
|
|
|
################################################################################
|
|
|
|
|
2008-02-20 02:29:40 +00:00
|
|
|
# Link to build-system BRs
|
2009-03-20 20:56:37 +00:00
|
|
|
pwd
|
2018-05-30 16:34:06 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2017-10-13 00:06:36 +00:00
|
|
|
( cd java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 jsse jaas jndi )
|
|
|
|
%else
|
2017-09-06 11:18:59 +00:00
|
|
|
( cd java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 )
|
|
|
|
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
|
2017-10-13 00:06:36 +00:00
|
|
|
%endif
|
2017-03-10 02:32:26 +00:00
|
|
|
cd java-sdk
|
2004-09-09 07:11:38 +00:00
|
|
|
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
|
2009-03-20 20:56:37 +00:00
|
|
|
sh -x ant dist
|
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
|
|
|
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}-1.3.0
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0
|
|
|
|
ln -fs ../java/*%{spname}.jar jndi-ldap.jar
|
|
|
|
popd
|
|
|
|
|
2012-08-24 01:04:31 +00:00
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
2018-08-10 19:19:15 +00:00
|
|
|
install -pm 644 %{name}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2012-08-24 01:04:31 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "ldapsdk:ldapsdk"
|
|
|
|
|
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
|
|
|
################################################################################
|
2015-02-16 14:26:49 +00:00
|
|
|
%files -f .mfiles
|
2018-08-10 19:19:15 +00:00
|
|
|
################################################################################
|
|
|
|
|
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
|
2004-09-09 07:11:38 +00:00
|
|
|
%{_javadir}-1.3.0/*.jar
|
|
|
|
|
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
|
2019-07-25 12:33:07 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.20.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 06:26:27 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.20.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-14 21:42:39 +00:00
|
|
|
* Fri Aug 10 2018 Dogtag PKI Team <pki-team@redhat.com> 4.20.0-1
|
2018-08-10 19:19:15 +00:00
|
|
|
- Rebased to LDAP SDK 4.20.0
|
2004-09-09 07:11:38 +00:00
|
|
|
|