Blame SPECS/easymock.spec

703857
%{?scl:%scl_package easymock}
703857
%{!?scl:%global pkg_name %{name}}
703857
%{!?maven_scl:%global maven_scl_prefix  %{nil}}
703857
703857
Name:           %{?scl_prefix}easymock
703857
Version:        3.2
703857
Release:        1%{?dist}
703857
Summary:        Easy mock objects
703857
License:        ASL 2.0
703857
URL:            http://www.easymock.org
703857
703857
Source0:        https://github.com/easymock/easymock/archive/easymock-%{version}.tar.gz
703857
703857
Patch5:         %{pkg_name}-remove-android-support.patch
703857
703857
BuildArch:      noarch
703857
703857
BuildRequires:  %{maven_scl_prefix}maven-local
703857
#BuildRequires:  %{maven_scl_prefix}maven-timestamp-plugin
703857
#BuildRequires:  %{maven_scl_prefix}maven-license-plugin
703857
BuildRequires:  %{maven_scl_prefix}junit
703857
BuildRequires:  %{maven_scl_prefix}cglib
703857
BuildRequires:  %{maven_scl_prefix}maven-compiler-plugin
703857
BuildRequires:  %{maven_scl_prefix}maven-jar-plugin
703857
BuildRequires:  %{maven_scl_prefix}maven-remote-resources-plugin
703857
BuildRequires:  %{maven_scl_prefix}maven-surefire-plugin
703857
BuildRequires:  %{?scl_prefix}objenesis
703857
BuildRequires:  %{maven_scl_prefix}maven-plugin-build-helper
703857
703857
#Obsoletes:      %{pkg_name}3 < %{version}-%{release}
703857
#Provides:       %{pkg_name}3 = %{version}-%{release}
703857
703857
703857
%description
703857
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
703857
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
703857
of recording expectations, most refactorings will not affect the Mock Objects.
703857
So EasyMock is a perfect fit for Test-Driven Development.
703857
703857
703857
%package javadoc
703857
Summary:        Javadoc for %{pkg_name}
703857
703857
%description javadoc
703857
Javadoc for %{pkg_name}.
703857
703857
703857
%prep
703857
# Unpack the sources:
703857
%setup -q -n easymock-easymock-%{version}
703857
703857
find . -name "*.zip" -delete
703857
703857
# remove android support
703857
%patch5 -p1
703857
%pom_xpath_remove "pom:profile[pom:id[text()='android']]"
703857
%pom_remove_dep :dexmaker easymock
703857
703857
# fix cglib aId and gId
703857
%pom_remove_dep :cglib-nodep easymock
703857
%pom_add_dep net.sf.cglib:cglib easymock
703857
703857
# remove some warning caused by unavailable plugin
703857
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin
703857
%pom_remove_plugin org.codehaus.mojo:versions-maven-plugin
703857
%pom_xpath_remove pom:profiles easymock-classextension
703857
703857
%pom_disable_module easymock-integration
703857
703857
# For compatibility reasons
703857
scl enable %{scl} - <<"EOF"
703857
%mvn_file ":easymock{*}" easymock@1 easymock3@1
703857
%pom_remove_plugin com.keyboardsamurais.maven:maven-timestamp-plugin
703857
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin
703857
EOF
703857
703857
# ssh not needed during our builds 
703857
%pom_xpath_remove pom:extensions
703857
703857
%build
703857
scl enable %{scl} - <<"EOF"
703857
%mvn_build
703857
EOF
703857
703857
%install
703857
scl enable %{scl} - <<"EOF"
703857
%mvn_install
703857
EOF
703857
703857
%files -f .mfiles
703857
%doc easymock/LICENSE.txt
703857
703857
%files javadoc -f .mfiles-javadoc
703857
%doc easymock/LICENSE.txt
703857
703857
703857
%changelog
703857
* Wed May 28 2014 Sami Wagiaalla <swaguaak@redhat,cin> 3.2-1
703857
- Import from rawhide and build for DTS 3.
703857
703857
* Thu Apr 4 2013 Krzysztof Daniel <kdaniel@redhat.com> 0:1.2-23
703857
- Fix ommited name macro.
703857
703857
* Thu Apr 4 2013 Krzysztof Daniel <kdaniel@redhat.com> 0:1.2-22
703857
- Properly parametrize depmap macro.
703857
703857
* Thu Apr 4 2013 Krzysztof Daniel <kdaniel@redhat.com> 0:1.2-21
703857
- Import into devtoolset-2.0 branch
703857
- Initial sclization.
703857
- Drop javadoc subpackage.
703857
703857
* Mon Feb 18 2013 Tomas Radej <tradej@redhat.com> - 0:1.2-20
703857
- Fixed sources (bz #905973)
703857
703857
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-19
703857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
703857
703857
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-18
703857
- Removed ownership of _mavenpomdir
703857
703857
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-17
703857
- Add LICENSE file
703857
- Remove rpm bug workaround
703857
- Update to current packaging guidelines
703857
703857
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-16
703857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
703857
703857
* Tue Feb 21 2012 Tomas Radej <tradej@redhat.com> - 0:1.2-15
703857
- Removed test
703857
703857
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-14
703857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
703857
703857
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-13
703857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
703857
703857
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.2-12
703857
- Fix pom filename (Resolves rhbz#655795)
703857
- Remove clean section and buildroot declaration
703857
- Remove versioned jars and pom files
703857
703857
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-11
703857
- Bump release for rebuild.
703857
703857
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-10
703857
- Disable tests.
703857
703857
* Mon May 18 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-9
703857
- Update instructions for obtaining source tar ball
703857
703857
* Mon May 04 2009 Yong Yang <yyang@redhat.com> 0:1.2-8
703857
- Rebuild with maven2-2.0.8 built in non-bootstrap mode
703857
703857
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com>  0:1.2-7
703857
- merge from JPP-6
703857
- rebuild with new maven2 2.0.8 built in bootstrap mode
703857
703857
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-6
703857
- fix component-info.xml
703857
703857
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-5
703857
- remove unneeded maven flag
703857
703857
* Mon Feb 02 2009 David Walluck <dwalluck@redhat.com> 0:1.2-4
703857
- add repolib
703857
703857
* Fri Jan 30 2009 Will Tatam <will.tatam@red61.com> 1.2-3.jpp5
703857
- Inital JPP-5 Build
703857
703857
* Fri Jan 09 2009 Yong Yang <yyang@redhat.com> 1.2-2jpp.1
703857
- Imported from dbhole's maven 2.0.8 packages, initial building on jpp6
703857
703857
* Fri Apr 11 2008 Deepak Bhole <dbhole@redhat.com> 1.2-1jpp.1
703857
- Import from JPackage
703857
- Add pom file
703857
703857
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
703857
- Update to 1.2 keeping only java 1.4 requirement
703857
703857
* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.1-3jpp
703857
- drop java-1.3.1 requirement
703857
703857
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-2jpp
703857
- Fixed Url, Summary, Description and License
703857
703857
* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
703857
- First JPackage release