[powermock] 02/04: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Jun 28 22:02:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to annotated tag debian/1.6.5-1
in repository powermock.
commit 610602afd76df9c4ae9e7ec4ce5928a5131026d2
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Jun 28 16:21:11 2016 +0200
Initial packaging
---
debian/README.source | 9 ++
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 36 ++++++++
debian/copyright | 93 +++++++++++++++++++
debian/libpowermock-java.poms | 68 ++++++++++++++
debian/maven.ignoreRules | 16 ++++
debian/maven.properties | 5 +
debian/maven.rules | 7 ++
debian/patches/01-mockito-compatibility.patch | 126 ++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 9 ++
debian/source/format | 1 +
debian/watch | 2 +
14 files changed, 379 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..fff3f4a
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about powermock
+---------------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..265c2b1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+powermock (1.6.5-1) unstable; urgency=medium
+
+ * Initial release (Closes: #828849)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Tue, 28 Jun 2016 16:14:36 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..aae3da2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: powermock
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), default-jdk, maven-debian-helper (>= 2.0)
+Build-Depends-Indep: ant,
+ junit (>= 3.8.1),
+ junit4,
+ libassertj-core-java,
+ libcglib-nodep-java,
+ libcommons-logging-java,
+ libeasymock-java,
+ libjavassist-java,
+ libmaven-bundle-plugin-java,
+ libmockito-java (>= 1.10),
+ libobjenesis-java,
+ libxstream-java,
+ testng
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/powermock.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/powermock.git
+Homepage: http://www.powermock.org
+
+Package: libpowermock-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: PowerMock testing framework for Java
+ PowerMock allows you to unit test code normally regarded as untestable.
+ For instance it is possible to mock static methods, remove static initializers,
+ allow mocking without dependency injection and more. PowerMock works by
+ bytecode manipulation. PowerMock also contain some utilities that gives
+ you easier access to an objects internal state. PowerMock can be used to
+ test otherwise untestable code and also to achieve a cleaner separation
+ between test and production code.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fdd02c9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,93 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PowerMock
+Source: http://www.powermock.org
+
+Files: *
+Copyright: 2007-2016, Johan Haleby
+ 2014-2015, Henrik Kaipe
+ 2015, René Scheibe
+ 2016, Arthur Zagretdinov
+License: Apache-2.0
+
+Files: api/mockito2/src/main/java/org/powermock/api/mockito/repackaged/asm/*
+ modules/module-impl/agent/src/main/java/org/powermock/objectweb/asm/*
+Copyright: 2000-2007, INRIA, France Telecom
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the copyright holders nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: modules/module-impl/agent/src/main/java/com/sun/tools/attach/*
+ modules/module-impl/agent/src/main/java/sun/tools/attach/*
+Copyright: 2005-2006 Sun Microsystems, Inc.
+ 2005-2012, Oracle
+License: GPL-2 with Classpath exception
+ This code is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License version 2 only, as
+ published by the Free Software Foundation. Sun designates this
+ particular file as subject to the "Classpath" exception as provided
+ by Sun in the LICENSE file that accompanied this code.
+ .
+ This code is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ version 2 for more details (a copy is included in the LICENSE file that
+ accompanied this code).
+ .
+ You should have received a copy of the GNU General Public License version
+ 2 along with this work; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ CA 95054 USA or visit www.sun.com if you need additional information or
+ have any questions.
+
+Files: api/mockito/src/main/java/org/powermock/api/mockito/repackaged/*
+ api/mockito2/src/main/java/org/powermock/api/mockito/repackaged/*
+Copyright: 2007, Mockito contributors
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2016, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libpowermock-java.poms b/debian/libpowermock-java.poms
new file mode 100644
index 0000000..74e8ca9
--- /dev/null
+++ b/debian/libpowermock-java.poms
@@ -0,0 +1,68 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM and its artifact if any
+# --ignore-pom: don't install the POM. To use on POM files that are created
+# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install. [mh_install]
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
+pom.xml --no-parent --has-package-version
+core/pom.xml --has-package-version
+api/pom.xml --has-package-version
+api/easymock/pom.xml --has-package-version
+api/mockito-common/pom.xml --has-package-version
+api/mockito/pom.xml --has-package-version
+api/mockito2/pom.xml --ignore
+api/support/pom.xml --has-package-version
+examples/pom.xml --ignore
+modules/pom.xml --has-package-version
+modules/module-impl/pom.xml --has-package-version
+modules/module-impl/junit3/pom.xml --ignore
+modules/module-impl/junit4/pom.xml --has-package-version
+modules/module-impl/junit4-common/pom.xml --has-package-version
+modules/module-impl/junit4-legacy/pom.xml --ignore
+modules/module-impl/junit4-rule/pom.xml --has-package-version
+modules/module-impl/junit4-rule-agent/pom.xml --has-package-version
+modules/module-impl/testng/pom.xml --has-package-version
+modules/module-impl/testng-agent/pom.xml --has-package-version
+modules/module-impl/testng-common/pom.xml --has-package-version
+modules/module-impl/agent/pom.xml --has-package-version
+modules/module-test/pom.xml --ignore
+modules/module-test/easymock/pom.xml --ignore
+modules/module-test/easymock/junit3-test/pom.xml --ignore
+modules/module-test/easymock/junit4-legacy-test/pom.xml --ignore
+modules/module-test/easymock/junit4-test/pom.xml --ignore
+modules/module-test/easymock/junit45-test/pom.xml --ignore
+modules/module-test/easymock/testng-test/pom.xml --ignore
+modules/module-test/easymock/testng-agent-test/pom.xml --ignore
+modules/module-test/easymock/junit47-test/pom.xml --ignore
+modules/module-test/easymock/junit48-test/pom.xml --ignore
+modules/module-test/easymock/junit410-test/pom.xml --ignore
+modules/module-test/mockito/pom.xml --ignore
+tests/pom.xml --ignore
+tests/utils/pom.xml --ignore
+release/pom.xml --ignore
+reflect/pom.xml --has-package-version
+classloading/pom.xml --has-package-version
+classloading/classloading-base/pom.xml --has-package-version
+classloading/classloading-objenesis/pom.xml --has-package-version
+classloading/classloading-xstream/pom.xml --has-package-version
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..c9741a5
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,16 @@
+
+org.powermock powermock-module-test-easymock-junit410 jar * * *
+org.powermock powermock-module-test-easymock-junit48 jar * * *
+org.powermock powermock-modules-test-mockito pom * * *
+org.powermock powermock-release pom * * *
+org.powermock.examples powermock-examples pom * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-jxr-plugin * * * *
+org.apache.maven.plugins maven-pmd-plugin * * * *
+org.apache.maven.plugins maven-project-info-reports-plugin * * * *
+org.apache.maven.plugins maven-site-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+org.apache.maven.plugins maven-surefire-report-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
+org.codehaus.mojo rat-maven-plugin * * * *
+org.powermock.tests powermock-tests-utils * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..1b2608a
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,7 @@
+
+junit junit jar s/3\..*/3.x/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.testng testng jar s/6\..*/6.x/ * *
+s/easymock/org.easymock/ easymock * s/.*/debian/ * *
+s/org.javassist/javassist/ javassist * s/.*/debian/ * *
+org.mockito s/mockito-all/mockito-core/ * s/.*/debian/ * *
diff --git a/debian/patches/01-mockito-compatibility.patch b/debian/patches/01-mockito-compatibility.patch
new file mode 100644
index 0000000..f8d10bc
--- /dev/null
+++ b/debian/patches/01-mockito-compatibility.patch
@@ -0,0 +1,126 @@
+Description: Fixes the compatibility with the version of Mockito in Debian
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/MethodInterceptorFilter.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/MethodInterceptorFilter.java
+@@ -5,8 +5,8 @@
+
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.MethodInterceptor;
+-import org.mockito.cglib.proxy.MethodProxy;
++import net.sf.cglib.proxy.MethodInterceptor;
++import net.sf.cglib.proxy.MethodProxy;
+ import org.mockito.internal.InternalMockHandler;
+ import org.mockito.internal.creation.DelegatingMethod;
+ import org.mockito.internal.creation.util.MockitoMethodProxy;
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/ClassImposterizer.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/ClassImposterizer.java
+@@ -4,10 +4,10 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.core.CodeGenerationException;
+-import org.mockito.cglib.core.NamingPolicy;
+-import org.mockito.cglib.core.Predicate;
+-import org.mockito.cglib.proxy.*;
++import net.sf.cglib.core.CodeGenerationException;
++import net.sf.cglib.core.NamingPolicy;
++import net.sf.cglib.core.Predicate;
++import net.sf.cglib.proxy.*;
+ import org.mockito.exceptions.base.MockitoException;
+ import org.mockito.internal.creation.instance.InstantationException;
+ import org.mockito.internal.creation.instance.Instantiator;
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/CglibMockMaker.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/CglibMockMaker.java
+@@ -4,8 +4,8 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.Callback;
+-import org.mockito.cglib.proxy.Factory;
++import net.sf.cglib.proxy.Callback;
++import net.sf.cglib.proxy.Factory;
+ import org.mockito.exceptions.base.MockitoException;
+ import org.mockito.internal.InternalMockHandler;
+ import org.mockito.internal.creation.instance.InstantiatorProvider;
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/SerializableNoOp.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/SerializableNoOp.java
+@@ -4,8 +4,8 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.Callback;
+-import org.mockito.cglib.proxy.NoOp;
++import net.sf.cglib.proxy.Callback;
++import net.sf.cglib.proxy.NoOp;
+
+ import java.io.Serializable;
+
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/CGLIBHacker.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/CGLIBHacker.java
+@@ -4,7 +4,7 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.MethodProxy;
++import net.sf.cglib.proxy.MethodProxy;
+
+ import java.io.Serializable;
+ import java.lang.reflect.Field;
+--- a/api/mockito/src/main/java/org/powermock/api/extension/proxyframework/ProxyFrameworkImpl.java
++++ b/api/mockito/src/main/java/org/powermock/api/extension/proxyframework/ProxyFrameworkImpl.java
+@@ -15,8 +15,8 @@
+ */
+ package org.powermock.api.extension.proxyframework;
+
+-import org.mockito.cglib.proxy.Enhancer;
+-import org.mockito.cglib.proxy.Factory;
++import net.sf.cglib.proxy.Enhancer;
++import net.sf.cglib.proxy.Factory;
+ import org.powermock.reflect.spi.ProxyFramework;
+
+ /**
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/MockitoNamingPolicy.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/MockitoNamingPolicy.java
+@@ -4,7 +4,7 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.core.DefaultNamingPolicy;
++import net.sf.cglib.core.DefaultNamingPolicy;
+
+ class MockitoNamingPolicy extends DefaultNamingPolicy {
+
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/internal/mockcreation/PowerMockMethodInterceptorFilter.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/internal/mockcreation/PowerMockMethodInterceptorFilter.java
+@@ -1,6 +1,6 @@
+ package org.powermock.api.mockito.internal.mockcreation;
+
+-import org.mockito.cglib.proxy.MethodProxy;
++import net.sf.cglib.proxy.MethodProxy;
+ import org.mockito.internal.InternalMockHandler;
+ import org.mockito.mock.MockCreationSettings;
+ import org.powermock.api.mockito.repackaged.MethodInterceptorFilter;
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/DelegatingMockitoMethodProxy.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/DelegatingMockitoMethodProxy.java
+@@ -4,7 +4,7 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.MethodProxy;
++import net.sf.cglib.proxy.MethodProxy;
+ import org.mockito.internal.creation.util.MockitoMethodProxy;
+
+ class DelegatingMockitoMethodProxy implements MockitoMethodProxy {
+--- a/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/SerializableMockitoMethodProxy.java
++++ b/api/mockito/src/main/java/org/powermock/api/mockito/repackaged/SerializableMockitoMethodProxy.java
+@@ -4,7 +4,7 @@
+ */
+ package org.powermock.api.mockito.repackaged;
+
+-import org.mockito.cglib.proxy.MethodProxy;
++import net.sf.cglib.proxy.MethodProxy;
+ import org.mockito.internal.creation.util.MockitoMethodProxy;
+ import org.mockito.internal.util.reflection.Whitebox;
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a1d8e37
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-mockito-compatibility.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9867785
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME = /usr/lib/jvm/default-java
+
+%:
+ dh $@ --buildsystem=maven
+
+get-orig-source:
+ uscan --download-current-version --force-download --no-symlink
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8129096
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/jayway/powermock/tags .*/(?:.*?)([\d\.]+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/powermock.git
More information about the pkg-java-commits
mailing list