Resolves Bugzilla Bug #820300 - add maven pom

This commit is contained in:
Matthew Harmsen 2012-08-23 18:04:31 -07:00
parent faf710d4c1
commit 94445176e4
2 changed files with 19 additions and 1 deletions

6
ldapjdk-4.18.pom Normal file
View File

@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>ldapjdk</groupId>
<artifactId>ldapjdk</artifactId>
<version>4.18</version>
</project>

View File

@ -4,7 +4,7 @@
Name: ldapjdk Name: ldapjdk
Version: 4.18 Version: 4.18
Release: 10%{?dist} Release: 11%{?dist}
Epoch: 0 Epoch: 0
Summary: The Mozilla LDAP Java SDK Summary: The Mozilla LDAP Java SDK
License: MPLv1.1 or GPLv2+ or LGPLv2+ 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 # cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot Export -r LDAPJavaSDK_418 DirectorySDKSourceJava
# tar -zcf ldapjdk-4.18,tar.gz ldapjdk-4.18 # tar -zcf ldapjdk-4.18,tar.gz ldapjdk-4.18
Source: %{name}-%{version}.tar.gz 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 Patch0: %{name}-jarnamefix.patch
Patch1: matching-rule-parsing-640750.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 ln -fs ../java/*%{spname}.jar jndi-ldap.jar
popd 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} install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -r mozilla/directory/java-sdk/dist/doc/* $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}/%{filtname}*.jar
%{_javadir}/%{beansname}*.jar %{_javadir}/%{beansname}*.jar
%{_javadir}-1.3.0/*.jar %{_javadir}-1.3.0/*.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc %files javadoc
%defattr(-,root,root,) %defattr(-,root,root,)
@ -88,6 +97,9 @@ cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name
%{_javadocdir}/%{name}/* %{_javadocdir}/%{name}/*
%changelog %changelog
* Sat Aug 18 2012 gil cattaneo <puntogil@libero.it> 0:4.18-11
- Added maven pom
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-10 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.18-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild