Name: java-jemmy Version: 2.3.0.0 Release: 2mamba Summary: Java UI testing tool Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: gil URL: https://jemmy.dev.java.net/ # svn checkout https://jemmy.dev.java.net/svn/jemmy/trunk jemmy --username xxxxxxx # tar czf jemmy-2.3.0.0-src.tar.gz jemmy Source: jemmy-%{version}-src.tar.gz Source1: jemmy-LICENSE.txt License: Common Development and Distribution License BuildRequires: apache-ant BuildRequires: java-junit45 #BuildRequires: netbeans BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Jemmy represents the most natural way to test Java UI - perform the testing right from the Java code. Jemmy is a Java library which provides clear and straightforward API to access Java UI. Tests are then just java programs, which use the API. Having the tests in Java allows to use all the flexibility of high level language to capture test logic and also do any other operations needed to be done from test. Jemmy itself provides all the API necessary to write tests in terms of Java UI components (Swing and AWT). All the Java UI components are covered to the extent it makes sense for UI testing. %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: %{name} = %{version} %description javadoc Java UI testing tool. This package contains the javadocs for %{name}. %package manual Summary: Manual for %{name} Group: Documentation Requires: %{name} = %{version} %description manual Java UI testing tool. This package contains the manual for %{name}. %prep %setup -q -n jemmy for j in $(find -name "*.jar"); do mv $j $j.no done # needs for test mv test/org/netbeans/jemmy/testing/jemmy_013_prop1.jar.no test/org/netbeans/jemmy/testing/jemmy_013_prop1.jar mv test/org/netbeans/jemmy/testing/jemmy_013_prop2.jar.no test/org/netbeans/jemmy/testing/jemmy_013_prop2.jar ln -sf $(build-classpath junit45) lib/junit-4.1.jar cp %{S:1} LICENSE.txt sed -i 's/\r//' LICENSE.txt chmod 0644 LICENSE.txt %build DISPLAY=:0.0 export DISPLAY ant \ -Djava.awt.headless=true \ jar javadoc test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" #%{_datadir}/netbeans/harness/modules/org-netbeans-modules-jemmy.jar mkdir -p %{buildroot}%{_javadir}/ install -pm 644 build/jemmy.jar \ %{buildroot}%{_javadir}/jemmy-%{version}.jar ( cd %{buildroot}%{_javadir} ln -sf jemmy-%{version}.jar jemmy.jar ) mkdir -p %{buildroot}%{_javadocdir}/ cp -a build/javadoc %{buildroot}%{_javadocdir}/jemmy-%{version} ln -sf jemmy-%{version} %{buildroot}%{_javadocdir}/jemmy mkdir -p %{buildroot}%{_datadir}/ cp -a www %{buildroot}%{_datadir}/jemmy %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jemmy-%{version}.jar %{_javadir}/jemmy.jar %doc LICENSE.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/jemmy-%{version} %{_javadocdir}/jemmy %files manual %defattr(-,root,root) %{_datadir}/jemmy %changelog * Sun Nov 07 2010 gil 2.3.0.0-2mamba - rebuilt devel * Wed Apr 29 2009 gil 2.3.0.0-1mamba - package created by autospec