|
|
3dfed3 |
%{?scl:%scl_package mockito}
|
|
|
3dfed3 |
%{!?scl:%global pkg_name %{name}}
|
|
|
3dfed3 |
%{?java_common_find_provides_and_requires}
|
|
|
3dfed3 |
|
|
|
3dfed3 |
Name: %{?scl_prefix}mockito
|
|
|
3dfed3 |
Version: 1.10.19
|
|
|
88091e |
Release: 3.7%{?dist}
|
|
|
3dfed3 |
Summary: A Java mocking framework
|
|
|
3dfed3 |
|
|
|
3dfed3 |
License: MIT
|
|
|
3dfed3 |
URL: http://mockito.org
|
|
|
3dfed3 |
Source0: mockito-%{version}.tar.xz
|
|
|
3dfed3 |
Source1: make-mockito-sourcetarball.sh
|
|
|
3dfed3 |
Patch0: fixup-ant-script.patch
|
|
|
3dfed3 |
Patch1: fix-bnd-config.patch
|
|
|
3dfed3 |
Patch2: mockito-matcher.patch
|
|
|
3dfed3 |
# Workaround for NPE in setting NamingPolicy in cglib
|
|
|
3dfed3 |
Patch3: setting-naming-policy.patch
|
|
|
3dfed3 |
# because we have old objenesis
|
|
|
3dfed3 |
Patch4: fix-incompatible-types.patch
|
|
|
3dfed3 |
|
|
|
3dfed3 |
BuildArch: noarch
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_java_common}javapackages-local
|
|
|
3dfed3 |
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_java_common}ant
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_java_common}objenesis
|
|
|
88091e |
BuildRequires: %{?scl_prefix}cglib
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_java_common}junit
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_java_common}hamcrest
|
|
|
3dfed3 |
BuildRequires: %{?scl_prefix_maven}aqute-bnd
|
|
|
3dfed3 |
|
|
|
3dfed3 |
Requires: %{?scl_prefix_java_common}objenesis
|
|
|
88091e |
Requires: %{?scl_prefix}cglib
|
|
|
3dfed3 |
Requires: %{?scl_prefix_java_common}junit
|
|
|
3dfed3 |
Requires: %{?scl_prefix_java_common}hamcrest
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%description
|
|
|
3dfed3 |
Mockito is a mocking framework that tastes really good. It lets you write
|
|
|
3dfed3 |
beautiful tests with clean & simple API. Mockito doesn't give you hangover
|
|
|
3dfed3 |
because the tests are very readable and they produce clean verification
|
|
|
3dfed3 |
errors.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%package javadoc
|
|
|
3dfed3 |
Summary: Javadocs for %{pkg_name}
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%description javadoc
|
|
|
3dfed3 |
This package contains the API documentation for %{pkg_name}.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%prep
|
|
|
3dfed3 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
3dfed3 |
%setup -n %{pkg_name}-%{version} -q
|
|
|
3dfed3 |
%patch0
|
|
|
3dfed3 |
%patch1
|
|
|
3dfed3 |
# Set Bundle-Version properly
|
|
|
3dfed3 |
sed -i 's/Bundle-Version= ${version}/Bundle-Version= %{version}/' conf/mockito-core.bnd
|
|
|
3dfed3 |
%patch2 -p1
|
|
|
3dfed3 |
%patch3 -p1
|
|
|
3dfed3 |
%patch4 -p1
|
|
|
3dfed3 |
|
|
|
88091e |
%pom_add_dep net.sf.cglib:cglib:3.1 maven/mockito-core.pom
|
|
|
3dfed3 |
find . -name "*.java" -exec sed -i "s|org\.mockito\.cglib|net\.sf\.cglib|g" {} +
|
|
|
3dfed3 |
mkdir -p lib/compile
|
|
|
3dfed3 |
%{?scl:EOF}
|
|
|
3dfed3 |
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%build
|
|
|
3dfed3 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
3dfed3 |
build-jar-repository lib/compile objenesis cglib junit hamcrest/core
|
|
|
3dfed3 |
ant jar javadoc
|
|
|
3dfed3 |
# Convert to OSGi bundle
|
|
|
3dfed3 |
pushd target
|
|
|
3dfed3 |
java -jar $(build-classpath aqute-bnd) wrap -output mockito-core-%{version}.bar -properties ../conf/mockito-core.bnd mockito-core-%{version}.jar
|
|
|
3dfed3 |
unzip mockito-core-%{version}.bar META-INF/MANIFEST.MF
|
|
|
3dfed3 |
sed -i -e '2iRequire-Bundle: org.hamcrest.core' META-INF/MANIFEST.MF
|
|
|
3dfed3 |
jar umf META-INF/MANIFEST.MF mockito-core-%{version}.jar
|
|
|
3dfed3 |
popd
|
|
|
3dfed3 |
|
|
|
3dfed3 |
sed -i -e "s|@version@|%{version}|g" maven/mockito-core.pom
|
|
|
3dfed3 |
%mvn_artifact maven/mockito-core.pom target/mockito-core-%{version}.jar
|
|
|
3dfed3 |
%mvn_alias org.mockito:mockito-core org.mockito:mockito-all
|
|
|
3dfed3 |
%{?scl:EOF}
|
|
|
3dfed3 |
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%install
|
|
|
3dfed3 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
3dfed3 |
%mvn_install -J target/javadoc
|
|
|
3dfed3 |
%{?scl:EOF}
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%files -f .mfiles
|
|
|
3dfed3 |
%doc NOTICE
|
|
|
3dfed3 |
%doc LICENSE
|
|
|
3dfed3 |
%dir %{_javadir}/mockito
|
|
|
3dfed3 |
%dir %{_mavenpomdir}/mockito
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%files javadoc -f .mfiles-javadoc
|
|
|
3dfed3 |
%doc LICENSE
|
|
|
3dfed3 |
%doc NOTICE
|
|
|
3dfed3 |
|
|
|
3dfed3 |
%changelog
|
|
|
88091e |
* Tue Feb 16 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-3.7
|
|
|
88091e |
- Specify compat version of cglib
|
|
|
88091e |
|
|
|
88091e |
* Tue Feb 16 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-3.6
|
|
|
88091e |
- Use newer version of cglib and import more packages in OSGi metadata
|
|
|
88091e |
|
|
|
3dfed3 |
* Tue Sep 01 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3.5
|
|
|
3dfed3 |
- Require hamcrest explicitly in OSGi metadata
|
|
|
3dfed3 |
- Resolves: rhbz#1249667
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Jul 13 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3.4
|
|
|
3dfed3 |
- Fix unowned directories
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Jun 29 2015 Roland Grunberg <rgrunber@redhat.com> - 1.10.19-3.3
|
|
|
3dfed3 |
- Change manifest to allow for usage of objenesis 1.x.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Jun 29 2015 Alexander Kurtakov <akurtako@redhat.com> 1.10.19-3.2
|
|
|
3dfed3 |
- Rebuild to get correct dist tag.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Tue Jun 23 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3.1
|
|
|
3dfed3 |
- Import latest from Fedora
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Jun 22 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3
|
|
|
3dfed3 |
- Switch to mvn_install
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.19-2
|
|
|
3dfed3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Wed Apr 29 2015 Michal Srb <msrb@redhat.com> - 1.10.19-1
|
|
|
3dfed3 |
- Update to 1.10.19
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Aug 25 2014 Darryl L. Pierce <dpierce@redhat.com> - 1.9.0-18
|
|
|
3dfed3 |
- First build for EPEL7
|
|
|
3dfed3 |
- Resolves: BZ#1110030
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Jun 09 2014 Omair Majid <omajid@redhat.com> - 1.9.0-17
|
|
|
3dfed3 |
- Use .mfiles to pick up xmvn metadata
|
|
|
3dfed3 |
- Don't use obsolete _mavenpomdir and _mavendepmapfragdir macros
|
|
|
3dfed3 |
- Fix FTBFS
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-17
|
|
|
3dfed3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Thu May 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1.9.0-16
|
|
|
3dfed3 |
- Use junit R/BR over junit4.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.9.0-15
|
|
|
3dfed3 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Wed Dec 11 2013 Michael Simacek <msimacek@redhat.com> - 1.9.0-14
|
|
|
3dfed3 |
- Workaround for NPE in setting NamingPolicy
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-13
|
|
|
3dfed3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Mar 25 2013 Tomas Radej <tradej@redhat.com> - 1.9.0-12
|
|
|
3dfed3 |
- Patched LocalizedMatcher due to hamcrest update, (bug upstream)
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-11
|
|
|
3dfed3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Thu Sep 6 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-10
|
|
|
3dfed3 |
- More Import-Package fixes. Note that fix-cglib-refs.patch is
|
|
|
3dfed3 |
not suitable for upstream:
|
|
|
3dfed3 |
http://code.google.com/p/mockito/issues/detail?id=373
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Tue Sep 4 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-9
|
|
|
3dfed3 |
- Fix missing Import-Package in manifest.
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8
|
|
|
3dfed3 |
- Add aqute bnd instructions for OSGi metadata
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-7
|
|
|
3dfed3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Mon Apr 30 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-6
|
|
|
3dfed3 |
- Place JavaDoc in directly under %{_javadocdir}/%{pkg_name} instead
|
|
|
3dfed3 |
of %{_javadocdir}/%{pkg_name}/javadoc
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Wed Apr 25 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-5
|
|
|
3dfed3 |
- Removed post/postun hook for update_maven_depmap
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Tue Apr 24 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-4
|
|
|
3dfed3 |
- Fix groupId of cglib dependency
|
|
|
3dfed3 |
- Add additional depmap for mockito-all
|
|
|
3dfed3 |
- Update depmap on post and postun
|
|
|
3dfed3 |
- Fix version in pom
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Wed Feb 22 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-3
|
|
|
3dfed3 |
- Added cglib dependency to pom
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Tue Feb 21 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-2
|
|
|
3dfed3 |
- Include upstream Maven pom.xml in package
|
|
|
3dfed3 |
- Added missing Requires for cglib, junit4, hamcrest, objenesis
|
|
|
3dfed3 |
- Added source tarball generating script to sources
|
|
|
3dfed3 |
|
|
|
3dfed3 |
* Thu Feb 16 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-1
|
|
|
3dfed3 |
- Initial package
|