Projects
Eulaceura:Factory
curator
_service:obs_scm:curator.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:curator.spec of Package curator
Name: curator Version: 2.10.0 Release: 1 Summary: A set of Java libraries that make using Apache ZooKeeper much easier License: ASL 2.0 URL: http://%{name}.apache.org/ Source0: https://repo.maven.apache.org/maven2/org/apache/%{name}/apache-curator/%{version}/apache-curator-%{version}-source-release.zip # Fix test deps Patch0: curator-2.10.0-commons-math3.patch Patch1: curator-2.10.0-jetty9.patch BuildRequires: maven-local BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(org.eclipse.aether:aether-connector-basic) BuildRequires: mvn(org.eclipse.aether:aether-transport-wagon) BuildRequires: mvn(org.apache.maven.wagon:wagon-http) BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api) BuildRequires: mvn(javax.ws.rs:jsr311-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache.commons:commons-math3) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin) BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl) BuildRequires: mvn(org.javassist:javassist) BuildRequires: mvn(org.eclipse.jetty:jetty-server) BuildRequires: mvn(org.eclipse.jetty:jetty-servlet) BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.slf4j:slf4j-log4j12) BuildRequires: mvn(org.testng:testng) Requires: %{name}-client = %{version}-%{release} Requires: %{name}-examples Requires: %{name}-framework Requires: %{name}-recipes Requires: %{name}-test Requires: %{name}-x-discovery Requires: %{name}-x-discovery-server BuildArch: noarch %description Curator is a set of Java libraries that make using Apache ZooKeeper much easier. %package client Summary: Curator Client %description client Low-level API. %package examples Summary: Curator Examples %description examples Example usages of various Curator features. %package framework Summary: Curator Framework %description framework High-level API that greatly simplifies using ZooKeeper. %package recipes Summary: Curator Recipes %description recipes All of the recipes listed on the ZooKeeper recipes doc (except two phase commit). %package test Summary: Curator Testing %description test Unit testing utilities. %package x-discovery Summary: Curator Service Discovery %description x-discovery A service discovery recipe. %package x-discovery-server Summary: Curator Service Discovery Server %description x-discovery-server Bridges non-Java or legacy applications with the Curator Service Discovery. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name} %prep %setup -q -n apache-%{name}-%{version} find -name '*.class' -print -delete find -name '*.jar' -print -delete %patch0 -p1 %patch1 -p1 # disable cause build failure %pom_remove_plugin :maven-license-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin -r :maven-shade-plugin %pom_remove_plugin -r :clirr-maven-plugin %pom_remove_plugin :apache-rat-plugin %pom_remove_plugin :maven-dependency-plugin %pom_remove_plugin :maven-install-plugin %pom_remove_plugin :maven-release-plugin %pom_remove_plugin :maven-scm-publish-plugin # unavailable build deps # com.facebook.swift:swift-service:0.12.0 # https://github.com/dropwizard/dropwizard # io.dropwizard:dropwizard-configuration:0.7.0 # io.dropwizard:dropwizard-logging:0.7.0 %pom_disable_module curator-x-rpc %pom_xpath_set "pom:properties/pom:jersey-version" 1 %pom_change_dep -r net.sf.scannotation: org.scannotation: # remove flakey tests rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestGroupMember.java rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestBoundedDistributedQueue.java rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestQueueSharder.java rm -f curator-x-discovery-server/src/test/java/org/apache/curator/x/discovery/server/jetty_resteasy/TestStringsWithRestEasy.java # AssertionError: expected [true] but found [false] rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedDelayQueue.java # Use 6.8.21 >= testng =< 6.8.8 sed -i "s/org.testng.internal.annotations.Sets/org.testng.collections.Sets/" \ curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderSelector.java \ curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderSelectorParticipants.java # Missing junit dependency in POM # https://lists.fedoraproject.org/pipermail/bigdata/2014-May/000456.html %pom_add_dep junit:junit:4.12:test sed -i 's/any/${scannotation-version}/g' curator-x-discovery-server/pom.xml sed -i 's/<jersey-version>1/<jersey-version>1.10/g' pom.xml sed -i 's/<scannotation-version>1.0.2/<scannotation-version>1.0.3/g' pom.xml %build %mvn_build -s -b -- -DskipTests %install sed -i '/exclusions/,+22 d' .xmvn-reactor sed -i '$!N;/org.apache.zookeeper/!P;D' .xmvn-reactor sed -i '/zookeeper/,+1d' .xmvn-reactor %mvn_install %files -f .mfiles-apache-curator %license LICENSE NOTICE %files client -f .mfiles-curator-client %doc README %license LICENSE NOTICE %files examples -f .mfiles-curator-examples %files framework -f .mfiles-curator-framework %files recipes -f .mfiles-curator-recipes %files test -f .mfiles-curator-test %license LICENSE NOTICE %files x-discovery -f .mfiles-curator-x-discovery %files x-discovery-server -f .mfiles-curator-x-discovery-server %doc curator-x-discovery-server/README.txt %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Fri May 10 2024 Ge Wang <wang__ge@126.com> - 2.10.0-1 - Init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2