Name: discovery
Version: 1.25
Release: 1%{?dist}
Summary: Discovery server
License: ASL 2.0
URL: https://github.com/airlift/discovery/
Source0: https://github.com/airlift/discovery/archive/%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-smile)
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.inject:guice)
BuildRequires: mvn(com.google.inject.extensions:guice-multibindings)
BuildRequires: mvn(io.airlift:bootstrap)
BuildRequires: mvn(io.airlift:concurrent)
BuildRequires: mvn(io.airlift:configuration)
BuildRequires: mvn(io.airlift:discovery)
BuildRequires: mvn(io.airlift:event)
BuildRequires: mvn(io.airlift:http-client)
BuildRequires: mvn(io.airlift:http-server)
BuildRequires: mvn(io.airlift:jaxrs)
BuildRequires: mvn(io.airlift:jmx)
BuildRequires: mvn(io.airlift:jmx-http-rpc)
BuildRequires: mvn(io.airlift:json)
BuildRequires: mvn(io.airlift:log)
BuildRequires: mvn(io.airlift:node)
BuildRequires: mvn(io.airlift:testing)
BuildRequires: mvn(io.airlift:trace-token)
BuildRequires: mvn(io.airlift:units)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.iq80.leveldb:leveldb)
BuildRequires: mvn(org.iq80.leveldb:leveldb-api)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(org.weakref:jmxutils)
BuildArch: noarch
%description
Airlift' s Discovery server.
%package root
Summary: Discovery Root POM
%description root
Discovery Root POM.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete
# io.airlift:airbase:pom:46
%pom_remove_parent
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . '
1.8
'
%pom_change_dep -r :testng ::6.9.6
%pom_change_dep -r :guava ::18.0
%pom_change_dep :ant-nodeps :ant
cp -p src/license/LICENSE-HEADER.txt LICENSE.txt
%build
%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles-%{name}-server
%doc TODO %{name}-server/README.txt
%license LICENSE.txt
%files root -f .mfiles-%{name}-root
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Wed Apr 13 2016 gil cattaneo 1.25-1
- initial rpm