2024-01-09 11:22:00 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: lazysql
|
2024-11-30 18:27:24 +00:00
|
|
|
Version: 0.3.2
|
2024-01-09 11:22:00 +03:00
|
|
|
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
|
2024-01-10 20:51:45 +00:00
|
|
|
BuildRequires: pkgconfig(x11-xcb)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2024-10-28 08:59:21 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2024-01-09 11:22:00 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
A cross-platform TUI database management tool written in Go
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-10-28 08:59:21 +00:00
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
2024-01-09 11:22:00 +03:00
|
|
|
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}
|
|
|
|
|