[mahout-collection-codegen-plugin/el5] initial import (#1082552)
by Björn 'besser82' Esser
commit f230ebbe5514314e9feff6900537b63c58a8df4a
Author: Björn Esser <bjoern.esser(a)gmail.com>
Date: Mon Mar 31 14:08:31 2014 +0200
initial import (#1082552)
.gitignore | 1 -
mahout-collection-codegen-plugin.spec | 83 ++++++++++++++++++++++++++++++
mahout_collection_codegen_plugin_1.0.pom | 78 ++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 162 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c9d226f..cdf3dc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
*~
*.jar
-*.pom
*.rpm
*.tar*
*.zip
diff --git a/mahout-collection-codegen-plugin.spec b/mahout-collection-codegen-plugin.spec
new file mode 100644
index 0000000..5ac248b
--- /dev/null
+++ b/mahout-collection-codegen-plugin.spec
@@ -0,0 +1,83 @@
+%global par_name mahout
+%global src_name %(s="%{name}-%{version}" ; echo $s | sed -e 's!-!_!g')
+
+Name: %{par_name}-collection-codegen-plugin
+Version: 1.0
+Release: 1%{?dist}
+Summary: Maven Mojo to generate code for Mahout Collections
+
+License: ASL 2.0
+URL: http://%{par_name}.apache.org/
+Source0: http://www.apache.org/dist/%{par_name}/%{name}-%{version}/%{src_name}_sou...
+Source1: http://www.apache.org/dist/%{par_name}/%{name}-%{version}/%{src_name}.pom
+
+BuildArch: noarch
+
+BuildRequires: maven-local
+BuildRequires: mvn(org.apache.maven:maven-plugin-api)
+BuildRequires: mvn(org.apache.maven:maven-project)
+BuildRequires: mvn(org.apache.maven.shared:file-management)
+BuildRequires: mvn(org.apache.velocity:velocity)
+
+Requires: maven
+
+%description
+The Apache Mahout project's goal is to build a scalable machine
+learning library.
+
+This package contains the Maven plugin used to generate code
+for Mahout Collections.
+
+
+%package javadoc
+Summary: API documentation for %{name}
+
+%description javadoc
+This package provides the %{summary}.
+
+
+%prep
+%setup -Tqc
+_TOPLEVEL=$(pwd)
+
+# Prepare the sources
+mkdir -p src/main/java
+pushd src/main/java
+%jar -xf %SOURCE0
+cp -p META-INF/LICENSE META-INF/NOTICE ${_TOPLEVEL}
+rm -rf META-INF
+popd
+find . -depth -type f -name '*.jar' -print0 | xargs -0 rm -f
+
+# Prepare maven pom.xml
+install -pm0644 %{SOURCE1} pom.xml
+%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . "
+<configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ </manifest>
+ </archive>
+</configuration>"
+
+
+%build
+%mvn_file :%{name} %{name}
+%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
+
+
+%install
+%mvn_install
+
+
+%files -f .mfiles
+%doc LICENSE NOTICE
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE NOTICE
+
+
+%changelog
+* Sun Mar 30 2014 Björn Esser <bjoern.esser(a)gmail.com> - 1.0-1
+- initial rpm release (#1082552)
diff --git a/mahout_collection_codegen_plugin_1.0.pom b/mahout_collection_codegen_plugin_1.0.pom
new file mode 100644
index 0000000..1cc8971
--- /dev/null
+++ b/mahout_collection_codegen_plugin_1.0.pom
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>6</version>
+ </parent>
+ <groupId>org.apache.mahout</groupId>
+ <artifactId>mahout-collection-codegen-plugin</artifactId>
+ <version>1.0</version>
+ <packaging>maven-plugin</packaging>
+ <name>Maven Mojo to generate code for collections</name>
+ <url>http://lucene.apache.org/mahout/</url>
+ <scm>
+ <connection>scm:svn:https://svn.apache.org/repos/asf/lucene/mahout/tags/mahout-collec...</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/lucene/mahout/tags/mahout-collec...</developerConnection>
+ <url>scm:svn:https://svn.apache.org/repos/asf/lucene/mahout/tags/mahout-collec...</url>
+ </scm>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0</version>
+ <configuration>
+ <tagBase>https://svn.apache.org/repos/asf/lucene/mahout/tags</tagBase>
+ <useReleaseProfile>true</useReleaseProfile>
+ <releaseProfiles>release,mahout_release</releaseProfiles>
+ <remoteTagging>true</remoteTagging>
+ <preparationGoals>clean install</preparationGoals>
+ <goals>deploy</goals>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <source>1.6</source>
+ <target>1.6</target>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <scope>provided</scope>
+ <version>2.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <scope>provided</scope>
+ <version>2.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>file-management</artifactId>
+ <version>1.2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>velocity</groupId>
+ <artifactId>velocity</artifactId>
+ <version>1.5</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/sources b/sources
index e69de29..abeb83f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8226354559be352a5c59ded0a4b91cf mahout_collection_codegen_plugin_1.0_sources.jar
9 years, 8 months