|
|
c34f3f |
%{?scl:%scl_package mongo-tools}
|
|
|
c34f3f |
|
|
|
c34f3f |
%global with_devel 1
|
|
|
c34f3f |
%global with_bundled 1
|
|
|
c34f3f |
%global with_debug 1
|
|
|
c34f3f |
%global with_check 1
|
|
|
c34f3f |
%global with_unit_test 1
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_debug}
|
|
|
c34f3f |
# https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12
|
|
|
c34f3f |
%global _dwz_low_mem_die_limit 0
|
|
|
c34f3f |
%else
|
|
|
c34f3f |
%global debug_package %{nil}
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%global provider github
|
|
|
c34f3f |
%global provider_tld com
|
|
|
c34f3f |
%global project mongodb
|
|
|
c34f3f |
%global repo mongo-tools
|
|
|
c34f3f |
# https://github.com/mongodb/mongo-tools
|
|
|
c34f3f |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
c34f3f |
%global import_path %{provider_prefix}
|
|
|
c34f3f |
%global commit 4f093ae71cdb4c6a6e9de7cd1dc67ea4405f0013
|
|
|
c34f3f |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
c34f3f |
|
|
|
c34f3f |
# Git hash in https://github.com/mongodb/mongo which corresponds to Version
|
|
|
c34f3f |
%global mongohash cf38c1b8a0a8dca4a11737581beafef4fe120bcd
|
|
|
c34f3f |
|
|
|
c34f3f |
%global gopath %{_datadir}/gocode
|
|
|
c34f3f |
|
|
|
c34f3f |
%global golangscl go-toolset-7
|
|
|
c34f3f |
%global golangprefix %{golangscl}-
|
|
|
c34f3f |
%global buildscls %{golangscl} %{?scl}
|
|
|
c34f3f |
|
|
|
c34f3f |
Name: %{?scl_prefix}%{repo}
|
|
|
c34f3f |
Version: 3.4.7
|
|
|
c34f3f |
Release: 1%{?dist}
|
|
|
c34f3f |
Summary: MongoDB Tools
|
|
|
c34f3f |
License: ASL 2.0
|
|
|
c34f3f |
URL: https://%{provider_prefix}
|
|
|
c34f3f |
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
c34f3f |
# Mongo-tools does not contain man files yet
|
|
|
c34f3f |
# - see https://groups.google.com/forum/#!topic/mongodb-dev/t6Sd2Bki12I
|
|
|
c34f3f |
Source1: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/bsondump.1
|
|
|
c34f3f |
Source2: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongodump.1
|
|
|
c34f3f |
Source3: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongoexport.1
|
|
|
c34f3f |
Source4: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongofiles.1
|
|
|
c34f3f |
Source5: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongoimport.1
|
|
|
c34f3f |
Source6: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongooplog.1
|
|
|
c34f3f |
Source7: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongorestore.1
|
|
|
c34f3f |
Source8: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongostat.1
|
|
|
c34f3f |
Source9: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongotop.1
|
|
|
c34f3f |
Source10: https://github.com/mongodb/mongo/raw/%{mongohash}/APACHE-2.0.txt
|
|
|
c34f3f |
|
|
|
c34f3f |
Patch0: change-import-path.patch
|
|
|
c34f3f |
#Patch1: use-dup3-on-linux.patch - fixed in 3.4.7
|
|
|
c34f3f |
|
|
|
c34f3f |
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
|
|
c34f3f |
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le s390x
|
|
|
c34f3f |
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
|
|
c34f3f |
BuildRequires: %{?golangprefix}golang
|
|
|
c34f3f |
|
|
|
c34f3f |
BuildRequires: openssl-devel
|
|
|
c34f3f |
BuildRequires: libpcap-devel
|
|
|
c34f3f |
|
|
|
c34f3f |
%if ! 0%{?with_bundled}
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/howeyc/gopass)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/jessevdk/go-flags)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/smartystreets/goconvey/convey)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/10gen/openssl)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(golang.org/x/crypto/ssh/terminal)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/mgo.v2)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/mgo.v2/bson)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/tomb.v2)
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%{?scl:Requires:%scl_runtime}
|
|
|
c34f3f |
|
|
|
c34f3f |
#Conflicts: mongodb < 3.0.0
|
|
|
c34f3f |
|
|
|
c34f3f |
%description
|
|
|
c34f3f |
The MongoDB tools provides import, export, and diagnostic capabilities.
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_devel}
|
|
|
c34f3f |
%package devel
|
|
|
c34f3f |
Summary: %{summary}
|
|
|
c34f3f |
BuildArch: noarch
|
|
|
c34f3f |
|
|
|
c34f3f |
%if ! 0%{?with_bundled}
|
|
|
c34f3f |
%if 0%{?with_check}
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/howeyc/gopass)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/jessevdk/go-flags)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/smartystreets/goconvey/convey)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(github.com/10gen/openssl)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(golang.org/x/crypto/ssh/terminal)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/mgo.v2)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/mgo.v2/bson)
|
|
|
c34f3f |
BuildRequires: %{?scl_prefix}golang(gopkg.in/tomb.v2)
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(github.com/howeyc/gopass)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(github.com/jessevdk/go-flags)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(github.com/smartystreets/goconvey/convey)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(github.com/10gen/openssl)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(golang.org/x/crypto/ssh/terminal)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(gopkg.in/mgo.v2)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(gopkg.in/mgo.v2/bson)
|
|
|
c34f3f |
Requires: %{?scl_prefix}golang(gopkg.in/tomb.v2)
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/bsondump) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/archive) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/auth) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/bsonutil) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/db) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/db/kerberos) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/db/openssl) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/intents) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/json) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/log) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/options) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/password) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/progress) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/signals) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/testutil) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/text) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/common/util) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongodump) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongoexport) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongofiles) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongoimport) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongoimport/csv) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongooplog) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongorestore) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongostat) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongotop) = %{version}-%{release}
|
|
|
c34f3f |
Provides: %{?scl_prefix}golang(%{import_path}/mongoreplay) = %{version}-%{release}
|
|
|
c34f3f |
|
|
|
c34f3f |
%{?scl:Requires:%scl_runtime}
|
|
|
c34f3f |
|
|
|
c34f3f |
%description devel
|
|
|
c34f3f |
This package contains library source intended for
|
|
|
c34f3f |
building other packages which use %{project}/%{repo}.
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
c34f3f |
%package unit-test
|
|
|
c34f3f |
Summary: Unit tests for %{name} package
|
|
|
c34f3f |
BuildRequires: %{?golangprefix}golang
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_check}
|
|
|
c34f3f |
#Here comes all BuildRequires: PACKAGE the unit tests
|
|
|
c34f3f |
#in %%check section need for running
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
# test subpackage tests code from devel subpackage
|
|
|
c34f3f |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
c34f3f |
|
|
|
c34f3f |
%description unit-test
|
|
|
c34f3f |
%{summary}
|
|
|
c34f3f |
|
|
|
c34f3f |
This package contains unit tests for project
|
|
|
c34f3f |
providing packages with %{import_path} prefix.
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
# syspath subpackages
|
|
|
c34f3f |
%if 0%{?scl:1}
|
|
|
c34f3f |
%scl_syspaths_package -d
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%prep
|
|
|
c34f3f |
%setup -q -n %{repo}-%{commit}
|
|
|
c34f3f |
%if ! 0%{?with_bundled}
|
|
|
c34f3f |
%patch0 -p1
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%build
|
|
|
c34f3f |
%{?scl:scl enable %{buildscls} - << "SCLEOF"}
|
|
|
c34f3f |
set -ex
|
|
|
c34f3f |
# Make link for etcd itself
|
|
|
c34f3f |
mkdir -p src/github.com/mongodb
|
|
|
c34f3f |
ln -s ../../../ src/github.com/mongodb/mongo-tools
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_bundled}
|
|
|
c34f3f |
export GOPATH=$(pwd):$(pwd)/vendor:%{gopath}
|
|
|
c34f3f |
%else
|
|
|
c34f3f |
export GOPATH=$(pwd):%{gopath}
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%if ! 0%{?gobuild:1}
|
|
|
c34f3f |
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
mkdir bin
|
|
|
c34f3f |
binaries=(bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog mongoreplay)
|
|
|
c34f3f |
for bin in "${binaries[@]}"; do
|
|
|
c34f3f |
%gobuild -o bin/${bin} \-tags ssl ${bin}/main/${bin}.go
|
|
|
c34f3f |
done
|
|
|
c34f3f |
|
|
|
c34f3f |
# Copy Apache license
|
|
|
c34f3f |
cp %{SOURCE10} $(basename %{SOURCE10})
|
|
|
c34f3f |
|
|
|
c34f3f |
%{?scl:SCLEOF}
|
|
|
c34f3f |
%install
|
|
|
c34f3f |
%{?scl:scl enable %{buildscls} - << "SCLEOF"}
|
|
|
c34f3f |
set -ex
|
|
|
c34f3f |
# main package binary
|
|
|
c34f3f |
install -d -p %{buildroot}%{_bindir}
|
|
|
c34f3f |
install -p -m 0755 bin/* %{buildroot}%{_bindir}
|
|
|
c34f3f |
|
|
|
c34f3f |
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
c34f3f |
install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE5} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE6} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE7} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE8} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
install -p -m 644 %{SOURCE9} %{buildroot}%{_mandir}/man1/
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_devel}
|
|
|
c34f3f |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
c34f3f |
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
|
|
|
c34f3f |
# find all *.go but no *_test.go files and generate devel.file-list
|
|
|
c34f3f |
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
|
|
|
c34f3f |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
c34f3f |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
c34f3f |
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
|
|
|
c34f3f |
done
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
# testing files for this project
|
|
|
c34f3f |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
c34f3f |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
|
|
|
c34f3f |
# find all *_test.go files and generate unit-test.file-list
|
|
|
c34f3f |
for file in $(find . -iname "*_test.go"); do
|
|
|
c34f3f |
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
|
|
|
c34f3f |
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
|
|
|
c34f3f |
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
|
|
|
c34f3f |
done
|
|
|
c34f3f |
cp -r mongorestore/testdata %{buildroot}/%{gopath}/src/%{import_path}/mongorestore/testdata
|
|
|
c34f3f |
echo "%%{gopath}/src/%%{import_path}/mongorestore/testdata" >> unit-test.file-list
|
|
|
c34f3f |
cp -r mongostat/test_data %{buildroot}/%{gopath}/src/%{import_path}/mongostat/test_data
|
|
|
c34f3f |
echo "%%{gopath}/src/%%{import_path}/mongostat/test_data" >> unit-test.file-list
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_devel}
|
|
|
c34f3f |
olddir=$(pwd)
|
|
|
c34f3f |
pushd %{buildroot}/%{gopath}/src/%{import_path}
|
|
|
c34f3f |
for file in $(find . -type d) ; do
|
|
|
c34f3f |
echo "%%dir %%{gopath}/src/%%{import_path}/$file" >> ${olddir}/devel.file-list
|
|
|
c34f3f |
done
|
|
|
c34f3f |
popd
|
|
|
c34f3f |
echo "%%dir %%{gopath}/src/%{provider}.%{provider_tld}/%{project}" >> devel.file-list
|
|
|
c34f3f |
echo "%%dir %%{gopath}/src/%{provider}.%{provider_tld}" >> devel.file-list
|
|
|
c34f3f |
|
|
|
c34f3f |
sort -u -o devel.file-list devel.file-list
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
# syspath subpackages
|
|
|
c34f3f |
%if 0%{?scl:1}
|
|
|
c34f3f |
binaries='bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog'
|
|
|
c34f3f |
binaries_no_man='mongoreplay'
|
|
|
c34f3f |
mans= ; for bin in $binaries; do mans+="${sep}man1/$bin.1.gz" ; sep=' '; done
|
|
|
c34f3f |
%scl_syspaths_install_wrappers -n %{pkg_name} -m script -p bin $binaries
|
|
|
c34f3f |
%scl_syspaths_install_wrappers -n %{pkg_name} -m link -p man $mans
|
|
|
c34f3f |
%scl_syspaths_install_wrappers -n %{pkg_name} -m script -p bin $binaries_no_man
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
%{?scl:SCLEOF}
|
|
|
c34f3f |
|
|
|
c34f3f |
%check
|
|
|
c34f3f |
%{?scl:scl enable %{buildscls} - << "SCLEOF"}
|
|
|
c34f3f |
set -ex
|
|
|
c34f3f |
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
c34f3f |
%if ! 0%{?with_bundled}
|
|
|
c34f3f |
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
|
|
|
c34f3f |
%else
|
|
|
c34f3f |
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%if ! 0%{?gotest:1}
|
|
|
c34f3f |
%global gotest go test
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%gotest %{import_path}/common/bsonutil
|
|
|
c34f3f |
%gotest %{import_path}/common/db
|
|
|
c34f3f |
# upstream bug, removed field from Intents struct
|
|
|
c34f3f |
#%%gotest %{import_path}/common/intents
|
|
|
c34f3f |
# redeclaration of C
|
|
|
c34f3f |
#gotest {import_path}/common/json
|
|
|
c34f3f |
# import cycle not allowed in test
|
|
|
c34f3f |
#gotest {import_path}/common/log
|
|
|
c34f3f |
%gotest %{import_path}/common/progress
|
|
|
c34f3f |
%gotest %{import_path}/common/text
|
|
|
c34f3f |
#%gotest %{import_path}/common/util
|
|
|
c34f3f |
%gotest %{import_path}/mongodump
|
|
|
c34f3f |
%gotest %{import_path}/mongoexport
|
|
|
c34f3f |
%gotest %{import_path}/mongofiles
|
|
|
c34f3f |
#gotest {import_path}/mongoimport
|
|
|
c34f3f |
%gotest %{import_path}/mongooplog
|
|
|
c34f3f |
%gotest %{import_path}/mongorestore
|
|
|
c34f3f |
%gotest %{import_path}/mongostat
|
|
|
c34f3f |
#%gotest %{import_path}/mongoreplay
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
%{?scl:SCLEOF}
|
|
|
c34f3f |
|
|
|
c34f3f |
#define license tag if not already defined
|
|
|
c34f3f |
%{!?_licensedir:%global license %doc}
|
|
|
c34f3f |
|
|
|
c34f3f |
%files
|
|
|
c34f3f |
%license LICENSE.md APACHE-2.0.txt
|
|
|
c34f3f |
%doc Godeps README.md CONTRIBUTING.md THIRD-PARTY-NOTICES
|
|
|
c34f3f |
%{_bindir}/*
|
|
|
c34f3f |
%{_mandir}/man1/*
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_devel}
|
|
|
c34f3f |
%files devel -f devel.file-list
|
|
|
c34f3f |
%license LICENSE.md
|
|
|
c34f3f |
%doc Godeps README.md CONTRIBUTING.md THIRD-PARTY-NOTICES
|
|
|
c34f3f |
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%if 0%{?with_unit_test} && 0%{?with_devel}
|
|
|
c34f3f |
%files unit-test -f unit-test.file-list
|
|
|
c34f3f |
%license LICENSE.md
|
|
|
c34f3f |
%doc Godeps README.md CONTRIBUTING.md THIRD-PARTY-NOTICES
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
# syspath subpackages
|
|
|
c34f3f |
%if 0%{?scl:1}
|
|
|
c34f3f |
%scl_syspaths_files
|
|
|
c34f3f |
%endif
|
|
|
c34f3f |
|
|
|
c34f3f |
%changelog
|
|
|
c34f3f |
* Mon Aug 28 2017 Marek Skalický <mskalick@redhat.com> - 3.4.7-1
|
|
|
c34f3f |
- Update to latest minor release
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon Jul 24 2017 Marek Skalický <mskalick@redhat.com> - 3.4.6-0.1.git29b8883
|
|
|
c34f3f |
- Update to latest minor version 3.4.6
|
|
|
c34f3f |
Resolves: RHBZ#1474253
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon Jul 03 2017 Marek Skalický <mskalick@redhat.com> - 3.4.5-0.5.git4d4d965
|
|
|
c34f3f |
- Use go-toolset-7 for building
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon Jun 26 2017 Marek Skalický <mskalick@redhat.com> - 3.4.5-0.4.git4d4d965
|
|
|
c34f3f |
- Use golang from rh-mongodb32 for building
|
|
|
c34f3f |
|
|
|
c34f3f |
* Fri Jun 23 2017 Marek Skalický <mskalick@redhat.com> - 3.4.5-0.3.git4d4d965
|
|
|
c34f3f |
- Add -syspath subpackage
|
|
|
c34f3f |
|
|
|
c34f3f |
* Thu Jun 22 2017 Marek Skalický <mskalick@redhat.com> - 3.4.5-0.2.git4d4d965
|
|
|
c34f3f |
- Build also mongoreplay
|
|
|
c34f3f |
- patch vendored dependency github.com/spacemonkeygo/spacelog to use syscall.Dup3
|
|
|
c34f3f |
|
|
|
c34f3f |
* Thu Jun 22 2017 Marek Skalický <mskalick@redhat.com> - 3.4.5-0.1.git4d4d965
|
|
|
c34f3f |
- Update to 3.4.5
|
|
|
c34f3f |
|
|
|
c34f3f |
* Wed Jun 21 2017 Marek Skalický <mskalick@redhat.com> - 3.2.1-0.7.git17a5573
|
|
|
c34f3f |
- Use bundled dependencies
|
|
|
c34f3f |
- Use go-toolset-7 for building
|
|
|
c34f3f |
|
|
|
c34f3f |
* Tue Sep 27 2016 Marek Skalický <mskalick@redhat.com> - 3.2.1-0.6.git17a5573
|
|
|
c34f3f |
- Fix dependency on -runtime
|
|
|
c34f3f |
Resolves: RHBZ#1379295
|
|
|
c34f3f |
|
|
|
c34f3f |
* Wed Jul 27 2016 Marek Skalický <mskalick@redhat.com> - 3.2.1-0.5.git17a5573
|
|
|
c34f3f |
- Rebuild for new golang version
|
|
|
c34f3f |
|
|
|
c34f3f |
* Fri Jul 22 2016 Marek Skalický <mskalick@redhat.com> - 3.2.1-0.4.git17a5573
|
|
|
c34f3f |
- Use golang from SCL
|
|
|
c34f3f |
|
|
|
c34f3f |
* Fri Feb 12 2016 Marek Skalicky <mskalick@redhat.com> - 3.1.1-0.3.git17a5573
|
|
|
c34f3f |
- Removed conflict with old versions of mongodb
|
|
|
c34f3f |
|
|
|
c34f3f |
* Wed Feb 3 2016 Marek Skalicky <mskalick@redhat.com> - 3.1.1-0.2.git17a5573
|
|
|
c34f3f |
- Fixed directory ownership
|
|
|
c34f3f |
|
|
|
c34f3f |
* Wed Jan 27 2016 jchaloup <jchaloup@redhat.com> - 3.1.1-0.1.git17a5573
|
|
|
c34f3f |
- Update to 3.2.1
|
|
|
c34f3f |
resolves: #1282650
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon Nov 09 2015 jchaloup <jchaloup@redhat.com> - 3.0.4-0.2.gitefe71bf
|
|
|
c34f3f |
- Update to spec-2.1
|
|
|
c34f3f |
resolves: #1279140
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon Jun 22 2015 Marek Skalicky <mskalick@redhat.com> - 3.0.4-1
|
|
|
c34f3f |
- Repacked by using gofed tool (thanks to jchaloup@redhat.com)
|
|
|
c34f3f |
|
|
|
c34f3f |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
|
|
|
c34f3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon May 11 2015 Marek Skalicky <mskalick@redhat.com> - 3.0.3-1
|
|
|
c34f3f |
- Upgrade to version 3.0.3
|
|
|
c34f3f |
- Add Apache license
|
|
|
c34f3f |
|
|
|
c34f3f |
* Mon May 4 2015 Marek Skalicky <mskalick@redhat.com> - 3.0.2-1
|
|
|
c34f3f |
- Initial packaging
|