Name: californium Version: 1.0.4 Release: 1%{?dist} Summary: Java CoAP Implementation for IoT Cloud Services License: BSD and EPL URL: http://www.eclipse.org/californium/ Source0: https://github.com/eclipse/californium/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.httpcomponents:httpclient) BuildRequires: mvn(org.apache.httpcomponents:httpcore-nio) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildArch: noarch %description Californium is a Java CoAP implementation for IoT Cloud services. Thus, the focus is on scalability and usability instead of resource-efficiency like for embedded devices. Yet Californium is also suitable for embedded JVMs. %package element-connector Summary: Californium (Cf) Element Connector %description element-connector Java socket abstraction for datagram transports (UDP, DTLS, etc.). %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %package parent Summary: Californium (Cf) Parent POM %description parent Common definitions and configuration for all Californium (Cf) components. %package proxy Summary: Californium (Cf) Proxy module %description proxy Californium (Cf) Cross-Proxy module. %package scandium Summary: Scandium (Sc) Core %description scandium A library for exchanging data using DTLS over UDP. %prep %setup -q -n %{name}-%{version} %pom_remove_plugin -r :nexus-staging-maven-plugin %pom_remove_plugin -r :maven-assembly-plugin %pom_remove_plugin -r :maven-source-plugin %pom_disable_module demo-apps %pom_disable_module demo-certs %pom_disable_module californium-osgi # Add OSGi support for mod in core proxy ; do %pom_xpath_set "pom:project/pom:packaging" bundle californium-${mod} %pom_add_plugin org.apache.felix:maven-bundle-plugin:3.0.1 californium-${mod} " true true true \${project.artifactId} \${project.version} bundle-manifest process-classes manifest " done # Remove unwanted test dep %pom_remove_dep :demo-certs scandium-core find ./scandium-core -name "CertificateMessageTest.java" -print -delete find ./scandium-core -name "ClientHandshakerTest.java" -print -delete find ./scandium-core -name "DtlsConnectorConfigTest.java" -print -delete find ./scandium-core -name "DTLSConnectorTest.java" -print -delete find ./scandium-core -name "ECDHServerKeyExchangeTest.java" -print -delete find ./scandium-core -name "HandshakerTest.java" -print -delete find ./scandium-core -name "RawPublicKeyIdentityTest.java" -print -delete find ./scandium-core -name "ServerHandshakerTest.java" -print -delete %build # Unavailable test deps %mvn_build -s %install %mvn_install %files -f .mfiles-californium-core %doc about.html README.md %files element-connector -f .mfiles-element-connector %doc element-connector/README.md %license edl-v10.html epl-v10.html notice.html %files javadoc -f .mfiles-javadoc %license edl-v10.html epl-v10.html notice.html %files parent -f .mfiles-parent %license edl-v10.html epl-v10.html notice.html %files proxy -f .mfiles-californium-proxy %license edl-v10.html epl-v10.html notice.html %files scandium -f .mfiles-scandium %doc scandium-core/README.md %changelog * Thu Aug 18 2016 gil cattaneo 1.0.4-1 - initial rpm