9 Star 0 Fork 5

src-openEuler/docker-client-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-client-java.spec 3.32 KB
一键复制 编辑 原始数据 按行查看 历史
caodongxia 提交于 2021-06-28 14:35 . fix
Name: docker-client-java
Version: 8.11.7
Release: 2
Summary: Docker Client
Provides: docker-client = %{version}-%{release}
Obsoletes: docker-client < %{version}-%{release}
License: ASL 2.0
URL: https://github.com/spotify/docker-client
Source0: https://github.com/spotify/docker-client/archive/v%{version}.tar.gz
Patch0: 0001-Port-to-latest-version-of-Google-AutoValue.patch
Patch1: 0002-Change-Base64-Path.patch
BuildRequires: maven-local mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-guava)
BuildRequires: mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires: mvn(com.github.jnr:jnr-unixsocket)
BuildRequires: mvn(com.google.auto.value:auto-value) >= 1.4.1
BuildRequires: mvn(com.google.code.findbugs:jsr305) mvn(com.google.guava:guava:20.0)
BuildRequires: mvn(commons-io:commons-io) mvn(commons-lang:commons-lang)
BuildRequires: mvn(org.apache.commons:commons-compress)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on) mvn(org.glassfish.hk2:hk2-api)
BuildRequires: mvn(org.glassfish.jersey.connectors:jersey-apache-connector)
BuildRequires: mvn(org.glassfish.jersey.core:jersey-client)
BuildRequires: mvn(org.glassfish.jersey.media:jersey-media-json-jackson)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildArch: noarch
%description
The Docker Client is a Java API library for accessing a Docker daemon.
%prep
%setup -q -n docker-client-%{version}
%patch0 -p1
%patch1 -p1
%pom_remove_parent
sed -i -e '/<packaging>/a<groupId>com.spotify</groupId>' pom.xml
%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_dep com.google.code.findbugs:annotations
sed -i -e '/SuppressFBWarnings/d' src/main/java/com/spotify/docker/client/DefaultDockerClient.java \
src/main/java/com/spotify/docker/client/messages/{Host,Container}Config.java
%pom_remove_dep :google-auth-library-oauth2-http
rm -rf src/{main,test}/java/com/spotify/docker/client/auth/gcr
%pom_add_dep org.glassfish.hk2:hk2-api
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" pom.xml \
"<configuration>
<instructions>
<Bundle-SymbolicName>\${project.groupId}.docker.client</Bundle-SymbolicName>
<_nouses>true</_nouses>
</instructions>
</configuration>
<executions>
<execution>
<id>create-manifest</id>
<phase>process-classes</phase>
<goals><goal>manifest</goal></goals>
</execution>
</executions>"
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin" pom.xml \
"<configuration>
<archive>
<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>"
%build
%mvn_build -j -f
%install
%mvn_install
%files -f .mfiles
%license LICENSE NOTICE
%doc README.md
%changelog
* Mon Jun 28 2021 caodongxia <caodongxia@huawei.com> - 8.11.7-2
- Fix Base64 path
* Wed Aug 19 2020 yanan li <liyanan032@huawei.com> - 8.11.7-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/docker-client-java.git
git@gitee.com:src-openeuler/docker-client-java.git
src-openeuler
docker-client-java
docker-client-java
master

搜索帮助