From aff1c3f611d337fa3648072371735eef6146545a Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Thu, 24 Nov 2022 01:23:54 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ dolt.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .abf.yml create mode 100644 dolt.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..59caefa --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + dolt-0.51.4.tar.gz: a4ebe2d7b8f7ffb339ac7c6d872f758840c40074 diff --git a/dolt.spec b/dolt.spec new file mode 100644 index 0000000..c8e08ce --- /dev/null +++ b/dolt.spec @@ -0,0 +1,45 @@ +%define debug %nil +%define debug_package %nil + +Name: dolt +Version: 0.51.4 +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 +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 docs +%{_bindir}/%{name} + +