diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea96f74 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/r2.11.4.tar.gz diff --git a/.rh-mongodb26-mongo-java-driver.metadata b/.rh-mongodb26-mongo-java-driver.metadata new file mode 100644 index 0000000..9ea82c8 --- /dev/null +++ b/.rh-mongodb26-mongo-java-driver.metadata @@ -0,0 +1 @@ +83fb6cd47264fac1e5b7c0b4a44459b485045b59 SOURCES/r2.11.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/mongo-java-driver.spec b/SPECS/mongo-java-driver.spec new file mode 100644 index 0000000..99b5134 --- /dev/null +++ b/SPECS/mongo-java-driver.spec @@ -0,0 +1,197 @@ +%{?scl:%scl_package mongo-java-driver} +%{!?scl:%global pkg_name %{name}} + +# Use java common's requires/provides generator +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}mongo-java-driver +Version: 2.11.4 +Release: 7%{?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 + +BuildRequires: rh-java-common-javapackages-tools +BuildRequires: rh-java-common-javapackages-local +BuildRequires: rh-java-common-maven-local +BuildRequires: maven30-testng +BuildRequires: rh-java-common-ant +BuildRequires: maven30-ant-contrib +BuildRequires: git + +%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 javadoc +Summary: Javadoc for %{name} +Group: Documentation + +%description javadoc +This package contains the API documentation for %{name}. + +%package bson-javadoc +Summary: Javadoc for %{name}-bson +Group: Documentation + +%description bson-javadoc +This package contains the API documentation for %{name}-bson. + +%prep +%{?scl:scl enable maven30 %{scl} - << "EOF"} +%setup -qn %{pkg_name}-r%{version} + +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; +sed -i -e "s|@VERSION@|%{version}|g" maven/maven-bson.xml maven/maven-mongo-java-driver.xml +set -ex +%mvn_package org.mongodb:bson:* %{pkg_name}-bson +%mvn_package org.mongodb:%{pkg_name}:* %{pkg_name} +%mvn_file org.mongodb:bson:* %{pkg_name}/bson +%mvn_file org.mongodb:%{pkg_name}:* %{pkg_name}/mongo +%{?scl:EOF} + +%build +%{?scl:scl enable maven30 %{scl} - << "EOF"} +( + ln -s $(build-classpath testng) lib/testng-6.3.1.jar + ant -Dfile.encoding=UTF-8 -Denv.JAVA_HOME=/usr/lib/jvm/java -Dplatforms.JDK_1.5.home=/usr/lib/jvm/java jar javadocs +) +%mvn_artifact maven/maven-bson.xml bson.jar +%mvn_artifact maven/maven-mongo-java-driver.xml mongo.jar +%{?scl:EOF} + +%install +%{?scl:scl enable maven30 %{scl} - << "EOF"} +%mvn_install +# Java-docs +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-bson +cp -r -p docs/mongo-java-driver/* %{buildroot}%{_javadocdir}/%{name} +cp -r -p docs/bson/* %{buildroot}%{_javadocdir}/%{name}-bson +%{?scl:EOF} + +%files -f .mfiles-%{pkg_name} +%dir %{_javadir}/%{pkg_name} +%dir %{_mavenpomdir}/%{pkg_name} +%dir %{_datadir}/maven-metadata +%doc README.md LICENSE.txt + +%files bson -f .mfiles-%{pkg_name}-bson +%dir %{_javadir}/%{pkg_name} +%dir %{_mavenpomdir}/%{pkg_name} +%dir %{_datadir}/maven-metadata +%doc README.md LICENSE.txt + +%files javadoc +%{_javadocdir}/%{name} +%doc README.md LICENSE.txt + +%files bson-javadoc +%{_javadocdir}/%{name}-bson +%doc README.md LICENSE.txt + +%changelog +* Thu Mar 19 2015 Marek Skalicky - 2.11.4-7 +- Fixed maven-metadata ownership + +* Wed Jan 21 2015 Michal Srb - 2.11.4-6 +- Remove exlicit requires +- Fix directory ownership + +* Tue Jan 20 2015 Severin Gehwolf - 2.11.4-5 +- Make package buildable with xmvn 2.2.x. +- Use java common's requires/provides generators. + +* Tue Jun 24 2014 Honza Horak - 2.11.4-4 +- Return java requirements + Related: #1110884 + +* Wed Jun 18 2014 Severin Gehwolf 2.11.4-3 +- Build using maven30 collection. + +* Fri Mar 28 2014 Jan Pacner - 2.11.4-2 +- Resolves: #1075025 (Leftovers files after mongodb packages removal) + +* Wed Jan 29 2014 Jan Pacner - 2.11.4-1 +- Resolves: #1059170 (new release 2.11.4) + +* Fri Jan 10 2014 Jan Pacner - 2.11.3-8 +- Related: RHBZ#1046029; unify el6 and el7 branch + +* Tue Jan 07 2014 Honza Horak 2.11.3-7 +- Filter properly in RHEL-6 and lower + Related: RHBZ#1046029 + +* Fri Jan 03 2014 Severin Gehwolf 2.11.3-6 +- Don't generate osgi() style provides. +- Resolves: RHBZ#1046029. + +* Thu Nov 14 2013 Severin Gehwolf - 2.11.3-5 +- Fix auto-requires/provides. + +* Thu Nov 14 2013 Severin Gehwolf - 2.11.3-4 +- Disable macro for auto-requires/provides. +- Fix bson maven provides. +- Expand @VERSION@ in poms. + +* Wed Nov 13 2013 Severin Gehwolf - 2.11.3-3 +- Remove unneeded testng BR. +- Make package build with ant-contrib (custom classpath) +- Don't use maven* macros. + +* Thu Oct 3 2013 Honza Horak - 2.11.3-2 +- Port to SCL + +* Tue Sep 24 2013 Severin Gehwolf - 2.11.3-1 +- Update to latest upstream release. + +* Thu Sep 05 2013 Omair Majid - 2.11.2-2 +- Do not require -bson subpackage. The classes are present in both jars. + +* Fri Aug 30 2013 Omair Majid - 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 - 2.7.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 2.7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 2.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Apr 24 2012 Jon VanAlten 2.7.3-1 +- Bump to 2.7.3. + +* Mon Jan 16 2012 Alexander Kurtakov 2.6.5-4 +- Add depmap/pom. + +* Fri Jan 13 2012 Fedora Release Engineering - 2.6.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 29 2011 Jon VanAlten - 2.6.5-2 +- Sources moved to lookaside cache where they belong + +* Tue Nov 29 2011 Jon VanAlten - 2.6.5-1 +- Add missing BuildDep: git (git-hash is used during build) + +* Tue Oct 11 2011 Jon VanAlten - 2.6.5-1 +- Initial packaging of mongo-java-driver for Fedora.