Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 607204 Details for
Bug 852063
Mockito should be an OSGi bundle
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed fix
mockito_osgi.patch (text/plain), 3.73 KB, created by
Severin Gehwolf
on 2012-08-27 13:23:37 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Severin Gehwolf
Created:
2012-08-27 13:23:37 UTC
Size:
3.73 KB
patch
obsolete
>diff --git a/fix-bnd-config.patch b/fix-bnd-config.patch >new file mode 100644 >index 0000000..69ca61f >--- /dev/null >+++ b/fix-bnd-config.patch >@@ -0,0 +1,30 @@ >+--- conf/mockito-core.bnd.orig 2012-08-27 15:14:35.961849043 +0200 >++++ conf/mockito-core.bnd 2012-08-27 15:15:12.071359173 +0200 >+@@ -1,24 +1,17 @@ >+--classpath= lib/run/com.springsource.org.junit-4.5.0.jar, \ >+- lib/run/com.springsource.org.hamcrest.core-1.1.0.jar, \ >+- lib/run/com.springsource.org.objenesis-1.0.0.jar >+--versionpolicy=[${version;==;${@}},${version;+;${@}}) >+- >+ Bundle-Name= Mockito Mock Library for Java. Core bundle requires Hamcrest-core and Objenesis. >+ Bundle-SymbolicName= org.mockito.mockito-core >+-Bundle-Version= ${version} >+ >+ Export-Package= !org.mockito.asm.*, \ >+ !org.mockito.cglib.*, \ >+ !org.mockito.internal.*, \ >+- org.mockito.*;version=${version} >++ org.mockito.* >+ >+ Import-Package= junit.*;resolution:=optional, \ >+ org.junit.*;resolution:=optional, \ >+- org.apache.tools.ant.*;resolution:=optional, \ >+ org.hamcrest;version="[1.0,2.0)", \ >+ org.objenesis;version="[1.0,2.0)", \ >+ org.mockito.* >+ >+ Private-Package: org.mockito.* >+ >+--removeheaders: Private-Package >+\ No newline at end of file >++-removeheaders: Private-Package >diff --git a/make-mockito-sourcetarball.sh b/make-mockito-sourcetarball.sh >index 54d1d6e..224d629 100644 >--- a/make-mockito-sourcetarball.sh >+++ b/make-mockito-sourcetarball.sh >@@ -4,10 +4,16 @@ VERSION=1.9.0 > SRCDIR=mockito-${VERSION} > > hg clone https://code.google.com/p/mockito/ ${SRCDIR} >-cd $SRCDIR >-hg update ${VERSION} >-rm -rf `find -name *.jar` build.gradle cglib-and-asm conf doc gradle gradlew gradlew.bat >+pushd $SRCDIR >+hg archive --prefix ${SRCDIR} -t tar -r ${VERSION} ../${SRCDIR}.tar >+popd >+ >+rm -rf ${SRCDIR} >+ >+tar -xf ${SRCDIR}.tar >+pushd ${SRCDIR} >+rm -rf `find -name *.jar` build.gradle cglib-and-asm doc gradle gradlew gradlew.bat > dos2unix `find -name *.java` >-cd .. >+popd > > tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR} >diff --git a/mockito.spec b/mockito.spec >index 45f8b41..2daa4c0 100644 >--- a/mockito.spec >+++ b/mockito.spec >@@ -1,6 +1,6 @@ > Name: mockito > Version: 1.9.0 >-Release: 7%{?dist} >+Release: 8%{?dist} > Summary: A Java mocking framework > > License: MIT >@@ -10,6 +10,7 @@ Source1: make-mockito-sourcetarball.sh > Patch0: fixup-ant-script.patch > Patch1: fix-cglib-refs.patch > Patch2: maven-cglib-dependency.patch >+Patch3: fix-bnd-config.patch > > BuildArch: noarch > BuildRequires: jpackage-utils >@@ -46,14 +47,19 @@ This package contains the API documentation for %{name}. > %patch0 -p1 > %patch1 -p1 > %patch2 -p1 >+%patch3 > > %build > ant jar javadoc >+# Convert to OSGi bundle >+pushd target >+java -jar $(build-classpath aqute-bnd) wrap -output mockito-core-%{version}.bar -properties ../conf/mockito-core.bnd mockito-core-%{version}.jar >+popd > > %install > mkdir -p $RPM_BUILD_ROOT%{_javadir} > sed -i -e "s|@version@|%{version}|g" maven/mockito-core.pom >-cp -p target/mockito-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar >+cp -p target/mockito-core-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar > > install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} > install -pm 644 maven/mockito-core.pom \ >@@ -77,6 +83,9 @@ cp -rp target/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} > %doc NOTICE > > %changelog >+* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8 >+- Add aqute bnd instructions for OSGi metadata >+ > * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-7 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 852063
: 607204