Name: fest-swing-junit Version: 1.2.1 Release: 2%{?dist} Summary: FEST Swing JUnit support Group: Development/Libraries License: ASL 2.0 URL: http://fest.easytesting.org # svn co http://svn.codehaus.org/fest/tags/fest-swing-junit-1.2.1 # tar cvfj fest-swing-junit-1.2.1.tar.bz2 fest-swing-junit-1.2.1 Source0: %{name}-%{version}.tar.bz2 Patch0: fest-swing-junit-remove-fest-test-dep.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: junit BuildRequires: commons-codec BuildRequires: ant-junit BuildRequires: fest-swing = 1.2.1 Requires: jpackage-utils Requires: commons-codec Requires: ant-junit Requires: junit4 Requires: fest-swing = 1.2.1 %description FEST-Swing provides a simple and intuitive API for functional testing of Swing user interfaces, resulting in tests that are compact, easy to write, and read like a specification. FEST simulates actual user gestures at the operating system level, ensuring that the application will behave correctly in front of the user. This package provides integration with JUnit. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q %patch0 %build # Skip tests because that would require dependency on obsolete # and difficult to package fest-mocks. Upstream is moving # to mockito for subsequent releases. mvn-rpmbuild -Dmaven.test.skip=true install javadoc:javadoc %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml \ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ %files %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %doc LICENSE.txt %files javadoc %{_javadocdir}/%{name} %doc LICENSE.txt %changelog * Fri May 04 2012 Roman Kennke 1.2.1-2 - Several small fixes according to package review * Thu May 03 2012 Roman Kennke 1.2.1-1 - Initial package