commit
a15c586895
29
0001-Disable-android-support.patch
Normal file
29
0001-Disable-android-support.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 57501046dc32012210433444543c513b20c5d517 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Mon, 30 May 2016 14:24:43 +0200
|
||||
Subject: [PATCH 1/3] Disable android support
|
||||
|
||||
---
|
||||
core/src/main/java/org/easymock/internal/MocksControl.java | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/core/src/main/java/org/easymock/internal/MocksControl.java b/core/src/main/java/org/easymock/internal/MocksControl.java
|
||||
index fb2a5dc..356b1c4 100644
|
||||
--- a/core/src/main/java/org/easymock/internal/MocksControl.java
|
||||
+++ b/core/src/main/java/org/easymock/internal/MocksControl.java
|
||||
@@ -147,12 +147,6 @@ public class MocksControl implements IMocksControl, IExpectationSetters<Object>,
|
||||
return cached;
|
||||
}
|
||||
|
||||
- // ///CLOVER:OFF
|
||||
- if (AndroidSupport.isAndroid()) {
|
||||
- return classProxyFactory = new AndroidClassProxyFactory();
|
||||
- }
|
||||
- // ///CLOVER:ON
|
||||
-
|
||||
return classProxyFactory = new ClassProxyFactory();
|
||||
}
|
||||
|
||||
--
|
||||
2.13.5
|
||||
|
||||
27
0002-Unshade-cglib-and-asm.patch
Normal file
27
0002-Unshade-cglib-and-asm.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 2ad2e79989f64072d8437ada55b12eaa8c23834d Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Mon, 30 May 2016 15:14:40 +0200
|
||||
Subject: [PATCH 2/3] Unshade cglib and asm
|
||||
|
||||
---
|
||||
core/pom.xml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/pom.xml b/core/pom.xml
|
||||
index 1ca847a..5ed6adb 100644
|
||||
--- a/core/pom.xml
|
||||
+++ b/core/pom.xml
|
||||
@@ -100,8 +100,8 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
- <Export-Package>org.easymock.internal.*;poweruser=true;mandatory:=poweruser,org.easymock,org.easymock.cglib.core,org.easymock.cglib.proxy,org.easymock.cglib.reflect,org.easymock.asm</Export-Package>
|
||||
- <Import-Package>org.easymock,org.easymock.internal;poweruser=true,org.easymock.cglib.core,org.easymock.cglib.proxy,org.easymock.cglib.reflect,org.easymock.asm,org.objenesis;resolution:=optional</Import-Package>
|
||||
+ <Export-Package>org.easymock.internal.*;poweruser=true;mandatory:=poweruser</Export-Package>
|
||||
+ <Import-Package>org.easymock,org.easymock.internal;poweruser=true,net.sf.cglib.core,net.sf.cglib.proxy,net.sf.cglib.reflect,org.objectweb.asm,org.objenesis;resolution:=optional</Import-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
--
|
||||
2.13.5
|
||||
|
||||
28
0003-Fix-OSGi-manifest.patch
Normal file
28
0003-Fix-OSGi-manifest.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From fa908a1748cb3090d677a63db4986ffc57acbf1e Mon Sep 17 00:00:00 2001
|
||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
Date: Wed, 1 Jun 2016 09:31:44 +0200
|
||||
Subject: [PATCH 3/3] Fix OSGi manifest
|
||||
|
||||
Resolves: rhbz#1341052
|
||||
---
|
||||
core/pom.xml | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/core/pom.xml b/core/pom.xml
|
||||
index 5ed6adb..ea6d015 100644
|
||||
--- a/core/pom.xml
|
||||
+++ b/core/pom.xml
|
||||
@@ -100,8 +100,9 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
- <Export-Package>org.easymock.internal.*;poweruser=true;mandatory:=poweruser</Export-Package>
|
||||
+ <Export-Package>org.easymock,org.easymock.internal.*;poweruser=true;mandatory:=poweruser</Export-Package>
|
||||
<Import-Package>org.easymock,org.easymock.internal;poweruser=true,net.sf.cglib.core,net.sf.cglib.proxy,net.sf.cglib.reflect,org.objectweb.asm,org.objenesis;resolution:=optional</Import-Package>
|
||||
+ <_nouses>true</_nouses>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
--
|
||||
2.13.5
|
||||
|
||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# easymock
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
||||
# easymock
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
easymock-3.5.tar.gz
Normal file
BIN
easymock-3.5.tar.gz
Normal file
Binary file not shown.
80
easymock.spec
Normal file
80
easymock.spec
Normal file
@ -0,0 +1,80 @@
|
||||
Name: easymock
|
||||
Version: 3.5
|
||||
Release: 5
|
||||
Summary: Easy mock objects
|
||||
License: ASL 2.0
|
||||
URL: http://www.easymock.org
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: generate-tarball.sh
|
||||
|
||||
Patch0001: 0001-Disable-android-support.patch
|
||||
Patch0002: 0002-Unshade-cglib-and-asm.patch
|
||||
Patch0003: 0003-Fix-OSGi-manifest.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: maven-local mvn(cglib:cglib) mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin) mvn(org.ow2.asm:asm)
|
||||
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit47) mvn(org.testng:testng)
|
||||
BuildRequires: mvn(org.apache.maven.surefire:surefire-testng) mvn(org.objenesis:objenesis)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) mvn(org.apache:apache-jar-resource-bundle)
|
||||
|
||||
Obsoletes: %{name}3 < 3.4
|
||||
Provides: %{name}3 = %{version}-%{release}
|
||||
Obsoletes: %{name}2 < 2.5.2-10
|
||||
|
||||
|
||||
%description
|
||||
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
|
||||
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
|
||||
of recording expectations, most refactorings will not affect the Mock Objects.
|
||||
So EasyMock is a perfect fit for Test-Driven Development.
|
||||
|
||||
%package help
|
||||
Summary: API documentation for easymock
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
The help for easymock to use.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{name}-%{version} -p1
|
||||
|
||||
%pom_remove_plugin :maven-license-plugin
|
||||
|
||||
rm core/src/main/java/org/easymock/internal/Android*.java
|
||||
rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java
|
||||
%pom_disable_module test-android
|
||||
%pom_remove_dep :dexmaker core
|
||||
|
||||
%pom_disable_module test-nodeps
|
||||
%pom_remove_plugin :maven-shade-plugin core
|
||||
|
||||
%pom_disable_module test-integration
|
||||
%pom_disable_module test-osgi
|
||||
|
||||
%pom_remove_plugin org.codehaus.mojo:versions-maven-plugin
|
||||
|
||||
%pom_remove_plugin :maven-timestamp-plugin
|
||||
|
||||
%mvn_file ":easymock{*}" easymock@1 easymock3@1
|
||||
|
||||
%pom_xpath_remove pom:extensions
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
|
||||
%files -f .mfiles
|
||||
%license core/LICENSE.txt
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%license core/LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 3.5-5
|
||||
- Package init
|
||||
23
generate-tarball.sh
Executable file
23
generate-tarball.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
name=easymock
|
||||
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
||||
|
||||
# RETRIEVE
|
||||
wget "https://github.com/${name}/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
|
||||
|
||||
rm -rf tarball-tmp
|
||||
mkdir tarball-tmp
|
||||
cd tarball-tmp
|
||||
tar xf "../${name}-${version}.orig.tar.gz"
|
||||
|
||||
# CLEAN TARBALL
|
||||
find -name '*.jar' -delete
|
||||
find -name '*.class' -delete
|
||||
# Contains minified js of uncertain origin
|
||||
rm -r */website
|
||||
|
||||
tar cf "../${name}-${version}.tar.gz" *
|
||||
cd ..
|
||||
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user