%global githash 3d998ebb45cbb46bf6f93fe906147f67262a0f35
Name: tpch
Version: 0.7
Release: 1%{?dist}
Summary: Port of TPC-H DBGEN to Java
License: ASL 2.0
URL: https://github.com/airlift/tpch/
Source0: https://github.com/airlift/tpch/archive/%{githash}/%{name}-%{githash}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(org.testng:testng)
BuildArch: noarch
%description
DBGEN is a database population program for use with the
TPC-H benchmark.
This package provide the port of TPC-H DBGEN to Java.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{githash}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete
# io.airlift:airbase:pom:20
%pom_remove_parent
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . '
1.8
'
%pom_change_dep :testng ::6.9.6
%pom_change_dep :guava ::18.0
# surefire plugin argLine: -Xmx2g -Xms2g
%pom_xpath_remove pom:argLine
# https://github.com/airlift/tpch/issues/17
cp -p src/license/LICENSE-HEADER.txt LICENSE.txt
%mvn_file io.airlift.%{name}:%{name} %{name}
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Wed Apr 13 2016 gil cattaneo 0.7-1
- initial rpm