%define debug %nil %define debug_package %nil Name: dolt Version: 1.30.2 Release: 1 Summary: Git for Data URL: https://github.com/dolthub/dolt Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz License: ASL 2.0 Group: Development/Other BuildRequires: go BuildRequires: git-core BuildRequires: upx %description Dolt is a SQL database that you can fork, clone, branch, merge, push and pull just like a Git repository. Connect to Dolt just like any MySQL database to run queries or update the data using SQL commands. Use the command line interface to import CSV files, commit your changes, push them to a remote, or merge your teammate's changes %prep %setup -q # fix permissions find . -perm 0755 -type f -exec chmod 0644 {} \; %build export GOPROXY=https://proxy.golang.org/cached-only pushd go go build -o ../bin/%{name} ./cmd/dolt popd upx bin/%{name} %install install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} %files %doc README.md LICENSE %{_bindir}/%{name}