[fest-reflect] Initial import (#816927).

Mario Torre neugens at fedoraproject.org
Fri May 4 18:46:03 UTC 2012


commit 0c37e15e4c346be6e8e6a357d4e2c06e63463ef3
Author: neugens <neugens at redhat.com>
Date:   Fri May 4 20:45:45 2012 +0200

    Initial import (#816927).

 .gitignore                          |    1 +
 fest-reflect-fix-failing-test.patch |   16 +++++
 fest-reflect.spec                   |  115 +++++++++++++++++++++++++++++++++++
 fix-util-version.patch              |   15 +++++
 sources                             |    1 +
 5 files changed, 148 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1b995f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fest-reflect-1.3.tar.bz2
diff --git a/fest-reflect-fix-failing-test.patch b/fest-reflect-fix-failing-test.patch
new file mode 100644
index 0000000..975b818
--- /dev/null
+++ b/fest-reflect-fix-failing-test.patch
@@ -0,0 +1,16 @@
+--- fest-reflect-1.3.orig/src/test/java/org/fest/reflect/field/Field_staticField_Test.java	2012-04-03 23:26:16.000000000 +0200
++++ fest-reflect-1.3/src/test/java/org/fest/reflect/field/Field_staticField_Test.java	2012-05-04 19:31:25.668328802 +0200
+@@ -135,11 +135,13 @@
+ 
+   @Test
+   public void should_use_TypeRef_to_read_static_field() {
++    Jedi.clearCommonPowers();
+     Jedi.addCommonPower("jump");
+     List<String> powers = StaticFieldName.beginStaticFieldAccess("commonPowers").ofType(new TypeRef<List<String>>() {})
+         .in(Jedi.class).get();
+     assertEquals(1, powers.size());
+     assertEquals("jump", powers.get(0));
++    Jedi.clearCommonPowers();
+   }
+ 
+   @Test
diff --git a/fest-reflect.spec b/fest-reflect.spec
new file mode 100644
index 0000000..d171a36
--- /dev/null
+++ b/fest-reflect.spec
@@ -0,0 +1,115 @@
+Name:           fest-reflect
+Version:        1.3
+Release:        7%{?dist}
+Summary:        FEST Reflection
+
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://fest.easytesting.org
+
+# git clone https://github.com/alexruiz/fest-reflect.git
+# cd fest-reflect
+# git archive --prefix="fest-reflect-1.3/" --format=tar \
+#   1d1da6a9c1f445906c409a1c0df68052ec6d0ad4 | \
+#   bzip2 - >../fest-reflect-1.3.tar.bz2
+Source0:        %{name}-%{version}.tar.bz2
+
+# bump up the version number of the fest-util dependency
+# so that it matches the fedora packaged one
+Patch0:         fix-util-version.patch
+
+# fix a spurious failing test
+Patch1:         fest-reflect-fix-failing-test.patch
+
+BuildArch:      noarch
+
+BuildRequires:  mockito
+BuildRequires:  junit
+BuildRequires:  jpackage-utils
+BuildRequires:  java-devel
+
+BuildRequires:  fest-common = 1.0.11
+BuildRequires:  fest-util = 1.2.0
+BuildRequires:  fest-test = 1.2.1
+
+BuildRequires:  maven
+BuildRequires:  maven-enforcer-plugin
+BuildRequires:  maven-surefire
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  maven-dependency-plugin
+
+Requires:       java
+Requires:       jpackage-utils
+Requires:       fest-common = 1.0.11
+Requires:       fest-util = 1.2.0
+
+%description
+Fluent Interface that simplifies usage of Java Reflection
+
+%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
+
+* Fri May 4 2012 Mario Torre <neugens at redhat.com> 1.3-7
+- Fix spuriously failing test
+
+* Fri May 4 2012 Mario Torre <neugens at redhat.com> 1.3-6
+- Add dependency on jpackage-utils
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.3-5
+- re-add LICENSE file in javadoc subpackage, as per packaging guidelines
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.3-4
+- Fix duplicate LICENSE files in javadoc
+- Fix runtime vs. compile time dependencies
+
+* Thu May 3 2012 Mario Torre <neugens at redhat.com> 1.3-3
+- Add comment for patch in spec file
+
+* Wed May 2 2012 Mario Torre <neugens at redhat.com> 1.3-2
+- Fix dependencies
+
+* Wed Apr 25 2012 Mario Torre <neugens at redhat.com> 1.3-1
+- Initial package
diff --git a/fix-util-version.patch b/fix-util-version.patch
new file mode 100644
index 0000000..471741d
--- /dev/null
+++ b/fix-util-version.patch
@@ -0,0 +1,15 @@
+Sottodirectory in comune: fest-reflect.orig/.git e fest-reflect/.git
+diff -uN fest-reflect.orig/pom.xml fest-reflect/pom.xml
+--- fest-reflect.orig/pom.xml	2012-04-25 15:02:37.772900043 +0200
++++ fest-reflect/pom.xml	2012-04-25 15:07:20.590740032 +0200
+@@ -35,7 +35,7 @@
+     <dependency>
+       <groupId>org.easytesting</groupId>
+       <artifactId>fest-util</artifactId>
+-      <version>1.1.6</version>
++      <version>1.2</version>
+       <type>jar</type>
+     </dependency>
+     <dependency>
+Sottodirectory in comune: fest-reflect.orig/.settings e fest-reflect/.settings
+Sottodirectory in comune: fest-reflect.orig/src e fest-reflect/src
diff --git a/sources b/sources
index e69de29..16b2f16 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+58a1af58aa2f4625ba8426bd8cc2bcc0  fest-reflect-1.3.tar.bz2


More information about the scm-commits mailing list