%{?scl:%scl_package eclipse-swtbot} %{!?scl:%global pkg_name %{name}} %{?java_common_find_provides_and_requires} Name: %{?scl_prefix}eclipse-swtbot Version: 2.3.0 Release: 1.3%{?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.xz 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 BuildRequires: %{?scl_prefix_java_common}hamcrest BuildArch: noarch Requires: %{?scl_prefix_java_common}hamcrest >= 1.3-6.14 Requires: %{?scl_prefix_java_common}junit >= 4.11-8.15 %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 %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} %setup -q -n org.eclipse.swtbot-%{version} for j in $(find -name \*.jar); do if [ ! -L $j ] ; then rm -fr $j fi done %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 %pom_disable_module org.eclipse.swtbot.updatesite %pom_disable_module org.eclipse.swtbot.nebula.gallery %pom_disable_module org.eclipse.swtbot.nebula.gallery.finder %pom_disable_module org.eclipse.swtbot.nebula.gallery.finder.test %mvn_package ":*.test" __noinstall %mvn_package ":*.test.*" __noinstall %mvn_package ":*.examples" __noinstall %mvn_package "::pom::" __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 # remove broken symlink on maven30 jar # (this is an optional dep of log4j, but we can't depend on maven30 at runtime) sed -i -e '/jms/d' .mfiles rm %{buildroot}/%{_datadir}/eclipse/dropins/swtbot/eclipse/plugins/org.apache.geronimo.specs.geronimo-jms_1.1_spec_1.1.1.jar %{?scl:EOF} %files -f .mfiles %changelog * Mon Jul 27 2015 Mat Booth - 2.3.0-1.3 - Tighten requirements on junit/hamcrest - rhbz#1246576 * Mon Jul 13 2015 Mat Booth - 2.3.0-1.2 - Rebuilt to avoid broken symlink on a maven30 package * Mon Jul 06 2015 Mat Booth - 2.3.0-1.1 - Import latest from Fedora * Wed Jun 24 2015 Alexander Kurtakov 2.3.0-1 - Update to upstream 2.3.0. * Wed Jun 17 2015 Fedora Release Engineering - 2.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Mar 9 2015 Alexander Kurtakov 2.2.1-5 - Add BR on full hamcrest now that platform depend only on part of it. * Fri Feb 6 2015 Mikolaj Izdebski - 2.2.1-4 - Rebuild to generate missing OSGi auto-requires * 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