%global githash eb9c1259cadd0f4af9bed5c7d7de9612b37ae6e7 Name: rxjava-reactive-streams Version: 1.0.1 Release: 1%{?dist} Summary: Adapter between RxJava and ReactiveStreams License: ASL 2.0 URL: https://github.com/ReactiveX/RxJavaReactiveStreams/ Source0: https://github.com/ReactiveX/RxJavaReactiveStreams/archive/%{githash}/%{name}-%{githash}.tar.gz Source1: http://central.maven.org/maven2/io/reactivex/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: maven-local BuildRequires: mvn(io.reactivex:rxjava) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.reactivestreams:reactive-streams) BuildRequires: mvn(org.reactivestreams:reactive-streams-tck) BuildArch: noarch %description This library provides adapters between RxJava and Reactive Streams. The Reactive Streams standard defines an API and run-time semantics for reactive data streams, that different tools can implement in order to inter-operate with each other. This library allows RxJava to interoperate with other implementors of the Reactive Streams API. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n RxJavaReactiveStreams-%{githash} # Cleanup find . -name "*.jar" -print -delete cp -p %SOURCE1 %{name}/pom.xml # Fix pom scope %pom_change_dep :rxjava :::compile %{name} %pom_change_dep :reactive-streams :::compile %{name} # Add test deps %pom_add_dep org.reactivestreams:reactive-streams-tck:1.0.0:test %{name} # Add OSGi support %pom_xpath_inject "pom:project" "bundle" %{name} %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{name} ' true true ${project.artifactId} ${project.groupId}.${project.artifactId} ReactiveX ${project.version} bundle-manifest process-classes manifest ' %mvn_file :%{name} %{name} %build %mvn_build -- -f %{name}/pom.xml -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc README.md %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Sat Apr 16 2016 gil cattaneo 1.0.1-1 - initial rpm