[randomizedtesting] Initial import (#1002157).

gil gil at fedoraproject.org
Thu Jan 23 14:30:12 UTC 2014


commit 631cb05bfeb78de5ab5ba81b2e39518076474123
Author: gil <puntogil at libero.it>
Date:   Thu Jan 23 15:30:21 2014 +0100

    Initial import (#1002157).

 .gitignore             |    1 +
 randomizedtesting.spec |  132 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 134 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c3f8d35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/2.0.15.tar.gz
diff --git a/randomizedtesting.spec b/randomizedtesting.spec
new file mode 100644
index 0000000..b122996
--- /dev/null
+++ b/randomizedtesting.spec
@@ -0,0 +1,132 @@
+Name:          randomizedtesting
+Version:       2.0.15
+Release:       1%{?dist}
+Summary:       Java Testing Framework
+License:       ASL 2.0
+URL:           http://labs.carrotsearch.com/randomizedtesting.html
+Source0:       https://github.com/carrotsearch/randomizedtesting/archive/release/%{version}.tar.gz
+
+BuildRequires: java-devel
+
+BuildRequires: mvn(asm:asm)
+BuildRequires: mvn(com.google.code.gson:gson)
+BuildRequires: mvn(com.google.guava:guava)
+BuildRequires: mvn(commons-io:commons-io)
+BuildRequires: mvn(dom4j:dom4j)
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(org.apache.ant:ant)
+BuildRequires: mvn(org.apache.ant:ant-junit)
+BuildRequires: mvn(org.apache.maven:maven-artifact)
+BuildRequires: mvn(org.apache.maven:maven-compat)
+BuildRequires: mvn(org.apache.maven:maven-core)
+BuildRequires: mvn(org.apache.maven:maven-plugin-api)
+BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
+BuildRequires: mvn(org.apache.maven.shared:maven-common-artifact-filters)
+BuildRequires: mvn(org.simpleframework:simple-xml)
+BuildRequires: mvn(org.sonatype.oss:oss-parent)
+%if 0
+# junit4-ant build tools
+BuildRequires: mvn(net.sf.proguard:proguard)
+BuildRequires: proguard-maven-plugin
+# Test deps
+BuildRequires: mvn(org.easytesting:fest-assert-core) >= 2.0M6
+%endif
+
+BuildRequires: maven-local
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-plugin-plugin
+
+Requires:      javapackages-tools
+BuildArch:     noarch
+
+%description
+Foundation classes and rules for applying the
+principles of Randomized Testing.
+
+%package junit4-ant
+Summary:       RandomizedTesting JUnit4 ANT Task
+Requires:      %{name} = %{version}-%{release}
+
+%description junit4-ant
+RandomizedTesting JUnit4 ANT Task.
+
+%package junit4-maven-plugin
+Summary:       RandomizedTesting JUnit4 Maven Plugin
+Requires:      %{name} = %{version}-%{release}
+
+%description junit4-maven-plugin
+RandomizedTesting JUnit4 Maven Plugin.
+
+%package runner
+Summary:       RandomizedTesting Randomized Runner
+Requires:      %{name} = %{version}-%{release}
+
+%description runner
+RandomizedRunner is a JUnit runner, so it is capable of
+running @Test-annotated test cases.
+
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}-release-%{version}
+find . -name "*.class" -delete
+find . -name "*.jar" -delete
+find . -name "*.dll" -delete
+find . -name "*.dylib" -delete
+find . -name "*.so" -delete
+
+# Remove bundled JavaScript libraries
+find . -name "*.js" -print -delete
+sed -i '/jquery/d' \
+ junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
+ junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java
+sed -i '/script.js/d' \
+ junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
+ junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java
+
+%pom_remove_dep org.easytesting:fest-assert-core randomized-runner
+
+%pom_disable_module examples/maven
+%pom_disable_module examples/ant
+%pom_disable_module packaging
+%pom_disable_module junit4-maven-plugin-tests
+
+%pom_remove_plugin com.pyx4me:proguard-maven-plugin junit4-ant
+%pom_remove_plugin org.codehaus.mojo:exec-maven-plugin junit4-ant
+%pom_remove_plugin :maven-dependency-plugin junit4-ant
+
+sed -i 's/\r//' README randomized-runner/README
+
+%build
+
+%mvn_package :%{name}-parent %{name}-runner
+# Requires org.easytesting:fest-assert-core >= 2.0M6
+%mvn_build -f -s
+
+%install
+%mvn_install
+
+%files
+%dir %{_javadir}/%{name}
+%doc LICENSE README
+
+%files junit4-ant -f .mfiles-junit4-ant
+
+%files junit4-maven-plugin -f .mfiles-junit4-maven-plugin
+
+%files runner -f .mfiles-%{name}-runner
+%doc randomized-runner/README
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE
+
+%changelog
+* Thu Jan 23 2014 gil cattaneo <puntogil at libero.it> 2.0.15-1
+- update to 2.0.15
+
+* Mon Jun 03 2013 gil cattaneo <puntogil at libero.it> 2.0.9-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..3b272cd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+01e27f95304c12dd6f6227145e0663a4  2.0.15.tar.gz


More information about the scm-commits mailing list