diff --git a/.devtoolset-3-eclipse-swtbot.metadata b/.devtoolset-3-eclipse-swtbot.metadata new file mode 100644 index 0000000..883c51f --- /dev/null +++ b/.devtoolset-3-eclipse-swtbot.metadata @@ -0,0 +1 @@ +7628a0a49dbcced6e7a6ab4811e58409258ecced SOURCES/org.eclipse.swtbot-2.2.1.tar.bz2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64846b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/org.eclipse.swtbot-2.2.1.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/drop-source-bundles.patch b/SOURCES/drop-source-bundles.patch new file mode 100644 index 0000000..fdfe6c7 --- /dev/null +++ b/SOURCES/drop-source-bundles.patch @@ -0,0 +1,16 @@ +--- org.eclipse.swtbot.updatesite/category.xml.sav 2013-07-10 19:25:08.000000000 +0300 ++++ org.eclipse.swtbot.updatesite/category.xml 2013-08-12 13:45:24.527751013 +0300 +@@ -69,13 +69,4 @@ + + + +- +- +- +- +- +- +- +- +- + diff --git a/SOURCES/eclipse-swtbot-hamcrest.patch b/SOURCES/eclipse-swtbot-hamcrest.patch new file mode 100644 index 0000000..b0aff39 --- /dev/null +++ b/SOURCES/eclipse-swtbot-hamcrest.patch @@ -0,0 +1,25 @@ +diff -up ./org.eclipse.swtbot.swt.finder/META-INF/MANIFEST.MF.fix ./org.eclipse.swtbot.swt.finder/META-INF/MANIFEST.MF +--- ./org.eclipse.swtbot.swt.finder/META-INF/MANIFEST.MF.fix 2014-05-22 17:00:07.237970360 -0400 ++++ ./org.eclipse.swtbot.swt.finder/META-INF/MANIFEST.MF 2014-05-22 17:00:17.796143607 -0400 +@@ -29,5 +29,5 @@ Import-Package: junit.framework;version= + org.eclipse.swt.graphics, + org.eclipse.swt.widgets, + org.junit;version="4.5.0" +-Require-Bundle: org.hamcrest.core;bundle-version="1.3.0", +- org.hamcrest.library;bundle-version="1.3.0" ++Require-Bundle: org.hamcrest.core;bundle-version="1.1.0", ++ org.hamcrest.library;bundle-version="1.1.0" +diff -up ./org.eclipse.swtbot.swt.finder.test/META-INF/MANIFEST.MF.fix ./org.eclipse.swtbot.swt.finder.test/META-INF/MANIFEST.MF +--- ./org.eclipse.swtbot.swt.finder.test/META-INF/MANIFEST.MF.fix 2014-05-22 17:23:56.926513700 -0400 ++++ ./org.eclipse.swtbot.swt.finder.test/META-INF/MANIFEST.MF 2014-05-22 17:24:08.950713154 -0400 +@@ -8,8 +8,8 @@ Require-Bundle: org.eclipse.swt, + org.eclipse.swt.examples, + org.eclipse.swtbot.swt.finder, + org.apache.log4j;bundle-version="[1.2.13,1.3.0)", +- org.hamcrest.core;bundle-version="1.3.0", +- org.hamcrest.library;bundle-version="1.3.0", ++ org.hamcrest.core;bundle-version="1.1.0", ++ org.hamcrest.library;bundle-version="1.1.0", + org.eclipse.swtbot.junit4_x, + org.junit;bundle-version="[4.8.0,5.0.0)" + Bundle-ActivationPolicy: lazy diff --git a/SPECS/eclipse-swtbot.spec b/SPECS/eclipse-swtbot.spec new file mode 100644 index 0000000..ddc20f4 --- /dev/null +++ b/SPECS/eclipse-swtbot.spec @@ -0,0 +1,103 @@ +%{?scl:%scl_package eclipse-swtbot} +%{!?scl:%global pkg_name %{name}} +%{!?maven_scl:%global maven_scl_prefix %{nil}} + +%{?maven_scl:%global maven_scl_root /opt/rh/%{maven_scl}/root} +%{!?maven_scl:%global maven_scl_root %{nil}} + +%global install_loc %{_datadir}/eclipse/dropins/swtbot + +Name: %{?scl_prefix}eclipse-swtbot +Version: 2.2.1 +Release: 6%{?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: tycho +BuildRequires: tycho-extras +BuildRequires: %{?scl_prefix}eclipse-gef +BuildRequires: %{?scl_prefix}eclipse-pde +BuildRequires: %{?scl_prefix}junit >= 4.0.0 +BuildRequires: %{?scl_prefix}cbi-plugins +BuildRequires: %{?scl_prefix}eclipse-license +BuildRequires: %{?scl_prefix}feclipse-maven-plugin +BuildRequires: %{?scl_prefix}hamcrest +BuildRequires: %{maven_scl_prefix}log4j + +Requires: %{maven_scl_prefix}log4j +Requires: %{?scl_prefix}eclipse-gef +Requires: %{?scl_prefix}hamcrest + +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} + +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 + + +%build +scl enable %{scl} - <<"EOF" +xmvn -o clean install -Dmaven.test.skip=true -DskipTychoVersionCheck=true +EOF + +%install +install -d -m 755 %{buildroot}%{install_loc} + +scl enable %{scl} - <<"EOF" +xmvn -o org.fedoraproject:feclipse-maven-plugin:install -DsourceRepo=org.eclipse.swtbot.updatesite/target/repository -DtargetLocation=%{buildroot}%{install_loc} +EOF + +pushd %{buildroot}%{install_loc}/plugins + rm -fr org.apache.log4j* + ln -s %{maven_scl_root}%{_root_datadir}/java/log4j.jar . + rm -fr org.hamcrest* + ln -s %{_javadir}/hamcrest/core.jar hamcrest-core.jar + ln -s %{_javadir}/hamcrest/integration.jar hamcrest-integration.jar + ln -s %{_javadir}/hamcrest/library.jar hamcrest-library.jar +popd + +%files +%{install_loc} + +%changelog +* Thu Aug 28 2014 Sami Wagiaalla 2.2.1-6 +- Add R/BR on hamcrest. + +* Fri Jul 18 2014 Sami Wagiaalla 2.2.1-5 +- Add R on eclipse-gef + +* Thu Jun 19 2014 Sami Wagiaalla 2.2.1-4 +- Add missing requirement on maven30-log4j. + +* Mon Jun 9 2014 Sami Wagiaalla 2.2.1-3 +- Remove link to hamcrest-text.jar. + +* Mon Jun 9 2014 Sami Wagiaalla 2.2.1-2 +- Use log4j from maven30 scl. + +* Wed Jun 4 2014 Sami Wagiaalla 2.2.1-1 +- Import from rawhide and build for DTS. + +* Thu May 22 2014 Jeff Johnston 2.1.1-1 +- Import from rawhide and SCL-ize