[java-sig-commits] [fest-test] Initial import (#816957).

Mario Torre neugens at fedoraproject.org
Thu May 3 20:32:47 UTC 2012


commit debbec972ed9fd1b2d0fff8040514bf17a0a3b15
Author: neugens <neugens at redhat.com>
Date:   Thu May 3 22:32:30 2012 +0200

    Initial import (#816957).

 .gitignore               |    1 +
 fest-test.spec           |  105 ++++++++++++++++++++++++++++++++++++++++++++++
 fix-parent-version.patch |   13 ++++++
 fix-util-version.patch   |   11 +++++
 sources                  |    1 +
 5 files changed, 131 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..97470b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fest-test-1.2.1.tar.bz2
diff --git a/fest-test.spec b/fest-test.spec
new file mode 100644
index 0000000..3d2e472
--- /dev/null
+++ b/fest-test.spec
@@ -0,0 +1,105 @@
+Name:           fest-test
+Version:        1.2.1
+Release:        3%{?dist}
+Summary:        FEST Testing
+
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://fest.easytesting.org
+
+# git clone https://github.com/alexruiz/fest-test.git
+# cd fest-test
+# git archive --prefix="fest-test-1.2.1/" --format=tar \
+#   7a43f000480534f393150cbe0cdd0f9eab0e03b8 | \
+#   bzip2 - >../fest-test-1.2.1.tar.bz2
+Source0:        %{name}-%{version}.tar.bz2
+
+# those two patches make the fest version match with
+# the currently packaged (and compatible) version in
+# Fedora, and let us use a most up-to-date version of
+# the code, rather than an extremely old and
+# unmaintained one
+Patch0:         fix-parent-version.patch
+Patch1:         fix-util-version.patch
+
+BuildArch:      noarch
+
+BuildRequires:  mockito
+BuildRequires:  junit
+BuildRequires:  jpackage-utils
+BuildRequires:  java-devel
+
+BuildRequires:  maven
+BuildRequires:  maven-enforcer-plugin
+BuildRequires:  maven-surefire
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  maven-dependency-plugin
+
+BuildRequires:  fest-common = 1.0.11
+BuildRequires:  fest-util = 1.2.0
+
+Requires:       java
+Requires:       mockito
+Requires:       junit
+Requires:       fest-common = 1.0.11
+Requires:       fest-util = 1.2.0
+
+
+%description
+Utility methods for testing FEST modules
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+mvn-rpmbuild \
+        -e \
+        install javadoc:javadoc
+
+%install
+# jars
+install -d -m 0755 %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar  %{buildroot}%{_javadir}/%{name}.jar
+
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml \
+    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%doc LICENSE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.2.1-3
+- Cleanup patches
+- Add comment for the patches
+
+* Wed May 2 2012 Mario Torre <neugens at redhat.com> 1.2.1-2
+- Fix dependencies
+
+* Wed Apr 25 2012 Mario Torre <neugens at redhat.com> 1.2.1-1
+- Initial package
diff --git a/fix-parent-version.patch b/fix-parent-version.patch
new file mode 100644
index 0000000..0103f17
--- /dev/null
+++ b/fix-parent-version.patch
@@ -0,0 +1,13 @@
+diff -uN fest-test-1.2.1.orig/pom.xml fest-test-1.2.1/pom.xml
+--- fest-test-1.2.1.orig/pom.xml	2010-05-04 00:28:40.000000000 +0200
++++ fest-test-1.2.1/pom.xml	2012-04-25 15:29:24.749285421 +0200
+@@ -13,7 +13,7 @@
+   <parent>
+     <groupId>org.easytesting</groupId>
+     <artifactId>fest</artifactId>
+-    <version>1.0.1</version>
++    <version>1.0.11</version>
+   </parent>
+   <mailingLists>
+     <mailingList>
+
diff --git a/fix-util-version.patch b/fix-util-version.patch
new file mode 100644
index 0000000..7e44f6c
--- /dev/null
+++ b/fix-util-version.patch
@@ -0,0 +1,11 @@
+--- fest-test-1.2.1.orig/pom.xml	2010-05-04 00:28:40.000000000 +0200
++++ fest-test-1.2.1/pom.xml	2012-04-25 15:23:57.688456924 +0200
+@@ -36,7 +36,7 @@
+     <dependency>
+       <groupId>org.easytesting</groupId>
+       <artifactId>fest-util</artifactId>
+-      <version>1.1.2</version>
++      <version>1.2.0</version>
+       <scope>compile</scope>
+     </dependency>
+     <dependency>
diff --git a/sources b/sources
index e69de29..cae7ce0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c09400b67bcf03ce33e3843a437ab85f  fest-test-1.2.1.tar.bz2


More information about the java-sig-commits mailing list