%global namedreltag -M31 %global namedversion %{version}%{?namedreltag} Name: apache-ldap-api Version: 1.0.0 Release: 0.1.M31%{?dist} Summary: Apache Directory LDAP API License: ASL 2.0 Url: http://directory.apache.org/api/ Source0: http://www.apache.org/dist/directory/api/dist/%{namedversion}/%{name}-%{namedversion}-src.tar.gz BuildRequires: maven-local BuildRequires: mvn(antlr:antlr) BuildRequires: mvn(com.google.code.findbugs:annotations) BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(commons-lang:commons-lang) BuildRequires: mvn(commons-pool:commons-pool) BuildRequires: mvn(dom4j:dom4j) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.mina:mina-core) BuildRequires: mvn(org.codehaus.mojo:antlr-maven-plugin) BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(xpp3:xpp3) %if 0 # Test deps BuildRequires: mvn(junit:junit) BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(org.apache.directory.junit:junit-addons) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.slf4j:slf4j-log4j12) %endif BuildArch: noarch %description The Apache Directory LDAP API is an ongoing effort to provide an enhanced LDAP API, as a replacement for JNDI and the existing LDAP API (jLdap and Mozilla LDAP API). This is a schema aware API, with some convenient ways to access a LDAP server. This API is not only targeting the Apache Directory Server, but should work pristine with any LDAP server. It's also an extensible API : new Controls, schema elements and network layer could be added or used in the near future. It is also OSGi capable. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{namedversion}-src find . -name "*.class" -delete find . -name "*.jar" -print -delete # org.apache.directory.project:project:pom:34 %pom_remove_parent %pom_remove_dep -r org.ops4j.pax.exam: %pom_remove_dep -r org.ops4j.pax.url: %pom_remove_plugin -r :maven-source-plugin %pom_remove_plugin :maven-site-plugin %pom_disable_module integ %pom_disable_module integ-osgi %pom_disable_module distribution %pom_remove_plugin -r :maven-shade-plugin %pom_change_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j dom4j:dom4j %pom_change_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3 xpp3:xpp3 # org.osgi:org.osgi.core:6.0.0 %pom_change_dep -r org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi::provided %pom_change_dep -r findbugs:annotations com.google.code.findbugs:annotations %pom_remove_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.antlr %pom_xpath_remove "pom:dependency[pom:artifactId = 'antlr']/pom:scope" ldap/model %pom_xpath_remove "pom:dependency[pom:artifactId = 'antlr']/pom:scope" ldap/extras/aci %build # No test dep org.apache.directory.junit:junit-addons:0.1 -s %mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc README.txt %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Wed Jul 15 2015 gil cattaneo 1.0.0-0.1.M31 - update to 1.0.0-M31 * Sat Mar 14 2015 gil cattaneo 1.0.0-0.1.M26 - initial rpm