update to 4.2.0 [release 4.2.0-1mamba;Thu Aug 29 2019]
This commit is contained in:
parent
3a9ed51cb3
commit
dcd3ca5166
@ -1,5 +1,5 @@
|
|||||||
Name: mongo-tools
|
Name: mongo-tools
|
||||||
Version: 4.0.0
|
Version: 4.2.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: MongoDB Tools
|
Summary: MongoDB Tools
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
@ -13,8 +13,12 @@ License: Apache License 2.0
|
|||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libgo-devel
|
BuildRequires: libgo-devel
|
||||||
|
BuildRequires: libopenssl-devel
|
||||||
|
BuildRequires: libpcap-devel
|
||||||
|
BuildRequires: libsasl2-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libgo-devel >= 8.1.0
|
BuildRequires: libgo-devel >= 9.2.0
|
||||||
|
BuildRequires: go-pie
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,24 +33,23 @@ The MongoDB Tools:
|
|||||||
- mongotop - Monitor read/write activity on a mongo server
|
- mongotop - Monitor read/write activity on a mongo server
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-r%{version}
|
%setup -q -c -a0
|
||||||
|
install -d build/src/github.com/mongodb/bin
|
||||||
|
mv mongo-tools-r%{version} build/src/github.com/mongodb/mongo-tools
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p src/github.com/mongodb
|
cd build/src/github.com/mongodb/mongo-tools
|
||||||
ln -s ../../../ src/github.com/mongodb/mongo-tools
|
export GOPATH=%{_builddir}/%{name}-%{version}/build
|
||||||
export GOPATH=$(pwd):$(pwd)/vendor
|
|
||||||
|
|
||||||
mkdir bin
|
|
||||||
|
|
||||||
for tool in `ls -d mongo*` bsondump; do
|
for tool in `ls -d mongo*` bsondump; do
|
||||||
go build -o bin/$tool $tool/main/${tool}.go
|
echo "Building ${tool}..."
|
||||||
# go build -o bin/$tool -tags ssl $tool/main/${tool}.go
|
GOROOT=%{_libdir}/go go build -o bin/${tool} -tags "ssl sasl" ${tool}/main/${tool}.go
|
||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
install -d -p %{buildroot}%{_bindir}
|
install -d -p %{buildroot}%{_bindir}
|
||||||
install -p -m 0755 bin/* %{buildroot}%{_bindir}
|
install -p -m 0755 build/src/github.com/mongodb/mongo-tools/bin/* %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -55,9 +58,12 @@ install -p -m 0755 bin/* %{buildroot}%{_bindir}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/bsondump
|
%{_bindir}/bsondump
|
||||||
%{_bindir}/mongo*
|
%{_bindir}/mongo*
|
||||||
%doc LICENSE.md
|
%doc build/src/github.com/mongodb/mongo-tools/LICENSE.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 29 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0-1mamba
|
||||||
|
- update to 4.2.0
|
||||||
|
|
||||||
* Mon Jun 25 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-1mamba
|
* Mon Jun 25 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-1mamba
|
||||||
- update to 4.0.0
|
- update to 4.0.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user