Name: knox
Version: 0.5.1
Release: 1%{?dist}
Summary: REST API Gateway for interacting with Hadoop clusters
License: ASL 2.0
URL: https://knox.apache.org/
Source0: http://www.eu.apache.org/dist/knox/%{version}/%{name}-%{version}-src.zip
BuildRequires: mvn(com.jayway.jsonpath:json-path)
BuildRequires: mvn(com.mycila.xmltool:xmltool)
# http://gil.fedorapeople.org/genson-1.0-1.fc20.src.rpm
BuildRequires: mvn(com.owlike:genson)
# https://bugzilla.redhat.com/show_bug.cgi?id=1185611
BuildRequires: mvn(net.htmlparser.jericho:jericho-html)
# http://gil.fedorapeople.org/apache-commons-digester3-3.2-1.fc20.src.rpm
BuildRequires: mvn(org.apache.commons:commons-digester3)
BuildRequires: mvn(org.apache.directory.server:apacheds-jdbm)
# https://bugzilla.redhat.com/show_bug.cgi?id=970285
BuildRequires: mvn(org.apache.shiro:shiro-web)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-javaee)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee)
BuildRequires: maven-local
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
# gateway-test-utils deps
# http://gil.fedorapeople.org/xml-matchers-1.0-0.1.RC1.fc20.src.rpm
#BuildRequires: mvn(org.xmlmatchers:xml-matchers)
# uk.co.datumedge:hamcrest-json:0.2 use NON FREE org.json
BuildArch: noarch
%description
The Apache Knox Gateway is a REST API Gateway
for interacting with Hadoop clusters.
The Knox Gateway provides a single access point
for all REST interactions with Hadoop clusters.
In this capacity, the Knox Gateway is able to
provide valuable functionality to aid in the
control, integration, monitoring and automation of
critical administrative and analytical needs of the
enterprise.
* Authentication (LDAP and Active Directory
Authentication Provider)
* Federation/SSO (HTTP Header Based Identity
Federation)
* Authorization (Service Level Authorization)
* Auditing
While there are a number of benefits for
unsecured Hadoop clusters, the Knox Gateway
also complements the kerberos secured cluster
quite nicely.
Coupled with proper network isolation of
a Kerberos secured Hadoop cluster,
the Knox Gateway provides the enterprise
with a solution that:
* Integrates well with enterprise identity
management solutions
* Protects the details of the Hadoop cluster
deployment (hosts and ports are hidden from endusers)
* Simplifies the number of services that clients
need to interact with
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
sed -i "s|artifactId>ant-nodeps|artifactId>ant|" $(find . -name "pom.xml")
# om_remove_plugin :apache-rat-plugin
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'apache-rat-plugin']/pom:configuration/pom:excludes" "
.xmvn/**"
%pom_disable_module gateway-test-utils
# use apacheds 2.0.0-M5
%pom_disable_module gateway-test-ldap
%pom_remove_dep org.apache.directory.server:apacheds-all gateway-test-ldap
%pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId = 'org.eclipse.jetty']" "8.1.14.v20131031" gateway-server
%pom_add_dep org.eclipse.jetty:jetty-util:8.1.14.v20131031 gateway-server
# org.glassfish.jersey.containers:jersey-container-servlet:2.6
# org.glassfish.jersey.core:jersey-server:2.6
%pom_disable_module gateway-provider-jersey
%pom_remove_dep :gateway-provider-jersey gateway-service-admin
%pom_add_dep javax.ws.rs:jsr311-api gateway-service-admin
%pom_add_dep javax.inject:javax.inject gateway-service-admin
rm -r gateway-service-admin/src/main/java/org/apache/hadoop/gateway/service/admin/deploy/AdminServiceDeploymentContributor.java
%pom_remove_dep :gateway-test-ldap gateway-release
%pom_remove_dep :gateway-test-ldap hsso-release
%pom_remove_dep :gateway-provider-jersey gateway-service-vault
rm -r gateway-service-vault/src/main/java/org/apache/hadoop/gateway/service/vault/deploy/VaultServiceDeploymentContributor.java
%pom_add_dep javax.ws.rs:jsr311-api gateway-service-vault
%build
# -- -Prelease
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%{name}
%doc CHANGES LICENSE NOTICE README
%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE
%changelog
* Sun Jan 25 2015 gil cattaneo 0.5.1-1
- initial rpm