Name: uimaj-as Version: 2.4.2 Release: 1%{?dist} Summary: Apache UIMA Asynchronous Scaleout (UIMA-AS) License: ASL 2.0 URL: http://uima.apache.org/ Source0: http://www.apache.org/dist/uima/uima-as-%{version}/uima-as-%{version}-source-release.zip BuildRequires: java-devel BuildRequires: mvn(com.thoughtworks.xstream:xstream) BuildRequires: mvn(commons-httpclient:commons-httpclient) BuildRequires: mvn(commons-pool:commons-pool) BuildRequires: mvn(org.apache.activemq:activemq-core) BuildRequires: mvn(org.apache.activemq:activemq-jaas) BuildRequires: mvn(org.apache.activemq:kahadb) BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec) BuildRequires: mvn(org.apache.httpcomponents:httpclient) BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api) BuildRequires: mvn(org.apache.uima:parent-pom) BuildRequires: mvn(org.apache.uima:uimaj-core) BuildRequires: mvn(org.apache.uima:uimaj-test-util) BuildRequires: mvn(org.apache.xmlbeans:xmlbeans) BuildRequires: mvn(org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec) BuildRequires: mvn(org.slf4j:jcl-over-slf4j) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-log4j12) BuildRequires: mvn(org.springframework:spring-aop) BuildRequires: mvn(org.springframework:spring-beans) BuildRequires: mvn(org.springframework:spring-context) BuildRequires: mvn(org.springframework:spring-core) BuildRequires: mvn(org.springframework:spring-expression) BuildRequires: mvn(org.springframework:spring-jms) BuildRequires: mvn(org.springframework:spring-tx) BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-resources-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:xmlbeans-maven-plugin) BuildArch: noarch %description UIMA AS is the next generation scalability replacement for the Collection Processing Manager (CPM). UIMA AS provides more flexible and powerful scale-out capability, and extends support to the UIMA components not supported by the CPM, the flow controller and CAS multiplier. UIMA components can be run within UIMA AS with no code or component descriptor changes. UIMA AS introduces a new XML descriptor, the Deployment Descriptor. Unlike the CPM descriptor which specifies component aggregation, error handling and scalability, the UIMA AS Deployment Descriptor only specifies error handling and scalability options; component aggregation is done using the standard aggregate descriptor. The UIMA Component Descriptor Editor (CDE) has been enhanced to support the UIMA AS Deployment Descriptor. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n uima-as-%{version} # cleanup find . -name "*.jar" -print -delete find . -name "*.bat" -print -delete find . -name "*.class" -print -delete find . -name "*.cmd" -print -delete # Use com.agilejava.docbkx:docbkx-maven-plugin %pom_disable_module ../uima-as-docbooks aggregate-uima-as # org.apache.activemq:activemq-all:jar:5.6.0 sed -i "s|activemq-all|activemq-core|" $(find . -name "pom.xml") # Fix javax apis %pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec %{name}-activemq %pom_add_dep org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec %{name}-activemq %pom_remove_dep org.apache.geronimo.specs:geronimo-servlet_2.5_spec %{name}-activemq %pom_add_dep org.apache.tomcat:tomcat-servlet-api %{name}-activemq %pom_remove_dep org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec %pom_add_dep org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec %pom_remove_dep org.apache.geronimo.specs:geronimo-servlet_2.5_spec %pom_add_dep org.apache.tomcat:tomcat-servlet-api # Not available build deps %pom_remove_dep org.springframework:spring-asm uima-as-parent %pom_remove_dep org.springframework:spring-asm %{name}-core %pom_remove_dep org.springframework:spring-asm %{name}-jms %pom_remove_dep org.springframework:spring-asm %{name}-activemq %pom_remove_dep org.apache.activemq:activemq-optional %{name}-activemq %pom_remove_dep org.apache.activemq:activemq-spring %{name}-activemq %pom_remove_dep org.apache.activemq:activemq-web %{name}-activemq %pom_remove_dep org.apache.activemq:activemq-optional %pom_remove_dep org.apache.activemq:activemq-spring %pom_remove_dep org.apache.activemq:activemq-web # org.eclipse.jetty.aggregate:jetty-all-server:jar:7.6.7.v20120910 %pom_remove_dep org.eclipse.jetty.aggregate:jetty-all-server %{name}-activemq # Remove eclipse stuff (dont provides pom or depmap file) # org.apache.uima:uimaj-ep-runtime:jar:2.4.2 # org.eclipse.core:variables:jar:3.1.100-v20060605 %pom_disable_module ../aggregate-uima-as-eclipse-plugins aggregate-uima-as %pom_remove_dep :uimaj-as-camel %pom_remove_dep :uimaj-ep-deployeditor %pom_remove_dep :uimaj-ep-runtime-deployeditor %pom_remove_dep :uimaj-as-osgi-runtime # Not available plugin %pom_remove_plugin org.apache.uima:uima-build-helper-maven-plugin %pom_remove_plugin :maven-dependency-plugin %pom_remove_plugin :maven-assembly-plugin # Need web access %pom_remove_plugin :maven-changes-plugin # Fix javadoc sed -i "s|uimaj-as-activemq/src/main/java:uimaj-as-camel/src/main/java|uimaj-as-activemq/src/main/java|" pom.xml sed -i 's/\r//' LicNoticeAnalysisActiveMQ.txt README %build # Unavailable test deps org.apache.uima:uimaj-examples:2.4.2 %mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE NOTICE README RELEASE_NOTES.html LicNoticeAnalysisActiveMQ.txt %files javadoc -f .mfiles-javadoc %doc LICENSE NOTICE %changelog * Thu Jan 16 2014 gil cattaneo 2.4.2-1 - initial rpm