%{?scl:%scl_package eclipse-swtbot} %{!?scl:%global pkg_name %{name}} %{?java_common_find_provides_and_requires} Name: %{?scl_prefix}eclipse-swtbot Version: 2.2.1 Release: 6.2%{?dist} Summary: UI and functional testing tool for SWT and Eclipse based applications License: EPL URL: http://www.eclipse.org/swtbot/ Source0: http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/snapshot/org.eclipse.swtbot-%{version}.tar.bz2 Patch0: drop-source-bundles.patch # Temporary patch required because hamcrest 1.3 is supplying hamcrest 1.1 Patch1: eclipse-swtbot-hamcrest.patch BuildRequires: %{?scl_prefix}tycho BuildRequires: %{?scl_prefix}tycho-extras BuildRequires: %{?scl_prefix}eclipse-gef BuildRequires: %{?scl_prefix}eclipse-pde BuildRequires: %{?scl_prefix}cbi-plugins BuildRequires: %{?scl_prefix}eclipse-license BuildRequires: %{?scl_prefix_java_common}log4j BuildArch: noarch %description SWTBot is a Java based UI/functional testing tool for testing SWT and Eclipse based applications. SWTBot provides APIs that are simple to read and write. The APIs also hide the complexities involved with SWT and Eclipse. This makes it suitable for UI/functional testing by everyone, not just developers. %prep %setup -q -n org.eclipse.swtbot-%{version} %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} for j in $(find -name \*.jar); do if [ ! -L $j ] ; then rm -fr $j fi done %patch0 %patch1 %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='target-platform-configuration']" %pom_remove_plugin org.jacoco:jacoco-maven-plugin %pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin %mvn_package ":*.test" __noinstall %mvn_package ":*.test.*" __noinstall %mvn_package ":*.examples" __noinstall %mvn_package "::jar:sources:" %{?scl:EOF} %build %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} %mvn_build -j -f %{?scl:EOF} %install %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} %mvn_install %{?scl:EOF} %files -f .mfiles %changelog * Fri Jan 16 2015 Mat Booth - 2.2.1-6.2 - Rebuilt to regenerate provides/requires * Wed Jan 14 2015 Mat Booth - 2.2.1-6.1 - Resolves: rhbz#1175105 - Import into DTS 3.1 * Wed Dec 3 2014 Alexander Kurtakov 2.2.1-3 - Build with xmvn. * Sat Jun 07 2014 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Jun 4 2014 Alexander Kurtakov 2.2.1-1 - Update to upstream 2.2.1 release. * Mon Aug 12 2013 Alexander Kurtakov 2.1.1-1 - Update to latest upstream version. * Sat Aug 03 2013 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Apr 19 2013 Alexander Kurtakov 2.1.0-1 - Update to the official release. * Tue Feb 26 2013 Alexander Kurtakov 2.1.0-0.2.20130226git - New snapshot removing org.junit4 references. * Tue Feb 26 2013 Alexander Kurtakov 2.1.0-0.1.20130225git - Update to 2.1.0 prerelease - compatible with kepler platform. * Wed Feb 20 2013 Alexander Kurtakov 2.0.5-4.20120802git - Skip tycho version check. * Wed Feb 13 2013 Fedora Release Engineering - 2.0.5-3.20120802git - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Aug 6 2012 Alexander Kurtakov 2.0.5-2.20120802git - Fix review comments. * Thu Aug 2 2012 Alexander Kurtakov 2.0.5-1.gita95f41b7ae6d7790dab36bca982d4b833fd2662d - Initial package