2024-01-06 07:12:55 +01:00
|
|
|
Name: mongo-tools
|
2024-01-06 07:12:55 +01:00
|
|
|
Version: 4.2.14
|
|
|
|
Release: 1mamba
|
2024-01-06 07:12:55 +01:00
|
|
|
Summary: MongoDB Tools
|
|
|
|
Group: Applications/Databases
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 07:12:55 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:12:55 +01:00
|
|
|
URL: https://github.com/mongodb/mongo-tools
|
|
|
|
Source: https://github.com/mongodb/mongo-tools/archive/r%{version}.tar.gz
|
|
|
|
License: Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 07:12:55 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libsasl2-devel
|
2024-01-06 07:12:55 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:12:55 +01:00
|
|
|
BuildRequires: libgo-devel >= 11.1.0-1mamba
|
2024-01-06 07:12:55 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The MongoDB Tools:
|
|
|
|
- bsondump - display BSON files in a human-readable format
|
|
|
|
- mongoimport - Convert data from JSON, TSV or CSV and insert them into a collection
|
|
|
|
- mongoexport - Write an existing collection to CSV or JSON format
|
|
|
|
- mongodump/mongorestore - Dump MongoDB backups to disk in .BSON format, or restore them to a live database
|
|
|
|
- mongostat - Monitor live MongoDB servers, replica sets, or sharded clusters
|
|
|
|
- mongofiles - Read, write, delete, or update files in [GridFS](http://docs.mongodb.org/manual/core/gridfs/)
|
|
|
|
- mongooplog - Replay oplog entries between MongoDB servers
|
|
|
|
- mongotop - Monitor read/write activity on a mongo server
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
%prep
|
2024-01-06 07:12:55 +01:00
|
|
|
%setup -q -c -a0
|
|
|
|
install -d build/src/github.com/mongodb/bin
|
|
|
|
mv mongo-tools-r%{version} build/src/github.com/mongodb/mongo-tools
|
2024-01-06 07:12:55 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 07:12:55 +01:00
|
|
|
cd build/src/github.com/mongodb/mongo-tools
|
|
|
|
export GOPATH=%{_builddir}/%{name}-%{version}/build
|
2024-01-06 07:12:55 +01:00
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
for tool in `ls -d mongo*` bsondump; do
|
2024-01-06 07:12:55 +01:00
|
|
|
echo "Building ${tool}..."
|
|
|
|
GOROOT=%{_libdir}/go go build -o bin/${tool} -tags "ssl sasl" ${tool}/main/${tool}.go
|
2024-01-06 07:12:55 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d -p %{buildroot}%{_bindir}
|
2024-01-06 07:12:55 +01:00
|
|
|
install -p -m 0755 build/src/github.com/mongodb/mongo-tools/bin/* %{buildroot}%{_bindir}
|
2024-01-06 07:12:55 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/bsondump
|
2024-01-06 07:12:55 +01:00
|
|
|
%{_bindir}/mongo*
|
2024-01-06 07:12:55 +01:00
|
|
|
%doc build/src/github.com/mongodb/mongo-tools/LICENSE.md
|
2024-01-06 07:12:55 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:12:55 +01:00
|
|
|
* Tue May 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.14-1mamba
|
|
|
|
- update to 4.2.14
|
|
|
|
- built with libgo 11.1.0
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Thu May 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libgo-devel>=10.1.0-1mamba
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Thu Aug 29 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-1mamba
|
|
|
|
- update to 4.2.0
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Mon Jun 25 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-1mamba
|
|
|
|
- update to 4.0.0
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Thu Apr 19 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.4-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: libgo-devel>=7.3.0-1mamba
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Sat May 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.4-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libgo-devel>=6.1.0-2mamba
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Tue Apr 12 2016 Davide Madrisan <davide.madrisan@gmail.com> 3.2.4-1mamba
|
|
|
|
- package created using the webbuild interface
|