Blob Blame Raw
%{?scl:%scl_package docker-client}
%{!?scl:%global pkg_name %{name}}

Name:           %{?scl_prefix}docker-client
Version:        2.7.26
Release:        2%{?dist}
Summary:        Docker Client

License:        ASL 2.0
URL:            https://github.com/spotify/docker-client
Source0:        https://github.com/spotify/docker-client/archive/v2.7.26.tar.gz

Patch0:         add-manifest.patch

BuildRequires: maven-local
BuildRequires: tycho >= 0.21.0
BuildRequires: tycho-extras
BuildRequires: %{?scl_prefix}aopalliance >= 1.0
BuildRequires: %{?scl_prefix}apache-commons-codec >= 1.10
BuildRequires: %{?scl_prefix}apache-commons-compress >= 1.9
BuildRequires: %{?scl_prefix}apache-commons-logging >= 1.2
BuildRequires: atinject
BuildRequires: base64coder
BuildRequires: %{?scl_prefix}bean-validation-api >= 1.1.0
BuildRequires: %{?scl_prefix}bouncycastle >= 1.50
BuildRequires: %{?scl_prefix}bouncycastle-pkix >= 1.50
BuildRequires: %{?scl_prefix}glassfish-hk2-utils >= 2.4.0-0.4.b24
BuildRequires: %{?scl_prefix}jffi >= 1.2.7
BuildRequires: %{?scl_prefix}jnr-constants >= 0.8.4
BuildRequires: %{?scl_prefix}jnr-enxio >= 0.3
BuildRequires: %{?scl_prefix}jnr-ffi >= 2.0.1
BuildRequires: %{?scl_prefix}jnr-posix >= 3.0.9
BuildRequires: %{?scl_prefix}jnr-unixsocket >= 0.2
BuildRequires: %{?scl_prefix}jnr-x86asm >= 1.0.2
BuildRequires: %{?scl_prefix}glassfish-annotation-api >= 1.2
BuildRequires: %{?scl_prefix}glassfish-hk2-api >= 2.4.0-0.4.b24
BuildRequires: %{?scl_prefix}glassfish-hk2-locator >= 2.4.0-0.4.b24
BuildRequires: %{?scl_prefix}glassfish-jaxb-api >= 2.2.12
BuildRequires: %{?scl_prefix}glassfish-jax-rs-api >= 2.0.1
BuildRequires: %{?scl_prefix}guava >= 18.0
BuildRequires: %{?scl_prefix}jackson-annotations >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-core >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-databind >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-dataformat-yaml >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-datatype-guava >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-jaxrs-json-provider >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-jaxrs-providers >= 2.5.0
BuildRequires: %{?scl_prefix}jackson-module-jaxb-annotations >= 2.5.0
BuildRequires: %{?scl_prefix}javassist >= 3.18.1
BuildRequires: %{?scl_prefix}jersey >= 2.17
BuildRequires: %{?scl_prefix}objectweb-asm >= 4.0.0
BuildRequires: %{?scl_prefix}osgi-resource-locator >= 1.0.1
BuildRequires: %{?scl_prefix}slf4j >= 1.7.10
BuildRequires: %{?scl_prefix}snakeyaml >= 1.13
BuildRequires: %{?scl_prefix}tiger-types >= 1.4

BuildArch: noarch

%description
The Docker Client is a Java API library for accessing a Docker daemon.

%prep
%setup -q -n docker-client-%{version}
%patch0
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-shade-plugin

%build
export MAVEN_OPTS="-XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}"
%mvn_build -j -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc NOTICE README.md

%changelog
* Tue Jun 23 2015 Roland Grunberg <rgrunber@redhat.com> - 2.7.26-2
- Depend on versionless bouncycastle within manifest.

* Mon Jun 8 2015 Jeff Johnston <jjohnstn@redhat.com> 2.7.26-1
- Initial packaging.