Name: carrot2 Version: 3.6.3 Release: 1%{?dist} Summary: Search Results Clustering Engine License: BSD URL: http://project.carrot2.org/ Source0: https://github.com/carrot2/carrot2/archive/release/%{version}.tar.gz #Source1: rome-1.0.0.jar #Source2: rome-fetcher-1.0.0.jar #Patch0: ... BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: ant-contrib BuildRequires: attributes-binder BuildRequires: apache-commons-lang BuildRequires: hppc BuildRequires: httpcomponents-client BuildRequires: httpcomponents-core BuildRequires: jackson BuildRequires: lucene BuildRequires: lucene-contrib #BuildRequires: mahout-collections BuildRequires: morfologik-stemming #BuildRequires: rome BuildRequires: simple-xml BuildRequires: slf4j BuildRequires: tomcat-servlet-3.0-api Requires: java Requires: jpackage-utils BuildArch: noarch %description Carrot2 is an Open Source Search Results Clustering Engine. It can automatically organize small collections of documents (search results but not only) into thematic categories. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-release-%{version} find . -name "*.class" -print -delete find . -name "*.jar" -print -delete a sed -i 's|${tmp.dir}|${basedir}|' build.xml #a ln -sf $(build-classpath hppc) lib/com.carrotsearch.hppc/hppc-0.4.1.jar ln -sf $(build-classpath lucene-core) lib/org.apache.lucene/lucene-core-3.6.0.jar ln -sf $(build-classpath lucene-contrib/lucene-analyzers) lib/org.apache.lucene/lucene-analyzers-3.6.0.jar ln -sf $(build-classpath lucene-contrib/lucene-smartcn) lib/org.apache.lucene/lucene-smartcn-3.6.0.jar ln -sf $(build-classpath lucene-contrib/lucene-highlighter) lib/org.apache.lucene/lucene-highlighter-3.6.0.jar #ln -sf $(build-classpath lucene-contrib/lucene-memory) lib/org.apache.lucene/lucene-memory-3.6.0.jar #ln -sf $(build-classpath rome) lib/net.java.dev.rome/rome-1.0.0.jar #ln -sf $(build-classpath rome-fetcher) lib/net.java.dev.rome/rome-fetcher-1.0.0.jar # lib/org.eclipse.jetty/jetty-servlet-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-server-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-continuation-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-security-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-servlets-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-http-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-io-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-deploy-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-xml-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-util-7.3.1.v20110307.jar # lib/org.eclipse.jetty/jetty-webapp-7.3.1.v20110307.jar #ln -sf $(build-classpath velocity) lib/org.apache.velocity/velocity-1.7.jar #ln -sf $(build-classpath velocity-tools) lib/org.apache.velocity/velocity-tools-generic-2.0.jar # lib/org.carrot2.antlib/org.carrot2.antlib.jar # lib/org.kohsuke.args4j/args4j-2.0.9.jar # NON free contains some classes provides by colt project # The colt package unfortunately needs to go to non-free because an exception clause from LGPL. # "... the terms of the LGPL License, with the exception that any usage related to # military applications is expressly forbidden" # and dont support newer mahout release (incompatibles apis) without previous problems # lib/org.apache.mahout/mahout-math-0.6.jar #ln -sf $(build-classpath mahout-collections) lib/org.apache.mahout/mahout-collections-1.0.jar ln -sf $(build-classpath simple-xml) lib/org.simpleframework.xml/simple-xml-2.6.4.jar # lib/org.apache.oro/oro-2.0.8.jar # lib/org.apache.log4j/log4j-1.2.16.jar # lib/com.google.guava/jsr305-1.3.9.jar # lib/com.google.guava/guava-12.0.jar # lib/org.carrot2.attributes/attributes-processor-1.0.1.jar ln -sf $(build-classpath attributes-binder) lib/org.carrot2.attributes/attributes-binder-1.0.1.jar #ln -sf $(build-classpath nekohtml) lib/org.gargoylesoftware.htmlunit/nekohtml-1.9.15-20101026.093020-2.jar #ln -sf $(build-classpath cssparser/cssparser) lib/org.gargoylesoftware.htmlunit/cssparser-0.9.5.jar #ln -sf $(build-classpath sac lib/org.gargoylesoftware.htmlunit/sac-1.3.jar #ln -sf $(build-classpath htmlunit) lib/org.gargoylesoftware.htmlunit/htmlunit-2.9-SNAPSHOT.jar #ln -sf $(build-classpath htmlunit-core-js) lib/org.gargoylesoftware.htmlunit/htmlunit-core-js-2.9-SNAPSHOT.jar ln -sf $(build-classpath tomcat-servlet-api) lib/javax.servlet/servlet-api-2.5.jar # lib/org.junit4-ext/junit-4.10.jar ln -sf $(build-classpath jackson/jackson-mapper-asl) lib/org.codehaus.jackson/jackson-mapper-asl-1.7.4.jar ln -sf $(build-classpath jackson/jackson-core-asl) lib/org.codehaus.jackson/jackson-core-asl-1.7.4.jar # lib/com.carrotsearch.randomizedtesting/randomizedtesting-runner-2.0.0-SNAPSHOT.jar # lib/com.carrotsearch.randomizedtesting/junit4-ant-2.0.0-SNAPSHOT.jar # lib/com.planetj.compression/pjl-comp-filter-1.7.jar ln -sf $(build-classpath morfologik-stemming/morfologik-polish) lib/morfologik/morfologik-polish-1.5.3.jar ln -sf $(build-classpath morfologik-stemming/morfologik-stemming) lib/morfologik/morfologik-stemming-1.5.3.jar ln -sf $(build-classpath morfologik-stemming/morfologik-fsa) lib/morfologik/morfologik-fsa-1.5.3.jar # lib/org.slf4j/slf4j-nop-1.6.1.jar # lib/org.slf4j/slf4j-log4j12-1.6.1.jar # lib/org.slf4j/jcl-over-slf4j-1.6.1.jar ln -sf $(build-classpath slf4j/api) lib/org.slf4j/slf4j-api-1.6.1.jar # lib/org.jdom/jdom-1.1.jar # lib/com.thoughtworks.qdox/qdox-1.12.jar # lib/org.easymock/easymock-3.0.jar # lib/org.apache.xml/xalan-2.7.1.jar # lib/org.apache.xml/xercesImpl-2.11.0.jar # lib/org.apache.xml/xml-apis.jar # lib/org.apache.xml/resolver.jar # lib/org.apache.xml/serializer.jar # lib/org.apache.commons/commons-io-2.0.1.jar # lib/org.apache.commons/commons-collections-3.2.1.jar # lib/org.apache.commons/commons-codec-1.4.jar ln -sf $(build-classpath commons-lang) lib/org.apache.commons/commons-lang-2.6.jar ln -sf $(build-classpath httpcomponents/httpmime) lib/org.apache.http/httpmime-4.1.jar ln -sf $(build-classpath httpcomponents/httpcore) lib/org.apache.http/httpcore-4.1.jar ln -sf $(build-classpath httpcomponents/httpclient) lib/org.apache.http/httpclient-4.1.jar # applications/carrot2-dcs/lib/commons-fileupload-1.2.1.jar # applications/carrot2-dcs/etc/distribution/invoker.jar # applications/carrot2-benchmarks/lib/h2-1.2.132.jar # applications/carrot2-benchmarks/lib/junit-benchmarks-0.1.0.jar # applications/carrot2-webapp/lib/jawr-2.4.2.jar # http://issues.carrot2.org/browse/CARROT-444 # workbench/org.carrot2.workbench.vis.aduna/lib/aduna-clustermap-2006.1-resources.jar # workbench/org.carrot2.workbench.vis.aduna/lib/aduna-clustermap-2006.1.jar # Aduna cluster map visualization is a great tool for tracing # relationships between contents of clusters. Synchronization # of cluster selection between the editor and visualization # view would be very helpful here. Ideally, contrary to the # circles visualization, selections containing multiple # clusters should also be synchronized. If it's difficult to # implement bidirectional synchronization, the editor selection # visualization selection would still be very helpful. # core/carrot2-util-text/lib/JFlex.jar # etc/smartsprites/commons-math-1.1.jar # etc/smartsprites/commons-lang-2.3.jar # etc/smartsprites/smartsprites-0.2.3.jar # etc/smartsprites/junit-4.4.jar # etc/smartsprites/google-collections.jar # etc/smartsprites/args4j-2.0.9.jar # etc/smartsprites/commons-io-1.4.jar # etc/jdiff/jdiff.jar # etc/extractor/extractor.jar # etc/ant/ant-contrib-1.0b3.jar # lib/org.fest/fest-util-1.1.6.jar # lib/org.fest/fest-assert-1.4.jar # lib/org.fest/fest-mocks-1.0.jar rm -r core/carrot2-util-common/src/org/carrot2/util/tests/* # rome-fetcher rm -r core/carrot2-source-opensearch/src/org/carrot2/source/opensearch \ core/carrot2-source-idol/src/org/carrot2/source/idol/IdolDocumentSource.java # mahout-math 0.6 rm -r core/carrot2-util-matrix/src/org/carrot2/matrix/* \ core/carrot2-algorithm-lingo/src/org/carrot2/clustering/lingo/* \ core/carrot2-algorithm-kmeans/src/org/carrot2/clustering/kmeans/BisectingKMeansClusteringAlgorithm.java \ core/carrot2-util-text/src/org/carrot2/text/vsm/ReducedVectorSpaceModelContext.java \ core/carrot2-util-text/src/org/carrot2/text/vsm/TermDocumentMatrixBuilder.java \ core/carrot2-util-text/src/org/carrot2/text/vsm/TermDocumentMatrixReducer.java \ core/carrot2-util-text/src/org/carrot2/text/vsm/VectorSpaceModelContext.java \ core/carrot2-algorithm-kmeans/src/org/carrot2/clustering/kmeans/BisectingKMeansProcessingContext.java \ core/carrot2-util-text/src/org/carrot2/text/preprocessing/* %build ant jar.mini javadoc a %install %files #%dir %{_javadir}/ %{_mavenpomdir}/JPP*.pom %{_mavendepmapfragdir}/%{name} %doc README carrot2.LICENSE %files javadoc %{_javadocdir}/%{name} %doc carrot2.LICENSE %changelog * Wed Sep 18 2013 gil cattaneo 3.6.3-1 - update to 3.6.3 * Tue Aug 27 2013 gil cattaneo 3.6.2-1 - initial rpm