2012-02-22 14:02:33 +00:00
|
|
|
Name: mockito
|
2015-04-29 16:47:06 +00:00
|
|
|
Version: 1.10.19
|
2017-02-16 13:22:30 +00:00
|
|
|
Release: 12%{?dist}
|
2012-02-22 14:02:33 +00:00
|
|
|
Summary: A Java mocking framework
|
|
|
|
|
|
|
|
License: MIT
|
2015-12-25 13:46:41 +00:00
|
|
|
URL: http://%{name}.org
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: make-%{name}-sourcetarball.sh
|
2012-02-22 14:02:33 +00:00
|
|
|
Patch0: fixup-ant-script.patch
|
2015-04-29 16:47:06 +00:00
|
|
|
Patch1: fix-bnd-config.patch
|
2015-12-25 13:46:41 +00:00
|
|
|
Patch2: %{name}-matcher.patch
|
2013-12-11 08:37:01 +00:00
|
|
|
# Workaround for NPE in setting NamingPolicy in cglib
|
2015-04-29 16:47:06 +00:00
|
|
|
Patch3: setting-naming-policy.patch
|
|
|
|
# because we have old objenesis
|
|
|
|
Patch4: fix-incompatible-types.patch
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2015-06-22 08:23:00 +00:00
|
|
|
BuildRequires: javapackages-local
|
2012-02-22 14:02:33 +00:00
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: objenesis
|
|
|
|
BuildRequires: cglib
|
2014-05-22 14:10:44 +00:00
|
|
|
BuildRequires: junit
|
2012-02-22 14:02:33 +00:00
|
|
|
BuildRequires: hamcrest
|
2012-08-31 16:21:29 +00:00
|
|
|
BuildRequires: aqute-bnd
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
Requires: objenesis
|
|
|
|
Requires: cglib
|
2014-05-22 14:10:44 +00:00
|
|
|
Requires: junit
|
2012-02-22 14:02:33 +00:00
|
|
|
Requires: hamcrest
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mockito is a mocking framework that tastes really good. It lets you write
|
|
|
|
beautiful tests with clean & simple API. Mockito doesn't give you hangover
|
|
|
|
because the tests are very readable and they produce clean verification
|
|
|
|
errors.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadocs for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-06-22 08:23:00 +00:00
|
|
|
%patch0
|
2016-02-12 18:26:26 +00:00
|
|
|
%patch1
|
2015-04-29 16:47:06 +00:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2013-04-05 14:28:28 +00:00
|
|
|
%patch4 -p1
|
2015-12-18 16:02:51 +00:00
|
|
|
# workaround rhbz#1292777 Files not found for javadoc generation
|
|
|
|
touch javadoc/stylesheet.css
|
2015-04-29 16:47:06 +00:00
|
|
|
|
2016-02-22 12:17:02 +00:00
|
|
|
%pom_add_dep net.sf.cglib:cglib:3.1 maven/mockito-core.pom
|
2015-12-25 13:46:41 +00:00
|
|
|
find . -name "*.java" -exec sed -i "s|org\.%{name}\.cglib|net\.sf\.cglib|g" {} +
|
2015-04-29 16:47:06 +00:00
|
|
|
mkdir -p lib/compile
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
%build
|
2015-06-22 08:23:00 +00:00
|
|
|
build-jar-repository lib/compile objenesis cglib junit hamcrest/core
|
2012-02-22 14:02:33 +00:00
|
|
|
ant jar javadoc
|
2016-02-12 18:26:26 +00:00
|
|
|
|
2012-08-31 15:45:18 +00:00
|
|
|
# Convert to OSGi bundle
|
|
|
|
pushd target
|
2015-12-25 13:46:41 +00:00
|
|
|
bnd wrap \
|
|
|
|
--version %{version} \
|
|
|
|
--output %{name}-core-%{version}.bar \
|
|
|
|
--properties ../conf/%{name}-core.bnd \
|
|
|
|
%{name}-core-%{version}.jar
|
|
|
|
mv %{name}-core-%{version}.bar %{name}-core-%{version}.jar
|
2016-02-12 18:26:26 +00:00
|
|
|
|
|
|
|
# Explicit Require-Bundle on hamcrest
|
|
|
|
unzip mockito-core-%{version}.jar META-INF/MANIFEST.MF
|
|
|
|
sed -i -e '2iRequire-Bundle: org.hamcrest.core' META-INF/MANIFEST.MF
|
|
|
|
jar umf META-INF/MANIFEST.MF mockito-core-%{version}.jar
|
2012-08-31 15:45:18 +00:00
|
|
|
popd
|
2012-02-22 14:02:33 +00:00
|
|
|
|
2015-12-25 13:46:41 +00:00
|
|
|
sed -i -e "s|@version@|%{version}|g" maven/%{name}-core.pom
|
|
|
|
%mvn_artifact maven/%{name}-core.pom target/%{name}-core-%{version}.jar
|
|
|
|
%mvn_alias org.%{name}:%{name}-core org.%{name}:%{name}-all
|
2012-02-22 14:02:33 +00:00
|
|
|
|
2015-06-22 08:23:00 +00:00
|
|
|
%install
|
|
|
|
%mvn_install -J target/javadoc
|
2012-04-24 20:39:43 +00:00
|
|
|
|
2014-06-09 15:22:41 +00:00
|
|
|
%files -f .mfiles
|
2016-02-12 18:26:26 +00:00
|
|
|
%license LICENSE NOTICE
|
2012-02-22 14:02:33 +00:00
|
|
|
|
2015-06-22 08:23:00 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2016-02-12 18:26:26 +00:00
|
|
|
%license LICENSE NOTICE
|
2012-02-22 14:02:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-02-16 13:22:30 +00:00
|
|
|
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 1.10.19-12
|
|
|
|
- Remove conditional for EOL Fedora
|
|
|
|
|
2017-02-10 21:31:23 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-22 12:17:02 +00:00
|
|
|
* Mon Feb 22 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-10
|
|
|
|
- Explicitly import more cglib packages in OSGi metadata to prevent mockito
|
|
|
|
failing under certain circumstances during Eclipse test suites
|
|
|
|
|
2016-02-12 18:26:26 +00:00
|
|
|
* Fri Feb 12 2016 Mat Booth <mat.booth@redhat.com> - 1.10.19-9
|
|
|
|
- Require hamcrest explicitly in OSGi metadata
|
|
|
|
|
2016-02-04 08:32:56 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.19-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-12-25 14:10:18 +00:00
|
|
|
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-7
|
|
|
|
- introduce License tag
|
|
|
|
|
2015-12-25 13:46:41 +00:00
|
|
|
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-6
|
|
|
|
- reenable osgi
|
|
|
|
|
2015-12-18 16:02:51 +00:00
|
|
|
* Fri Dec 18 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-5
|
|
|
|
- workaround rhbz#1292777 stylesheet.css not found
|
|
|
|
|
2015-07-16 12:44:10 +00:00
|
|
|
* Thu Jul 16 2015 Michael Simacek <msimacek@redhat.com> - 1.10.19-4
|
|
|
|
- Use aqute-bnd-2.4.1
|
|
|
|
|
2015-06-22 08:23:00 +00:00
|
|
|
* Mon Jun 22 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3
|
|
|
|
- Switch to mvn_install
|
|
|
|
|
2015-06-17 20:49:16 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-29 16:47:06 +00:00
|
|
|
* Wed Apr 29 2015 Michal Srb <msrb@redhat.com> - 1.10.19-1
|
|
|
|
- Update to 1.10.19
|
|
|
|
|
2014-08-25 12:55:45 +00:00
|
|
|
* Mon Aug 25 2014 Darryl L. Pierce <dpierce@redhat.com> - 1.9.0-18
|
|
|
|
- First build for EPEL7
|
|
|
|
- Resolves: BZ#1110030
|
|
|
|
|
2014-06-09 15:22:41 +00:00
|
|
|
* Mon Jun 09 2014 Omair Majid <omajid@redhat.com> - 1.9.0-17
|
|
|
|
- Use .mfiles to pick up xmvn metadata
|
|
|
|
- Don't use obsolete _mavenpomdir and _mavendepmapfragdir macros
|
|
|
|
- Fix FTBFS
|
|
|
|
|
2014-06-07 10:40:05 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-22 14:10:44 +00:00
|
|
|
* Thu May 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1.9.0-16
|
|
|
|
- Use junit R/BR over junit4.
|
|
|
|
|
2014-03-28 15:16:44 +00:00
|
|
|
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.9.0-15
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
2013-12-11 08:37:01 +00:00
|
|
|
* Wed Dec 11 2013 Michael Simacek <msimacek@redhat.com> - 1.9.0-14
|
|
|
|
- Workaround for NPE in setting NamingPolicy
|
|
|
|
|
2013-08-03 11:25:46 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-05 14:28:28 +00:00
|
|
|
* Mon Mar 25 2013 Tomas Radej <tradej@redhat.com> - 1.9.0-12
|
|
|
|
- Patched LocalizedMatcher due to hamcrest update, (bug upstream)
|
|
|
|
|
2013-02-14 07:18:15 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-06 13:24:23 +00:00
|
|
|
* Thu Sep 6 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-10
|
|
|
|
- More Import-Package fixes. Note that fix-cglib-refs.patch is
|
2015-12-25 13:46:41 +00:00
|
|
|
not suitable for upstream: issue id=373
|
2012-09-06 13:24:23 +00:00
|
|
|
|
2012-09-04 13:24:28 +00:00
|
|
|
* Tue Sep 4 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-9
|
|
|
|
- Fix missing Import-Package in manifest.
|
|
|
|
|
2012-08-31 15:45:18 +00:00
|
|
|
* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8
|
|
|
|
- Add aqute bnd instructions for OSGi metadata
|
|
|
|
|
2012-07-20 02:15:21 +00:00
|
|
|
* 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
|
|
|
|
|
2012-04-30 13:16:33 +00:00
|
|
|
* Mon Apr 30 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-6
|
|
|
|
- Place JavaDoc in directly under %{_javadocdir}/%{name} instead
|
|
|
|
of %{_javadocdir}/%{name}/javadoc
|
|
|
|
|
2012-04-25 06:53:01 +00:00
|
|
|
* Wed Apr 25 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-5
|
|
|
|
- Removed post/postun hook for update_maven_depmap
|
|
|
|
|
2012-04-24 20:39:43 +00:00
|
|
|
* Tue Apr 24 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-4
|
|
|
|
- Fix groupId of cglib dependency
|
|
|
|
- Add additional depmap for mockito-all
|
|
|
|
- Update depmap on post and postun
|
|
|
|
- Fix version in pom
|
|
|
|
|
2012-02-22 14:02:33 +00:00
|
|
|
* Wed Feb 22 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-3
|
|
|
|
- Added cglib dependency to pom
|
|
|
|
|
|
|
|
* Tue Feb 21 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-2
|
|
|
|
- Include upstream Maven pom.xml in package
|
|
|
|
- Added missing Requires for cglib, junit4, hamcrest, objenesis
|
|
|
|
- Added source tarball generating script to sources
|
|
|
|
|
|
|
|
* Thu Feb 16 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-1
|
|
|
|
- Initial package
|