1 |
Name: mongo-java-driver2 |
2 |
Version: 2.14.1 |
3 |
Release: %mkrel 4 |
4 |
Summary: MongoDB Java Driver |
5 |
Group: Development/Java |
6 |
# BSD-3-clause: src/main/org/bson/io/UTF8Encoding.java |
7 |
# CC-BY-SA-3.0: src/main/org/bson/util/annotations/* |
8 |
License: ASL 2.0 and BSD and CC-BY-SA |
9 |
URL: http://docs.mongodb.org/ecosystem/drivers/java/ |
10 |
Source0: https://github.com/mongodb/mongo-java-driver/archive/r%{version}.tar.gz |
11 |
|
12 |
BuildRequires: maven-local |
13 |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) |
14 |
BuildRequires: mvn(junit:junit) |
15 |
# Those files are modifications of code included in: |
16 |
# src/main/com/mongodb/util/Base64Codec.java |
17 |
Provides: bundled(apache-commons-codec) |
18 |
# src/main/org/bson/util/annotations/* |
19 |
Provides: bundled(jcip-annotations) |
20 |
# src/main/org/bson/io/UTF8Encoding.java |
21 |
Provides: bundled(postgresql-jdbc) = 9.0-801 |
22 |
|
23 |
BuildArch: noarch |
24 |
|
25 |
%description |
26 |
Java library to connect to the MongoDB document database. |
27 |
|
28 |
%package javadoc |
29 |
Summary: Javadoc for %{name} |
30 |
|
31 |
%description javadoc |
32 |
This package contains javadoc for %{name}. |
33 |
|
34 |
%prep |
35 |
%setup -q -n mongo-java-driver-r%{version} |
36 |
# Cleanup |
37 |
find -name '*.class' -delete |
38 |
find -name '*.jar' -print -delete |
39 |
|
40 |
# Unwanted task |
41 |
%pom_remove_plugin :maven-source-plugin |
42 |
|
43 |
%mvn_compat_version org.mongodb:mongo-java-driver %{version} 2 |
44 |
%mvn_file org.mongodb:mongo-java-driver mongo-java-driver %{name} |
45 |
|
46 |
%build |
47 |
|
48 |
# Test suite disabled; require web connection |
49 |
# java.net.ConnectException: Connection refused |
50 |
# com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting to connect. |
51 |
# Client view of cluster state is {type=Unknown, servers=[{address=127.0.0.1:27017, |
52 |
# type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: |
53 |
# Exception opening the socket}, caused by {java.net.ConnectException: Connection refused}}] |
54 |
%mvn_build -f |
55 |
|
56 |
%install |
57 |
%mvn_install |
58 |
|
59 |
%files -f .mfiles |
60 |
%doc History.md README.md |
61 |
%license LICENSE.txt |
62 |
|
63 |
%files javadoc -f .mfiles-javadoc |
64 |
%license LICENSE.txt |
65 |
|