%{?scl:%scl_package test-createrepo} %{!?scl:%global pkg_name %{name}} %{?java_common_find_provides_and_requires} Name: %{?scl_prefix}test-createrepo Version: 1 Release: 1%{?dist} Summary: %{name} package License: GPL URL: http://www.example.com/ BuildArch: noarch Source0: org.eclipse.linuxtools.rpm.createrepo.tests_1.0.0.201501211152.jar BuildRequires: %{?scl_prefix}tycho BuildRequires: %{?scl_prefix}tycho-extras BuildRequires: %{?scl_prefix}eclipse-swtbot %{?scl:Requires: %scl_runtime} %description %{summary}. %prep %setup -c -T cp %{SOURCE0} . %build cat < .xmvn-reactor org.eclipse.linuxtools.rpm org.eclipse.linuxtools.rpm.createrepo.tests 1.0.0-SNAPSHOT $(pwd)/$(basename %{SOURCE0}) eclipse-test-plugin 1.0.0.201501211152 EOF %install scl enable %{scl_maven} %{scl} - <<"EOF" set -x %mvn_install EOF %files -f .mfiles %changelog * Fri Jan 09 2015 Mat Booth - 1-1 - rebuilt