Blame SPECS/mongo-java-driver.spec

41676c
%{?scl:%scl_package mongo-java-driver}
41676c
%{!?scl:%global pkg_name %{name}}
41676c
41676c
# Use java common's requires/provides generator
41676c
%{?java_common_find_provides_and_requires}
41676c
41676c
Name:		%{?scl_prefix}mongo-java-driver
ecddea
Version:	2.14.1
ecddea
Release:	1%{?dist}
41676c
Summary:	A Java driver for MongoDB
41676c
41676c
Group:		Development/Libraries
41676c
BuildArch:	noarch
41676c
License:	ASL 2.0
41676c
URL:		http://www.mongodb.org/display/DOCS/Java+Language+Center
41676c
Source0:	https://github.com/mongodb/%{pkg_name}/archive/r%{version}.tar.gz
41676c
41676c
BuildRequires:	rh-java-common-javapackages-tools
41676c
BuildRequires:	rh-java-common-javapackages-local
41676c
BuildRequires:	rh-java-common-maven-local
41676c
BuildRequires:	maven30-testng
41676c
BuildRequires:	rh-java-common-ant
41676c
BuildRequires:	maven30-ant-contrib
41676c
BuildRequires:	git
41676c
41676c
%description
41676c
This is the Java driver for MongoDB.
41676c
41676c
%package bson
41676c
Summary:	A Java-based BSON implementation
41676c
Group:		Development/Libraries
41676c
41676c
%description bson
41676c
This is the Java implementation of BSON that the Java driver for
41676c
MongoDB ships with.  It can be used separately by Java applications
41676c
that require BSON.
41676c
# Upstream has hinted that eventually, their bson implementation will
41676c
# be better separated out: http://bsonspec.org/#/implementation
41676c
# To make things easier for when that does happen, for now the jar
41676c
# and javadocs for this are in separate subpackages.
41676c
41676c
%package javadoc
41676c
Summary:	Javadoc for %{name}
41676c
Group:		Documentation
41676c
41676c
%description javadoc
41676c
This package contains the API documentation for %{name}.
41676c
41676c
%package bson-javadoc
41676c
Summary:	Javadoc for %{name}-bson
41676c
Group:		Documentation
41676c
41676c
%description bson-javadoc
41676c
This package contains the API documentation for %{name}-bson.
41676c
41676c
%prep
41676c
%{?scl:scl enable maven30 %{scl} - << "EOF"}
41676c
%setup -qn %{pkg_name}-r%{version}
41676c
41676c
find -name '*.class' -exec rm -f '{}' \;
41676c
find -name '*.jar' -exec rm -f '{}' \;
41676c
sed -i -e "s|@VERSION@|%{version}|g" maven/maven-bson.xml maven/maven-mongo-java-driver.xml
41676c
set -ex
41676c
%mvn_package org.mongodb:bson:* %{pkg_name}-bson
41676c
%mvn_package org.mongodb:%{pkg_name}:* %{pkg_name}
41676c
%mvn_file org.mongodb:bson:* %{pkg_name}/bson
41676c
%mvn_file org.mongodb:%{pkg_name}:* %{pkg_name}/mongo
41676c
%{?scl:EOF}
41676c
41676c
%build
41676c
%{?scl:scl enable maven30 %{scl} - << "EOF"}
41676c
(
41676c
  ln -s $(build-classpath testng) lib/testng-6.3.1.jar
41676c
  ant -Dfile.encoding=UTF-8 -Denv.JAVA_HOME=/usr/lib/jvm/java -Dplatforms.JDK_1.5.home=/usr/lib/jvm/java jar javadocs
41676c
)
41676c
%mvn_artifact maven/maven-bson.xml bson.jar
41676c
%mvn_artifact maven/maven-mongo-java-driver.xml mongo.jar
41676c
%{?scl:EOF}
41676c
41676c
%install
41676c
%{?scl:scl enable maven30 %{scl} - << "EOF"}
41676c
%mvn_install
41676c
# Java-docs
41676c
install -d -m 755                 %{buildroot}%{_javadocdir}/%{name}
41676c
install -d -m 755                 %{buildroot}%{_javadocdir}/%{name}-bson
41676c
cp -r -p docs/mongo-java-driver/* %{buildroot}%{_javadocdir}/%{name}
41676c
cp -r -p docs/bson/*              %{buildroot}%{_javadocdir}/%{name}-bson
41676c
%{?scl:EOF}
41676c
41676c
%files -f .mfiles-%{pkg_name}
41676c
%dir %{_javadir}/%{pkg_name}
41676c
%dir %{_mavenpomdir}/%{pkg_name}
41676c
%dir %{_datadir}/maven-metadata
41676c
%doc README.md LICENSE.txt
41676c
41676c
%files bson -f .mfiles-%{pkg_name}-bson
41676c
%dir %{_javadir}/%{pkg_name}
41676c
%dir %{_mavenpomdir}/%{pkg_name}
41676c
%dir %{_datadir}/maven-metadata
41676c
%doc README.md LICENSE.txt
41676c
41676c
%files javadoc
41676c
%{_javadocdir}/%{name}
41676c
%doc README.md LICENSE.txt
41676c
41676c
%files bson-javadoc
41676c
%{_javadocdir}/%{name}-bson
41676c
%doc README.md LICENSE.txt
41676c
41676c
%changelog
ecddea
* Tue Feb 2 2016 Marek Skalicky <mskalick@redhat.com> - 2.14.1-1
ecddea
- Upgrade to latest compatible release 2.14.1
ecddea
  Resolves: RHBZ#1247166
ecddea
41676c
* Thu Mar 19 2015 Marek Skalicky <mskalick@redhat.com> - 2.11.4-7
41676c
- Fixed maven-metadata ownership
41676c
41676c
* Wed Jan 21 2015 Michal Srb <msrb@redhat.com> - 2.11.4-6
41676c
- Remove exlicit requires
41676c
- Fix directory ownership
41676c
41676c
* Tue Jan 20 2015 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.4-5
41676c
- Make package buildable with xmvn 2.2.x.
41676c
- Use java common's requires/provides generators.
41676c
41676c
* Tue Jun 24 2014 Honza Horak <hhorak@redhat.com> - 2.11.4-4
41676c
- Return java requirements
41676c
  Related: #1110884
41676c
41676c
* Wed Jun 18 2014 Severin Gehwolf <sgehwolf@redhat.com> 2.11.4-3
41676c
- Build using maven30 collection.
41676c
41676c
* Fri Mar 28 2014 Jan Pacner <jpacner@redhat.com> - 2.11.4-2
41676c
- Resolves: #1075025 (Leftovers files after mongodb packages removal)
41676c
41676c
* Wed Jan 29 2014 Jan Pacner <jpacner@redhat.com> - 2.11.4-1
41676c
- Resolves: #1059170 (new release 2.11.4)
41676c
41676c
* Fri Jan 10 2014 Jan Pacner <jpacner@redhat.com> - 2.11.3-8
41676c
- Related: RHBZ#1046029; unify el6 and el7 branch
41676c
41676c
* Tue Jan 07 2014 Honza Horak <hhorak@redhat.com> 2.11.3-7
41676c
- Filter properly in RHEL-6 and lower
41676c
  Related: RHBZ#1046029
41676c
41676c
* Fri Jan 03 2014 Severin Gehwolf <sgehwolf@redhat.com> 2.11.3-6
41676c
- Don't generate osgi() style provides.
41676c
- Resolves: RHBZ#1046029.
41676c
41676c
* Thu Nov 14 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-5
41676c
- Fix auto-requires/provides.
41676c
41676c
* Thu Nov 14 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-4
41676c
- Disable macro for auto-requires/provides.
41676c
- Fix bson maven provides.
41676c
- Expand @VERSION@ in poms.
41676c
41676c
* Wed Nov 13 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-3
41676c
- Remove unneeded testng BR.
41676c
- Make package build with ant-contrib (custom classpath)
41676c
- Don't use maven* macros.
41676c
41676c
* Thu Oct  3 2013 Honza Horak <hhorak@redhat.com> - 2.11.3-2
41676c
- Port to SCL
41676c
41676c
* Tue Sep 24 2013 Severin Gehwolf <sgehwolf@redhat.com> - 2.11.3-1
41676c
- Update to latest upstream release.
41676c
41676c
* Thu Sep 05 2013 Omair Majid <omajid@redhat.com> - 2.11.2-2
41676c
- Do not require -bson subpackage. The classes are present in both jars.
41676c
41676c
* Fri Aug 30 2013 Omair Majid <omajid@redhat.com> - 2.11.2-1
41676c
- Update to 2.11.2
41676c
- Generate tarball from commit tag, according to packaging guidelines
41676c
41676c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-4
41676c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
41676c
41676c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-3
41676c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
41676c
41676c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-2
41676c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
41676c
41676c
* Tue Apr 24 2012 Jon VanAlten <jon.vanalten@redhat.com> 2.7.3-1
41676c
- Bump to 2.7.3.
41676c
41676c
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 2.6.5-4
41676c
- Add depmap/pom.
41676c
41676c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.5-3
41676c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
41676c
41676c
* Tue Nov 29 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-2
41676c
- Sources moved to lookaside cache where they belong
41676c
41676c
* Tue Nov 29 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-1
41676c
- Add missing BuildDep: git (git-hash is used during build)
41676c
41676c
* Tue Oct 11 2011 Jon VanAlten <jon.vanalten@redhat.com> - 2.6.5-1
41676c
- Initial packaging of mongo-java-driver for Fedora.