2024-01-06 07:12:55 +01:00
|
|
|
Name: mongo-tools
|
2024-07-22 22:41:18 +02:00
|
|
|
Version: 100.9.5
|
2024-01-06 07:12:55 +01:00
|
|
|
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
|
2024-01-06 07:12:55 +01:00
|
|
|
Source: https://github.com/mongodb/mongo-tools.git/%{version}/mongo-tools-%{version}.tar.bz2
|
2024-01-06 07:12:55 +01:00
|
|
|
License: Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## 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
|
2024-01-06 07:12:55 +01:00
|
|
|
mv mongo-tools-%{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-07-22 22:41:18 +02:00
|
|
|
* Mon Jul 22 2024 Automatic Build System <autodist@openmamba.org> 100.9.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:58 +01:00
|
|
|
* Thu Jan 04 2024 Automatic Build System <autodist@mambasoft.it> 100.9.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:58 +01:00
|
|
|
* Sat Dec 09 2023 Automatic Build System <autodist@mambasoft.it> 100.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:57 +01:00
|
|
|
* Mon Nov 13 2023 Automatic Build System <autodist@mambasoft.it> 100.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:57 +01:00
|
|
|
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 100.7.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:57 +01:00
|
|
|
* Mon Jul 31 2023 Automatic Build System <autodist@mambasoft.it> 100.7.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:56 +01:00
|
|
|
* Thu Jul 06 2023 Automatic Build System <autodist@mambasoft.it> 100.7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:56 +01:00
|
|
|
* Thu Mar 02 2023 Automatic Build System <autodist@mambasoft.it> 100.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Fri Nov 04 2022 Automatic Build System <autodist@mambasoft.it> 100.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Sat Aug 20 2022 Automatic Build System <autodist@mambasoft.it> 100.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Thu Jul 21 2022 Automatic Build System <autodist@mambasoft.it> 100.5.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Wed Jun 15 2022 Automatic Build System <autodist@mambasoft.it> 100.5.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Wed Feb 02 2022 Automatic Build System <autodist@mambasoft.it> 100.5.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:12:55 +01:00
|
|
|
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 100.5.1-1mamba
|
|
|
|
- update to 100.5.1
|
|
|
|
|
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
|