|
|
7e2ae8 |
%global pkg_name mockito
|
|
|
7e2ae8 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
7e2ae8 |
%{?maven_find_provides_and_requires}
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
7e2ae8 |
Version: 1.10.19
|
|
|
7e2ae8 |
Release: 7.3%{?dist}
|
|
|
7e2ae8 |
Summary: A Java mocking framework
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
License: MIT
|
|
|
7e2ae8 |
URL: http://%{pkg_name}.org
|
|
|
7e2ae8 |
Source0: %{pkg_name}-%{version}.tar.xz
|
|
|
7e2ae8 |
Source1: make-%{pkg_name}-sourcetarball.sh
|
|
|
7e2ae8 |
Patch0: fixup-ant-script.patch
|
|
|
7e2ae8 |
Patch1: fix-bnd-config.patch
|
|
|
7e2ae8 |
Patch2: %{pkg_name}-matcher.patch
|
|
|
7e2ae8 |
# Workaround for NPE in setting NamingPolicy in cglib
|
|
|
7e2ae8 |
Patch3: setting-naming-policy.patch
|
|
|
7e2ae8 |
# because we have old objenesis
|
|
|
7e2ae8 |
Patch4: fix-incompatible-types.patch
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
BuildArch: noarch
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix}javapackages-local
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix_java_common}ant
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix_java_common}objenesis
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix_java_common}cglib
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix_java_common}junit
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix_java_common}hamcrest
|
|
|
7e2ae8 |
BuildRequires: %{?scl_prefix}aqute-bnd
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
Requires: %{?scl_prefix_java_common}objenesis
|
|
|
7e2ae8 |
Requires: %{?scl_prefix_java_common}cglib
|
|
|
7e2ae8 |
Requires: %{?scl_prefix_java_common}junit
|
|
|
7e2ae8 |
Requires: %{?scl_prefix_java_common}hamcrest
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%description
|
|
|
7e2ae8 |
Mockito is a mocking framework that tastes really good. It lets you write
|
|
|
7e2ae8 |
beautiful tests with clean & simple API. Mockito doesn't give you hangover
|
|
|
7e2ae8 |
because the tests are very readable and they produce clean verification
|
|
|
7e2ae8 |
errors.
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%package javadoc
|
|
|
7e2ae8 |
Summary: Javadocs for %{pkg_name}
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%description javadoc
|
|
|
7e2ae8 |
This package contains the API documentation for %{pkg_name}.
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%prep
|
|
|
7e2ae8 |
%setup -q -n %{pkg_name}-%{version}
|
|
|
7e2ae8 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
7e2ae8 |
set -e -x
|
|
|
7e2ae8 |
%patch0
|
|
|
7e2ae8 |
%patch1 -p1
|
|
|
7e2ae8 |
%patch2 -p1
|
|
|
7e2ae8 |
%patch3 -p1
|
|
|
7e2ae8 |
%patch4 -p1
|
|
|
7e2ae8 |
# workaround rhbz#1292777 Files not found for javadoc generation
|
|
|
7e2ae8 |
touch javadoc/stylesheet.css
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%pom_add_dep net.sf.cglib:cglib maven/%{pkg_name}-core.pom
|
|
|
7e2ae8 |
find . -name "*.java" -exec sed -i "s|org\.%{pkg_name}\.cglib|net\.sf\.cglib|g" {} +
|
|
|
7e2ae8 |
mkdir -p lib/compile
|
|
|
7e2ae8 |
%{?scl:EOF}
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%build
|
|
|
7e2ae8 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
7e2ae8 |
set -e -x
|
|
|
7e2ae8 |
build-jar-repository lib/compile objenesis cglib junit hamcrest/core
|
|
|
7e2ae8 |
ant jar javadoc
|
|
|
7e2ae8 |
# Convert to OSGi bundle
|
|
|
7e2ae8 |
pushd target
|
|
|
7e2ae8 |
%if 0%{?fedora} >= 23
|
|
|
7e2ae8 |
bnd wrap \
|
|
|
7e2ae8 |
--version %{version} \
|
|
|
7e2ae8 |
--output %{pkg_name}-core-%{version}.bar \
|
|
|
7e2ae8 |
--properties ../conf/%{pkg_name}-core.bnd \
|
|
|
7e2ae8 |
%else
|
|
|
7e2ae8 |
java -jar $(build-classpath aqute-bnd) wrap \
|
|
|
7e2ae8 |
-output %{pkg_name}-core-%{version}.bar \
|
|
|
7e2ae8 |
-properties ../conf/%{pkg_name}-core.bnd \
|
|
|
7e2ae8 |
%endif
|
|
|
7e2ae8 |
%{pkg_name}-core-%{version}.jar
|
|
|
7e2ae8 |
mv %{pkg_name}-core-%{version}.bar %{pkg_name}-core-%{version}.jar
|
|
|
7e2ae8 |
popd
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
sed -i -e "s|@version@|%{version}|g" maven/%{pkg_name}-core.pom
|
|
|
7e2ae8 |
%mvn_artifact maven/%{pkg_name}-core.pom target/%{pkg_name}-core-%{version}.jar
|
|
|
7e2ae8 |
%mvn_alias org.%{pkg_name}:%{pkg_name}-core org.%{pkg_name}:%{pkg_name}-all
|
|
|
7e2ae8 |
%{?scl:EOF}
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%install
|
|
|
7e2ae8 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
7e2ae8 |
set -e -x
|
|
|
7e2ae8 |
%mvn_install -J target/javadoc
|
|
|
7e2ae8 |
%{?scl:EOF}
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%files -f .mfiles
|
|
|
7e2ae8 |
%dir %{_javadir}/%{pkg_name}
|
|
|
7e2ae8 |
%dir %{_mavenpomdir}/%{pkg_name}
|
|
|
7e2ae8 |
%doc LICENSE
|
|
|
7e2ae8 |
%doc NOTICE
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%files javadoc -f .mfiles-javadoc
|
|
|
7e2ae8 |
%doc LICENSE
|
|
|
7e2ae8 |
%doc NOTICE
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
%changelog
|
|
|
7e2ae8 |
* Thu Apr 14 2016 Michal Srb <msrb@redhat.com> - 1.10.19-7.3
|
|
|
7e2ae8 |
- Fix directory ownership (Resolves: rhbz#1325866)
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.10.19-7.2
|
|
|
7e2ae8 |
- Fix BR on maven-local & co.
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Tue Jan 19 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.19-7.1
|
|
|
7e2ae8 |
- SCL-ize package
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-7
|
|
|
7e2ae8 |
- introduce License tag
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Fri Dec 25 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-6
|
|
|
7e2ae8 |
- reenable osgi
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Fri Dec 18 2015 Raphael Groner <projects.rg@smart.ms> - 1.10.19-5
|
|
|
7e2ae8 |
- workaround rhbz#1292777 stylesheet.css not found
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Thu Jul 16 2015 Michael Simacek <msimacek@redhat.com> - 1.10.19-4
|
|
|
7e2ae8 |
- Use aqute-bnd-2.4.1
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Jun 22 2015 Mat Booth <mat.booth@redhat.com> - 1.10.19-3
|
|
|
7e2ae8 |
- Switch to mvn_install
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.19-2
|
|
|
7e2ae8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Wed Apr 29 2015 Michal Srb <msrb@redhat.com> - 1.10.19-1
|
|
|
7e2ae8 |
- Update to 1.10.19
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Aug 25 2014 Darryl L. Pierce <dpierce@redhat.com> - 1.9.0-18
|
|
|
7e2ae8 |
- First build for EPEL7
|
|
|
7e2ae8 |
- Resolves: BZ#1110030
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Jun 09 2014 Omair Majid <omajid@redhat.com> - 1.9.0-17
|
|
|
7e2ae8 |
- Use .mfiles to pick up xmvn metadata
|
|
|
7e2ae8 |
- Don't use obsolete _mavenpomdir and _mavendepmapfragdir macros
|
|
|
7e2ae8 |
- Fix FTBFS
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-17
|
|
|
7e2ae8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Thu May 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1.9.0-16
|
|
|
7e2ae8 |
- Use junit R/BR over junit4.
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.9.0-15
|
|
|
7e2ae8 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Wed Dec 11 2013 Michael Simacek <msimacek@redhat.com> - 1.9.0-14
|
|
|
7e2ae8 |
- Workaround for NPE in setting NamingPolicy
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-13
|
|
|
7e2ae8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Mar 25 2013 Tomas Radej <tradej@redhat.com> - 1.9.0-12
|
|
|
7e2ae8 |
- Patched LocalizedMatcher due to hamcrest update, (bug upstream)
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-11
|
|
|
7e2ae8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Thu Sep 6 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-10
|
|
|
7e2ae8 |
- More Import-Package fixes. Note that fix-cglib-refs.patch is
|
|
|
7e2ae8 |
not suitable for upstream: issue id=373
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Tue Sep 4 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-9
|
|
|
7e2ae8 |
- Fix missing Import-Package in manifest.
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Aug 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.9.0-8
|
|
|
7e2ae8 |
- Add aqute bnd instructions for OSGi metadata
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-7
|
|
|
7e2ae8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Mon Apr 30 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-6
|
|
|
7e2ae8 |
- Place JavaDoc in directly under /usr/share/javadoc/%{pkg_name} instead
|
|
|
7e2ae8 |
of /usr/share/javadoc/%{pkg_name}/javadoc
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Wed Apr 25 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-5
|
|
|
7e2ae8 |
- Removed post/postun hook for update_maven_depmap
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Tue Apr 24 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-4
|
|
|
7e2ae8 |
- Fix groupId of cglib dependency
|
|
|
7e2ae8 |
- Add additional depmap for mockito-all
|
|
|
7e2ae8 |
- Update depmap on post and postun
|
|
|
7e2ae8 |
- Fix version in pom
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Wed Feb 22 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-3
|
|
|
7e2ae8 |
- Added cglib dependency to pom
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Tue Feb 21 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-2
|
|
|
7e2ae8 |
- Include upstream Maven pom.xml in package
|
|
|
7e2ae8 |
- Added missing Requires for cglib, junit4, hamcrest, objenesis
|
|
|
7e2ae8 |
- Added source tarball generating script to sources
|
|
|
7e2ae8 |
|
|
|
7e2ae8 |
* Thu Feb 16 2012 Roman Kennke <rkennke@redhat.com> 1.9.0-1
|
|
|
7e2ae8 |
- Initial package
|