[java-sig-commits] [fest-swing] Initial import (#816967).

Mario Torre neugens at fedoraproject.org
Mon May 7 11:16:08 UTC 2012


commit c69ebb9cee5cd2b8e0caa5f85e4941639f449256
Author: neugens <neugens at redhat.com>
Date:   Mon May 7 13:15:56 2012 +0200

    Initial import (#816967).

 .gitignore             |    1 +
 fest-swing.spec        |  117 ++++++++++++++++++++++++++++++++++++++++++++++++
 fix-assert-deps.patch  |   12 +++++
 fix-encoding.patch     |   13 +++++
 fix-parent-pom.patch   |   12 +++++
 make-fest-tarball.sh   |    7 +++
 remove-mock-deps.patch |   16 +++++++
 sources                |    1 +
 8 files changed, 179 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fb8fbb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fest-swing-1.2.1.tar.bz2
diff --git a/fest-swing.spec b/fest-swing.spec
new file mode 100644
index 0000000..ae36c77
--- /dev/null
+++ b/fest-swing.spec
@@ -0,0 +1,117 @@
+Name:           fest-swing
+Version:        1.2.1
+Release:        6%{?dist}
+Summary:        FEST Swing
+
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://fest.easytesting.org
+
+# from http://svn.codehaus.org/fest/tags/fest-swing-1.2.1
+# use make-fest-tarball.sh to generate
+Source0:        fest-swing-%{version}.tar.bz2
+Source1:        make-fest-tarball.sh
+
+# make sure dependencies match the available packages
+Patch0:         remove-mock-deps.patch
+Patch1:         fix-assert-deps.patch
+Patch2:         fix-parent-pom.patch
+Patch3:         fix-encoding.patch
+
+BuildArch:      noarch
+
+BuildRequires:  jcip-annotations
+BuildRequires:  jpackage-utils
+BuildRequires:  fest-common = 1.0.11
+BuildRequires:  fest-util = 1.2.0
+
+BuildRequires:  fest-reflect = 1.3
+BuildRequires:  fest-assert = 1.4
+
+BuildRequires:  maven
+BuildRequires:  maven-enforcer-plugin
+BuildRequires:  maven-surefire
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  maven-dependency-plugin
+
+Requires:       jcip-annotations
+Requires:       java
+Requires:       jpackage-utils
+
+Requires:       fest-common = 1.0.11
+Requires:       fest-util = 1.2.0
+Requires:       fest-reflect = 1.3
+Requires:       fest-assert = 1.4
+
+%description
+Fluent interface for functional GUI testing
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+# skip test because we don't package fest-mock, since it indirectly
+# requires a library who doesn't comply with the allowed lincenses
+%build
+mvn-rpmbuild \
+        -Dmaven.test.skip=true \
+        -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
+
+* Fri May 4 2012 Mario Torre <neugens at redhat.com> 1.2.1-6
+- Cleanup patch
+
+* Fri May 4 2012 Mario Torre <neugens at redhat.com> 1.2.1-5
+- Add script to generate source from svn
+- Add more depencencies
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.2.1-4
+- Renamed back to match Fedora packaging guidelines name
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.2.1-3
+- Renamed to match upstream name
+
+* Thu May 3 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-assert-deps.patch b/fix-assert-deps.patch
new file mode 100644
index 0000000..b9b26b5
--- /dev/null
+++ b/fix-assert-deps.patch
@@ -0,0 +1,12 @@
+diff -uNr fest-swing-1.2.1.orig/pom.xml fest-swing-1.2.1/pom.xml
+--- fest-swing-1.2.1.orig/pom.xml	2012-04-26 20:52:23.402360827 +0200
++++ fest-swing-1.2.1/pom.xml	2012-04-26 20:54:50.962296326 +0200
+@@ -71,7 +71,7 @@
+     <dependency>
+       <groupId>org.easytesting</groupId>
+       <artifactId>fest-assert</artifactId>
+-      <version>1.2</version>
++      <version>1.4</version>
+       <scope>compile</scope>
+     </dependency>
+     <dependency>
diff --git a/fix-encoding.patch b/fix-encoding.patch
new file mode 100644
index 0000000..d480968
--- /dev/null
+++ b/fix-encoding.patch
@@ -0,0 +1,13 @@
+diff -uNr fest-swing-1.2.1.orig/pom.xml fest-swing-1.2.1/pom.xml
+--- fest-swing-1.2.1.orig/pom.xml	2012-04-26 21:25:51.036554565 +0200
++++ fest-swing-1.2.1/pom.xml	2012-04-26 21:26:44.464531629 +0200
+@@ -58,6 +58,9 @@
+       </plugin>
+     </plugins>
+   </build>
++  <properties>
++    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
++  </properties>  
+   <scm>
+     <developerConnection>scm:svn:https://svn.codehaus.org/fest/</developerConnection>
+     <connection>scm:svn:http://svn.codehaus.org/fest/</connection>
diff --git a/fix-parent-pom.patch b/fix-parent-pom.patch
new file mode 100644
index 0000000..0052c1d
--- /dev/null
+++ b/fix-parent-pom.patch
@@ -0,0 +1,12 @@
+diff -uNr fest-swing-1.2.1.orig/pom.xml fest-swing-1.2.1/pom.xml
+--- fest-swing-1.2.1.orig/pom.xml	2012-04-26 20:59:28.668174946 +0200
++++ fest-swing-1.2.1/pom.xml	2012-04-26 21:00:00.270161133 +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/make-fest-tarball.sh b/make-fest-tarball.sh
new file mode 100755
index 0000000..5e4cc7f
--- /dev/null
+++ b/make-fest-tarball.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+VERSION=1.2.1
+SRCDIR=fest-swing-${VERSION}
+
+svn export http://svn.codehaus.org/fest/tags/fest-swing-1.2.1 ${SRCDIR}
+tar -cvjf fest-swing-${VERSION}.tar.bz2 ${SRCDIR}
diff --git a/remove-mock-deps.patch b/remove-mock-deps.patch
new file mode 100644
index 0000000..8dd30fd
--- /dev/null
+++ b/remove-mock-deps.patch
@@ -0,0 +1,16 @@
+diff -uNr fest-swing-1.2.1.orig/pom.xml fest-swing-1.2.1/pom.xml
+--- fest-swing-1.2.1.orig/pom.xml	2012-04-26 20:50:07.000000000 +0200
++++ fest-swing-1.2.1/pom.xml	2012-04-26 20:52:23.402360827 +0200
+@@ -94,12 +94,6 @@
+     </dependency>
+     <dependency>
+       <groupId>org.easytesting</groupId>
+-      <artifactId>fest-mocks</artifactId>
+-      <version>1.1</version>
+-      <scope>test</scope>
+-    </dependency>
+-    <dependency>
+-      <groupId>org.easytesting</groupId>
+       <artifactId>fest-test</artifactId>
+       <version>1.2</version>
+       <scope>test</scope>
diff --git a/sources b/sources
index e69de29..15fb510 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4df3747fddcb864684e0334660c4349c  fest-swing-1.2.1.tar.bz2


More information about the java-sig-commits mailing list