diff --git a/ldapjdk-4.18.pom b/ldapjdk-4.18.pom
new file mode 100644
index 0000000..a6b20f5
--- /dev/null
+++ b/ldapjdk-4.18.pom
@@ -0,0 +1,6 @@
+
+ 4.0.0
+ ldapjdk
+ ldapjdk
+ 4.18
+
diff --git a/ldapjdk.spec b/ldapjdk.spec
index 49ad522..5434745 100644
--- a/ldapjdk.spec
+++ b/ldapjdk.spec
@@ -4,7 +4,7 @@
Name: ldapjdk
Version: 4.18
-Release: 10%{?dist}
+Release: 11%{?dist}
Epoch: 0
Summary: The Mozilla LDAP Java SDK
License: MPLv1.1 or GPLv2+ or LGPLv2+
@@ -14,6 +14,9 @@ URL: http://www.mozilla.org/directory/javasdk.html
# cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot Export -r LDAPJavaSDK_418 DirectorySDKSourceJava
# tar -zcf ldapjdk-4.18,tar.gz ldapjdk-4.18
Source: %{name}-%{version}.tar.gz
+# originally taken from http://mirrors.ibiblio.org/pub/mirrors/maven2/ldapsdk/ldapsdk/4.1/ldapsdk-4.1.pom
+# changed: gId, aId and version
+Source1: %{name}-%{version}.pom
Patch0: %{name}-jarnamefix.patch
Patch1: matching-rule-parsing-640750.patch
@@ -71,6 +74,10 @@ pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0
ln -fs ../java/*%{spname}.jar jndi-ldap.jar
popd
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "ldapsdk:ldapsdk"
+
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
@@ -81,6 +88,8 @@ cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name
%{_javadir}/%{filtname}*.jar
%{_javadir}/%{beansname}*.jar
%{_javadir}-1.3.0/*.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
%files javadoc
%defattr(-,root,root,)
@@ -88,6 +97,9 @@ cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name
%{_javadocdir}/%{name}/*
%changelog
+* Sat Aug 18 2012 gil cattaneo 0:4.18-11
+- Added maven pom
+
* Thu Jul 19 2012 Fedora Release Engineering - 0:4.18-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild