You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
6.8 KiB
203 lines
6.8 KiB
10 months ago
|
%{?scl:%scl_package mongo-java-driver}
|
||
|
%{!?scl:%global pkg_name %{name}}
|
||
|
|
||
|
Name: %{?scl_prefix}mongo-java-driver
|
||
|
Version: 3.6.4
|
||
|
Release: 1%{?dist}
|
||
|
Summary: A Java driver for MongoDB
|
||
|
|
||
|
Group: Development/Libraries
|
||
|
BuildArch: noarch
|
||
|
License: ASL 2.0
|
||
|
URL: http://www.mongodb.org/display/DOCS/Java+Language+Center
|
||
|
Source0: https://github.com/mongodb/%{pkg_name}/archive/r%{version}.tar.gz
|
||
|
Patch0: 0001-Maven-support.patch
|
||
|
|
||
|
BuildRequires: %{?scl_prefix_maven}maven-local
|
||
|
BuildRequires: %{?scl_prefix_maven}mvn(org.slf4j:slf4j-api)
|
||
|
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.felix:maven-bundle-plugin)
|
||
|
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||
|
BuildRequires: %{?scl_prefix_maven}mvn(org.hamcrest:hamcrest-library)
|
||
|
BuildRequires: %{?scl_prefix_maven}mvn(org.xerial.snappy:snappy-java)
|
||
|
|
||
|
BuildRequires: %{?scl_prefix}mvn(io.netty:netty-buffer)
|
||
|
BuildRequires: %{?scl_prefix}mvn(io.netty:netty-transport)
|
||
|
BuildRequires: %{?scl_prefix}mvn(io.netty:netty-handler)
|
||
|
|
||
|
%description
|
||
|
This is the Java driver for MongoDB.
|
||
|
|
||
|
%package bson
|
||
|
Summary: A Java-based BSON implementation
|
||
|
Group: Development/Libraries
|
||
|
|
||
|
%description bson
|
||
|
This is the Java implementation of BSON that the Java driver for
|
||
|
MongoDB ships with. It can be used separately by Java applications
|
||
|
that require BSON.
|
||
|
# Upstream has hinted that eventually, their bson implementation will
|
||
|
# be better separated out: http://bsonspec.org/#/implementation
|
||
|
# To make things easier for when that does happen, for now the jar
|
||
|
# and javadocs for this are in separate subpackages.
|
||
|
|
||
|
%package driver
|
||
|
Summary: The MongoDB Java Driver
|
||
|
Group: Development/Libraries
|
||
|
|
||
|
%description driver
|
||
|
The MongoDB Java Driver
|
||
|
|
||
|
%package driver-core
|
||
|
Summary: The MongoDB Java Operations Layer
|
||
|
Group: Development/Libraries
|
||
|
|
||
|
%description driver-core
|
||
|
The Java operations layer for the MongoDB Java Driver. Third
|
||
|
parties can wrap this layer to provide custom higher-level APIs
|
||
|
|
||
|
%package driver-async
|
||
|
Summary: The MongoDB Java Async Driver
|
||
|
Group: Development/Libraries
|
||
|
|
||
|
%description driver-async
|
||
|
The MongoDB Asynchronous Driver.
|
||
|
|
||
|
%package javadoc
|
||
|
Summary: Javadoc for %{name}
|
||
|
Group: Documentation
|
||
|
|
||
|
%description javadoc
|
||
|
This package contains the API documentation for %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -qn %{pkg_name}-r%{version}
|
||
|
|
||
|
%patch0 -p1
|
||
|
|
||
|
sed -i 's/@VERSION@/%{version}/g' `find -name pom.xml`
|
||
|
|
||
|
find -name '*.class' -exec rm -f '{}' \;
|
||
|
find -name '*.jar' -exec rm -f '{}' \;
|
||
|
|
||
|
%mvn_package org.mongodb:bson:* %{pkg_name}-bson
|
||
|
%mvn_package org.mongodb:%{pkg_name}:* %{pkg_name}
|
||
|
%mvn_package org.mongodb:mongodb-driver-core:* %{pkg_name}-driver-core
|
||
|
%mvn_package org.mongodb:mongodb-driver-async:* %{pkg_name}-driver-async
|
||
|
%mvn_package org.mongodb:mongodb-driver:* %{pkg_name}-driver
|
||
|
%mvn_package org.mongodb:mongodb-javadoc-utils:* __noinstall
|
||
|
%mvn_file org.mongodb:bson:* %{pkg_name}/bson
|
||
|
%mvn_file org.mongodb:%{pkg_name}:* %{pkg_name}/mongo
|
||
|
%mvn_file org.mongodb:mongodb-driver-core:* %{pkg_name}/driver-core
|
||
|
%mvn_file org.mongodb:mongodb-driver-async:* %{pkg_name}/driver-async
|
||
|
%mvn_file org.mongodb:mongodb-driver:* %{pkg_name}/driver
|
||
|
|
||
|
%build
|
||
|
export MAVEN_OPTS="-Xmx2048m"
|
||
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
||
|
|
||
|
%install
|
||
|
%mvn_install
|
||
|
|
||
|
%files -f .mfiles-%{pkg_name} -f .mfiles
|
||
|
%doc README.md LICENSE.txt
|
||
|
|
||
|
%files bson -f .mfiles-%{pkg_name}-bson
|
||
|
%doc README.md LICENSE.txt
|
||
|
|
||
|
%files driver -f .mfiles-%{pkg_name}-driver
|
||
|
%doc README.md LICENSE.txt
|
||
|
|
||
|
%files driver-core -f .mfiles-%{pkg_name}-driver-core
|
||
|
%doc README.md LICENSE.txt
|
||
|
|
||
|
%files driver-async -f .mfiles-%{pkg_name}-driver-async
|
||
|
|
||
|
%files javadoc -f .mfiles-javadoc
|
||
|
%doc README.md LICENSE.txt
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Mon Aug 06 2018 mskalick@redhat.com - 3.6.4-1
|
||
|
- Rebase to upstream release 3.6.4
|
||
|
|
||
|
* Mon Feb 26 2018 Marek Skalický <mskalick@redhat.com> - 3.6.3-1
|
||
|
- Update to latest upstream release
|
||
|
|
||
|
* Mon Aug 07 2017 Marek Skalický <mskalick@redhat.com> - 3.5.0-1
|
||
|
- Update to latest upstream version
|
||
|
|
||
|
* Fri Jun 23 2017 Michael Simacek <msimacek@redhat.com> - 3.4.2-1
|
||
|
- Update to 3.4.2 and rh-maven35
|
||
|
|
||
|
* Tue Mar 29 2016 Severin Gehwolf <sgehwolf@redhat.com> - 3.2.1-3
|
||
|
- Add basic OSGi metadata.
|
||
|
|
||
|
* Thu Feb 18 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.1-2
|
||
|
- Fixed directory ownership
|
||
|
|
||
|
* Tue Feb 2 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.1-1
|
||
|
- Upgrade to 3.2.1 release (from Fedora 24)
|
||
|
|
||
|
* Mon Jul 27 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.13.2-5
|
||
|
- Fix bugs in SCL-ization. Most importantly, pkg name prefix.
|
||
|
|
||
|
* Mon Jul 27 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.13.2-4
|
||
|
- SCL-ize package.
|
||
|
|
||
|
* Mon Jun 22 2015 Omair Majid <omajid@redhat.com> - 2.13.2-3
|
||
|
- Require javapackages-tools, not jpackage-utils.
|
||
|
|
||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.2-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||
|
|
||
|
* Wed Jun 10 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.13.2-1
|
||
|
- Update to lastest upstream version.
|
||
|
- Resolves RHBZ#1178257.
|
||
|
|
||
|
* Tue Jun 10 2014 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-4
|
||
|
- Fix FTBFS. Resolves RHBZ#1106228.
|
||
|
- Fix @VERSION@ substitution. Resolves RHBZ#1048200.
|
||
|
|
||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.3-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||
|
|
||
|
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.11.3-2
|
||
|
- Use Requires: java-headless rebuild (#1067528)
|
||
|
|
||
|
* Tue Sep 24 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-1
|
||
|
- Update to latest upstream release.
|
||
|
|
||
|
* Thu Sep 05 2013 Omair Majid <omajid@redhat.com> - 2.11.2-2
|
||
|
- Do not require -bson subpackage. The classes are present in both jars.
|
||
|
|
||
|
* Fri Aug 30 2013 Omair Majid <omajid@redhat.com> - 2.11.2-1
|
||
|
- Update to 2.11.2
|
||
|
- Generate tarball from commit tag, according to packaging guidelines
|
||
|
|
||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||
|
|
||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
||
|
* Tue Apr 24 2012 Jon VanAlten <jon.vanalten@redhat.com> 2.7.3-1
|
||
|
- Bump to 2.7.3.
|
||
|
|
||
|
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 2.6.5-4
|
||
|
- Add depmap/pom.
|
||
|
|
||
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.5-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||
|
|
||
|
* Tue Nov 29 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-2
|
||
|
- Sources moved to lookaside cache where they belong
|
||
|
|
||
|
* Tue Nov 29 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-1
|
||
|
- Add missing BuildDep: git (git-hash is used during build)
|
||
|
|
||
|
* Tue Oct 11 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-1
|
||
|
- Initial packaging of mongo-java-driver for Fedora.
|