Accepting request 676528 from home:fstrba:maven
OBS-URL: https://build.opensuse.org/request/show/676528 OBS-URL: https://build.opensuse.org/package/show/Java:packages/parboiled?expand=0&rev=1
This commit is contained in:
commit
8a6f07f819
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
1.1.6.tar.gz
Normal file
3
1.1.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:793fe27f8aa5ae71e6dc09bcda702835ad9a23329d61cd26de046cfdcb0fbe5d
|
||||
size 215393
|
95
parboiled-1.1.6-scala-use-antrun-plugin.patch
Normal file
95
parboiled-1.1.6-scala-use-antrun-plugin.patch
Normal file
@ -0,0 +1,95 @@
|
||||
--- parboiled-scala/pom.xml 2013-08-26 12:54:13.000000000 +0200
|
||||
+++ parboiled-scala/pom.xml-gil 2014-03-20 07:40:12.564265870 +0100
|
||||
@@ -54,4 +54,91 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
+ <build>
|
||||
+ <plugins>
|
||||
+ <plugin>
|
||||
+ <groupId>org.apache.maven.plugins</groupId>
|
||||
+ <artifactId>maven-antrun-plugin</artifactId>
|
||||
+ <version>1.7</version>
|
||||
+ <executions>
|
||||
+ <execution>
|
||||
+ <id>scala-compile</id>
|
||||
+ <phase>compile</phase>
|
||||
+ <configuration>
|
||||
+ <tasks>
|
||||
+ <property name="build.compiler" value="extJavac"/>
|
||||
+ <taskdef resource="scala/tools/ant/antlib.xml" classpathref="maven.compile.classpath"/>
|
||||
+ <mkdir dir="${project.build.outputDirectory}"/>
|
||||
+ <scalac srcdir="src/main" destdir="${project.build.outputDirectory}" classpathref="maven.compile.classpath">
|
||||
+ <include name="scala/**/*.scala"/>
|
||||
+ </scalac>
|
||||
+ </tasks>
|
||||
+ </configuration>
|
||||
+ <goals>
|
||||
+ <goal>run</goal>
|
||||
+ </goals>
|
||||
+ </execution>
|
||||
+ <!--TODO unavailable test deps-->
|
||||
+ <!--execution>
|
||||
+ <id>scala-test-compile</id>
|
||||
+ <phase>test-compile</phase>
|
||||
+ <configuration>
|
||||
+ <tasks>
|
||||
+ <property name="build.compiler" value="extJavac"/>
|
||||
+ <taskdef resource="scala/tools/ant/antlib.xml" classpathref="maven.compile.classpath"/>
|
||||
+ <mkdir dir="${project.build.testOutputDirectory}"/>
|
||||
+ <scalac srcdir="src/test" destdir="${project.build.testOutputDirectory}" classpathref="maven.test.classpath">
|
||||
+ <include name="scala/**/*.scala"/>
|
||||
+ </scalac>
|
||||
+ </tasks>
|
||||
+ </configuration>
|
||||
+ <goals>
|
||||
+ <goal>run</goal>
|
||||
+ </goals>
|
||||
+ </execution-->
|
||||
+ </executions>
|
||||
+ <dependencies>
|
||||
+ <dependency>
|
||||
+ <groupId>org.scala-lang</groupId>
|
||||
+ <artifactId>scala-compiler</artifactId>
|
||||
+ <version>2.10.2</version>
|
||||
+ </dependency>
|
||||
+ </dependencies>
|
||||
+ </plugin>
|
||||
+ <plugin>
|
||||
+ <groupId>org.apache.felix</groupId>
|
||||
+ <artifactId>maven-bundle-plugin</artifactId>
|
||||
+ <version>2.3.7</version>
|
||||
+ <extensions>true</extensions>
|
||||
+ <configuration>
|
||||
+ <instructions>
|
||||
+ <Bundle-SymbolicName>org.parboiled.scala</Bundle-SymbolicName>
|
||||
+ <Bundle-Name>org.parboiled.scala</Bundle-Name>
|
||||
+ <Bundle-Version>${project.version}</Bundle-Version>
|
||||
+ <Private-Package>org.parboiled.scala.*</Private-Package>
|
||||
+ </instructions>
|
||||
+ </configuration>
|
||||
+ <executions>
|
||||
+ <execution>
|
||||
+ <id>bundle-manifest</id>
|
||||
+ <phase>process-classes</phase>
|
||||
+ <goals>
|
||||
+ <goal>manifest</goal>
|
||||
+ </goals>
|
||||
+ </execution>
|
||||
+ </executions>
|
||||
+ </plugin>
|
||||
+ <plugin>
|
||||
+ <groupId>org.apache.maven.plugins</groupId>
|
||||
+ <artifactId>maven-jar-plugin</artifactId>
|
||||
+ <version>2.4</version>
|
||||
+ <configuration>
|
||||
+ <archive>
|
||||
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
+ </archive>
|
||||
+ </configuration>
|
||||
+ </plugin>
|
||||
+ </plugins>
|
||||
+ </build>
|
||||
+
|
||||
</project>
|
||||
\ Manca newline alla fine del file
|
47
parboiled-core-1.1.6.pom
Normal file
47
parboiled-core-1.1.6.pom
Normal file
@ -0,0 +1,47 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-core</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<description>Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful</description>
|
||||
<url>http://parboiled.org</url>
|
||||
<version>1.1.6</version>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<name>parboiled-core</name>
|
||||
<inceptionYear>2009</inceptionYear>
|
||||
<organization>
|
||||
<name>org.parboiled</name>
|
||||
<url>http://parboiled.org</url>
|
||||
</organization>
|
||||
<scm>
|
||||
<url>git@github.com:sirthias/parboiled.git</url>
|
||||
<connection>scm:git:git@github.com:sirthias/parboiled.git</connection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>sirthias</id>
|
||||
<name>Mathias Doenitz</name>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<version>5.14.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scalatest</groupId>
|
||||
<artifactId>scalatest_2.9.3</artifactId>
|
||||
<version>1.9.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
72
parboiled-java-1.1.6.pom
Normal file
72
parboiled-java-1.1.6.pom
Normal file
@ -0,0 +1,72 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-java</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<description>Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful</description>
|
||||
<url>http://parboiled.org</url>
|
||||
<version>1.1.6</version>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<name>parboiled-java</name>
|
||||
<inceptionYear>2009</inceptionYear>
|
||||
<organization>
|
||||
<name>org.parboiled</name>
|
||||
<url>http://parboiled.org</url>
|
||||
</organization>
|
||||
<scm>
|
||||
<url>git@github.com:sirthias/parboiled.git</url>
|
||||
<connection>scm:git:git@github.com:sirthias/parboiled.git</connection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>sirthias</id>
|
||||
<name>Mathias Doenitz</name>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-core</artifactId>
|
||||
<version>1.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<version>5.14.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scalatest</groupId>
|
||||
<artifactId>scalatest_2.9.3</artifactId>
|
||||
<version>1.9.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>4.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-tree</artifactId>
|
||||
<version>4.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-analysis</artifactId>
|
||||
<version>4.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-util</artifactId>
|
||||
<version>4.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
46
parboiled-pom.xml
Normal file
46
parboiled-pom.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- This is a dummy POM added just to ease building in the RPM platforms: -->
|
||||
|
||||
<project
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-project</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>@VERSION@</version>
|
||||
|
||||
<modules>
|
||||
<!-- These are not all the modules, only those that we can currently build: -->
|
||||
<module>parboiled-core</module>
|
||||
<module>parboiled-java</module>
|
||||
</modules>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<includes>
|
||||
<include>**/*Tests.java</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/Abstract*.java</exclude>
|
||||
</excludes>
|
||||
<argLine>-Xmx512m</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
54
parboiled-port-to-objectweb-asm-5.0.1.patch
Normal file
54
parboiled-port-to-objectweb-asm-5.0.1.patch
Normal file
@ -0,0 +1,54 @@
|
||||
From 66129b1155188b4c2b1d3b34641a7118fd99eb51 Mon Sep 17 00:00:00 2001
|
||||
From: Michal Srb <msrb@redhat.com>
|
||||
Date: Thu, 27 Mar 2014 10:59:08 +0100
|
||||
Subject: [PATCH] Port to objectweb-asm 5.0.1
|
||||
|
||||
---
|
||||
.../src/main/java/org/parboiled/transform/ParserClassNode.java | 2 ++
|
||||
parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java | 3 ++-
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/parboiled-java/src/main/java/org/parboiled/transform/ParserClassNode.java b/parboiled-java/src/main/java/org/parboiled/transform/ParserClassNode.java
|
||||
index 6534f24..3da751b 100644
|
||||
--- a/parboiled-java/src/main/java/org/parboiled/transform/ParserClassNode.java
|
||||
+++ b/parboiled-java/src/main/java/org/parboiled/transform/ParserClassNode.java
|
||||
@@ -26,6 +26,7 @@ import static org.parboiled.common.Preconditions.*;
|
||||
import org.objectweb.asm.Type;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
+import org.objectweb.asm.Opcodes;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -39,6 +40,7 @@ class ParserClassNode extends ClassNode {
|
||||
private Class<?> extendedClass;
|
||||
|
||||
public ParserClassNode(Class<?> parentClass) {
|
||||
+ super(Opcodes.ASM4);
|
||||
this.parentClass = checkArgNotNull(parentClass, "parentClass");
|
||||
parentType = Type.getType(parentClass);
|
||||
}
|
||||
diff --git a/parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java b/parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java
|
||||
index c60ef8a..8c023ca 100644
|
||||
--- a/parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java
|
||||
+++ b/parboiled-java/src/main/java/org/parboiled/transform/RuleMethod.java
|
||||
@@ -31,6 +31,7 @@ import org.objectweb.asm.tree.LabelNode;
|
||||
import org.objectweb.asm.tree.LocalVariableNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
import org.objectweb.asm.tree.analysis.BasicValue;
|
||||
+import org.objectweb.asm.Opcodes;
|
||||
import org.parboiled.BaseParser;
|
||||
import org.parboiled.common.StringUtils;
|
||||
import org.parboiled.support.Var;
|
||||
@@ -71,7 +72,7 @@ class RuleMethod extends MethodNode {
|
||||
|
||||
public RuleMethod(Class<?> ownerClass, int access, String name, String desc, String signature, String[] exceptions,
|
||||
boolean hasExplicitActionOnlyAnno, boolean hasDontLabelAnno, boolean hasSkipActionsInPredicates) {
|
||||
- super(access, name, desc, signature, exceptions);
|
||||
+ super(Opcodes.ASM4, access, name, desc, signature, exceptions);
|
||||
this.ownerClass = ownerClass;
|
||||
parameterCount = Type.getArgumentTypes(desc).length;
|
||||
hasCachedAnnotation = parameterCount == 0;
|
||||
--
|
||||
1.9.0
|
||||
|
57
parboiled-scala_2.10-1.1.6.pom
Normal file
57
parboiled-scala_2.10-1.1.6.pom
Normal file
@ -0,0 +1,57 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-scala_2.10</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<description>Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful</description>
|
||||
<url>http://parboiled.org</url>
|
||||
<version>1.1.6</version>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<name>parboiled-scala</name>
|
||||
<inceptionYear>2009</inceptionYear>
|
||||
<organization>
|
||||
<name>org.parboiled</name>
|
||||
<url>http://parboiled.org</url>
|
||||
</organization>
|
||||
<scm>
|
||||
<url>git@github.com:sirthias/parboiled.git</url>
|
||||
<connection>scm:git:git@github.com:sirthias/parboiled.git</connection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>sirthias</id>
|
||||
<name>Mathias Doenitz</name>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.parboiled</groupId>
|
||||
<artifactId>parboiled-core</artifactId>
|
||||
<version>1.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scala-lang</groupId>
|
||||
<artifactId>scala-library</artifactId>
|
||||
<version>2.10.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<version>5.14.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scalatest</groupId>
|
||||
<artifactId>scalatest_2.10</artifactId>
|
||||
<version>1.9.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
173
parboiled.spec
Normal file
173
parboiled.spec
Normal file
@ -0,0 +1,173 @@
|
||||
#
|
||||
# spec file for package parboiled
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global scala_short_version 2.10
|
||||
Name: parboiled
|
||||
Version: 1.1.6
|
||||
Release: 0
|
||||
Summary: Java/Scala library providing parsing of input text based on PEGs
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://parboiled.org/
|
||||
Source0: https://github.com/sirthias/parboiled/archive/%{version}.tar.gz
|
||||
# for build see https://github.com/sirthias/parboiled/wiki/Building-parboiled
|
||||
Source1: http://repo1.maven.org/maven2/org/parboiled/%{name}-core/%{version}/%{name}-core-%{version}.pom
|
||||
Source2: http://repo1.maven.org/maven2/org/parboiled/%{name}-java/%{version}/%{name}-java-%{version}.pom
|
||||
# customized aggregator pom
|
||||
Source3: %{name}-pom.xml
|
||||
Source4: http://repo1.maven.org/maven2/org/parboiled/%{name}-scala_%{scala_short_version}/%{version}/%{name}-scala_%{scala_short_version}-%{version}.pom
|
||||
Patch0: %{name}-1.1.6-scala-use-antrun-plugin.patch
|
||||
Patch1: parboiled-port-to-objectweb-asm-5.0.1.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.ow2.asm:asm)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-analysis)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-tree)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-util)
|
||||
BuildRequires: mvn(org.scala-lang:scala-compiler)
|
||||
BuildRequires: mvn(org.scala-lang:scala-library)
|
||||
BuildConflicts: java-devel >= 9
|
||||
BuildArch: noarch
|
||||
%if 0
|
||||
# test deps
|
||||
BuildRequires: mvn(org.scalatest:scalatest_2.9.3)
|
||||
BuildRequires: mvn(org.testng:testng)
|
||||
%endif
|
||||
|
||||
%description
|
||||
parboiled is a mixed Java/Scala library providing for lightweight and
|
||||
easy-to-use, yet powerful and elegant parsing of arbitrary input text
|
||||
based on Parsing expression grammars (PEGs). PEGs are an alternative to
|
||||
context free grammars (CFGs) for formally specifying syntax, they
|
||||
make a good replacement for regular expressions and generally have quite
|
||||
a few advantages over the "traditional" way of building parser via CFGs.
|
||||
|
||||
%package scala
|
||||
Summary: Parboiled for Scala
|
||||
|
||||
%description scala
|
||||
An internal Scala DSL for efficiently defining your parser rules.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
find . -name "*.class" -delete
|
||||
find . -name "*.jar" -delete
|
||||
|
||||
cp -p %{SOURCE1} %{name}-core/pom.xml
|
||||
cp -p %{SOURCE2} %{name}-java/pom.xml
|
||||
cp -p %{SOURCE4} %{name}-scala/pom.xml
|
||||
|
||||
for m in core java; do
|
||||
%pom_xpath_inject "pom:project" "
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
</plugins>
|
||||
</build>" %{name}-${m}
|
||||
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin %{name}-${m} "
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>"
|
||||
done
|
||||
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name}-core "
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-SymbolicName>org.parboiled.core</Bundle-SymbolicName>
|
||||
<Bundle-Name>org.parboiled.core</Bundle-Name>
|
||||
<Bundle-Version>\${project.version}</Bundle-Version>
|
||||
<Private-Package>org.parboiled.core.*</Private-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>"
|
||||
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name}-java "
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-SymbolicName>org.parboiled.java</Bundle-SymbolicName>
|
||||
<Bundle-Name>org.parboiled.java</Bundle-Name>
|
||||
<Bundle-Version>\${project.version}</Bundle-Version>
|
||||
<Fragment-Host>org.parboiled.core</Fragment-Host>
|
||||
<Private-Package>org.parboiled.java.*</Private-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>"
|
||||
|
||||
%patch0
|
||||
%patch1 -p1
|
||||
|
||||
cp -p %{SOURCE3} pom.xml
|
||||
sed -i "s|@VERSION@|%{version}|" pom.xml
|
||||
|
||||
%{mvn_file} :%{name}-core %{name}/core
|
||||
%{mvn_file} :%{name}-java %{name}/java
|
||||
%{mvn_package} :%{name}-project __noinstall
|
||||
%pom_xpath_inject "pom:modules" "<module>%{name}-scala</module>"
|
||||
%{mvn_file} :%{name}-scala_%{scala_short_version} %{name}/scala
|
||||
%{mvn_package} :%{name}-scala_%{scala_short_version} scala
|
||||
|
||||
%build
|
||||
|
||||
# test skipped unavailable dep org.scalatest scalatest_2.9.0 1.6.1
|
||||
%{mvn_build} -f -- -Dproject.build.sourceEncoding=UTF-8
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%doc CHANGELOG README.markdown
|
||||
%license LICENSE
|
||||
|
||||
%files scala -f .mfiles-scala
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user