File dba-mongodb-3014.spec of Package dba-mongodb-3014

%define real_name 	mongodb
%define version		3.0.14
%define vers		3014
%define prefix		/DBA/%{real_name}/%{version}
%global debug_package   %{nil}


Name:           dba-%{real_name}-%{vers}
Summary:        MongoDB is a scalable, high-performance, open source NoSQL database
Version:        %{version}
Release:        1
AutoReqProv:    on
License:        CC-BY-SA-3.0
Group:          Applications/Databases
URL:            http://www.mongodb.org/
Source:		http://fastdl.mongodb.org/linux/%{real_name}-linux-x86_64-%{version}.tgz
# Source2:	http://fastdl.mongodb.org/linux/%{real_name}-linux-i686-%{version}.tgz
Source3:	filter-requires-%{real_name}.sh
Source4:	set_mongodb_3.0.latest.sh
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

#!BuildIgnore:  nspr dba-geoip-148 dba-geoip-160

%if 0%{?suse_version} >= 1100
BuildRequires:  -post-build-checks
%endif

%define _use_internal_dependency_generator 0
%define __find_requires %{SOURCE3}


%description
MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database.


%prep
%ifarch x86_64
%setup -q -n %{real_name}-linux-x86_64-%{version}
%else
%setup -q -n %{real_name}-linux-i686-%{version} -b 2
%endif

%{__chmod} +x %{SOURCE3}


%build


%install
%{__mkdir_p} %{buildroot}%{prefix}
%{__cp} -av ./* %{buildroot}%{prefix}/

%{__install} -m 0755 %{S:4} %{buildroot}%{prefix}/bin/set_mongodb_3.0.latest.sh


%post
cd %{prefix}/..
%{prefix}/bin/set_mongodb_3.0.latest.sh


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root)
%dir %{prefix}
%{prefix}


%changelog
* Tue Mar 21 2017 Holger Manthey <holger.manthey@bertelsmann.de>
- inital version