gil pushed to proxytoys (master). "Initial import (#826038)."

notifications at fedoraproject.org notifications at fedoraproject.org
Tue May 26 20:29:21 UTC 2015


From 9626826cff84e9ef7b329304a901b5b5154426e5 Mon Sep 17 00:00:00 2001
From: gil <puntogil at libero.it>
Date: Tue, 26 May 2015 22:29:04 +0200
Subject: Initial import (#826038).


diff --git a/.gitignore b/.gitignore
index e69de29..1d9a49f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/proxytoys-6f4d22725ef28f09bfd5422939b83e1865b5daef.tar.gz
diff --git a/proxytoys-1.0-tests.patch b/proxytoys-1.0-tests.patch
new file mode 100644
index 0000000..1fb0e70
--- /dev/null
+++ b/proxytoys-1.0-tests.patch
@@ -0,0 +1,20 @@
+--- proxytoys/src/test/java/com/thoughtworks/proxy/AllTests.java	2010-05-13 13:19:38.000000000 +0200
++++ proxytoys/src/test/java/com/thoughtworks/proxy/AllTests.java.test	2015-04-02 11:10:37.157147989 +0200
+@@ -68,7 +68,7 @@
+             PoolTest.class,
+             PrivilegingTest.class
+     })
+-    static class CglibSuite {
++    public static class CglibSuite {
+         public CglibSuite() {
+             AbstractProxyTest.PROXY_FACTORY = new CglibProxyFactory();
+         }
+@@ -89,7 +89,7 @@
+             PoolTest.class,
+             PrivilegingTest.class
+     })
+-    static class StandardSuite {
++    public static class StandardSuite {
+         public StandardSuite() {
+             AbstractProxyTest.PROXY_FACTORY = new StandardProxyFactory();
+         }
diff --git a/proxytoys.spec b/proxytoys.spec
new file mode 100644
index 0000000..5dc3b46
--- /dev/null
+++ b/proxytoys.spec
@@ -0,0 +1,136 @@
+%global githash 6f4d22725ef28f09bfd5422939b83e1865b5daef
+Name:          proxytoys
+Version:       1.0
+Release:       3%{?dist}
+Summary:       An implementation neutral API for creation of dynamic proxies
+License:       BSD
+Url:           http://proxytoys.codehaus.org/
+# svn export http://svn.codehaus.org/proxytoys/tags/1.0/ proxytoys-1.0
+# tar cJf proxytoys-1.0.tar.xz proxytoys-1.0
+Source0:       https://github.com/proxytoys/proxytoys/archive/%{githash}/%{name}-%{githash}.tar.gz
+# initializationError
+# java.lang.Exception:
+# The class com.thoughtworks.proxy.AllTests$StandardSuite is not public.
+# The class com.thoughtworks.proxy.AllTests$CglibSuite is not public.
+Patch0:        proxytoys-1.0-tests.patch
+
+BuildRequires: maven-local
+BuildRequires: mvn(cglib:cglib)
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(net.sf.kxml:kxml2)
+BuildRequires: mvn(org.jvnet.hudson:xstream)
+BuildRequires: mvn(org.mockito:mockito-all)
+
+BuildArch:     noarch
+
+%description
+ProxyToys provides a collection of toys acting as factories for
+creating "special" proxies such as:
+
+* Decorators - for simple AOP-like chained method interception
+* Delegates - for method invocation on a delegate object,
+  that might have different type
+* Dispatcher proxy - single proxy instance dispatching method
+  calls to different object with separate types
+* Echo proxy - for tracing method calls
+* Failover objects - fails over to a next object in case of
+  exception
+* Hot swapping proxy - allows implementation hiding that
+  can be swapped, and mutual dependencies
+* Multicasting objects - for multicasting a method invocation
+  to multiple objects
+* Null objects - for default implementations of classes that
+  do nothing at all
+* Pool - for a pool implementation with proxied objects that
+  return automatically to the pool
+
+%package example-code
+Summary:       ProxyToys Example Code
+
+%description example-code
+This package contains ProxyToys example code.
+  
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}-%{githash}
+find -name '*.class' -delete
+find -name '*.jar' -print -delete
+%patch0 -p0
+
+# require xsite-maven-plugin
+%pom_disable_module website
+
+# remove wagon-webdav-jackrabbit
+%pom_xpath_remove "pom:build/pom:extensions"
+
+%pom_xpath_remove "pom:dependency[pom:classifier='javadoc']"
+%pom_xpath_set "pom:dependency[pom:groupId = 'cglib' ]/pom:artifactId" cglib
+
+%pom_remove_plugin :xsite-maven-plugin
+# Unwanted source jar
+%pom_remove_plugin :maven-source-plugin
+%pom_remove_plugin :maven-source-plugin example-code
+%pom_remove_plugin :maven-source-plugin %{name}
+%pom_remove_plugin :cobertura-maven-plugin
+%pom_remove_plugin :cobertura-maven-plugin %{name}
+
+%pom_xpath_set "pom:dependency[pom:groupId = 'cglib' ]/pom:artifactId" cglib %{name}
+# cglib isnt an optional dep
+%pom_xpath_remove "pom:dependency[pom:groupId='cglib']/pom:optional" %{name}
+
+# Unwanted javadoc jar. required only for build website module
+%pom_remove_plugin :maven-javadoc-plugin %{name}
+
+%pom_remove_plugin :findbugs-maven-plugin %{name}
+%pom_remove_plugin :javancss-maven-plugin %{name}
+%pom_remove_plugin :jdepend-maven-plugin %{name}
+%pom_remove_plugin :jxr-maven-plugin %{name}
+%pom_remove_plugin :maven-pmd-plugin %{name}
+
+# Fix test deps
+# see https://issues.jenkins-ci.org/browse/JENKINS-4752
+# solved in https://kenai.com/projects/hudson/sources/xstream/revision/23
+# com.thoughtworks.xstream.converters.ConversionException: java.lang.Class cannot be cast to java.lang.ref.WeakReference
+%pom_xpath_set "pom:dependency[pom:artifactId = 'xstream' ]/pom:groupId" org.jvnet.hudson
+%pom_xpath_set "pom:dependency[pom:artifactId = 'xstream' ]/pom:groupId" org.jvnet.hudson %{name}
+# NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory
+%pom_add_dep net.sf.kxml:kxml2::test %{name}
+
+%mvn_file :%{name} %{name}
+%mvn_file :%{name}-example-code %{name}-example-code
+%mvn_alias :%{name} "proxytoys:proxytoys"
+%mvn_package :%{name}-parent %{name}
+
+%build
+
+%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8
+
+%install
+%mvn_install
+
+%files -f .mfiles-%{name}
+%license LICENSE.txt
+
+%files example-code -f .mfiles-%{name}-example-code
+%license LICENSE.txt
+
+%files javadoc -f .mfiles-javadoc
+%license LICENSE.txt
+
+%changelog
+* Thu Apr 02 2015 gil cattaneo <puntogil at libero.it> 1.0-3
+- fix test deps
+
+* Thu Feb 12 2015 gil cattaneo <puntogil at libero.it> 1.0-2
+- use license macro
+
+* Fri Jun 07 2013 gil cattaneo <puntogil at libero.it> 1.0-1
+- update to 1.0
+
+* Fri Apr 20 2012 gil cattaneo <puntogil at libero.it> 0.2.1-1
+- initial rpm
diff --git a/sources b/sources
index e69de29..75437b8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a409f06871e34c8085ad07da06f78111  proxytoys-6f4d22725ef28f09bfd5422939b83e1865b5daef.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/proxytoys.git/commit/?h=master&id=9626826cff84e9ef7b329304a901b5b5154426e5


More information about the scm-commits mailing list