mirror of
https://abf.rosa.ru/djam/lazysql.git
synced 2025-02-23 14:52:45 +00:00
35 lines
639 B
RPMSpec
35 lines
639 B
RPMSpec
|
%define debug %nil
|
||
|
%define debug_package %nil
|
||
|
|
||
|
Name: lazysql
|
||
|
Version: 0.1.0
|
||
|
Release: 1
|
||
|
Summary: TUI database management tool
|
||
|
URL: https://github.com/jorgerojas26/lazysql
|
||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||
|
License: MIT
|
||
|
Group: Development/Other
|
||
|
BuildRequires: go
|
||
|
BuildRequires: git-core
|
||
|
BuildRequires: upx
|
||
|
|
||
|
%description
|
||
|
A cross-platform TUI database management tool written in Go
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
export GOPROXY=direct
|
||
|
go build --ldflags="-s -w" -o bin/%{name} .
|
||
|
|
||
|
upx bin/%{name}
|
||
|
|
||
|
%install
|
||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||
|
|
||
|
%files
|
||
|
%doc README.md LICENSE*
|
||
|
%{_bindir}/%{name}
|
||
|
|