Name: pgtidy Version: 0.1.0 Release: 1%{?dist} Summary: PostgreSQL SQL formatter and linter License: MIT URL: https://git.warky.dev/wdevs/pgtidy Source0: %{name}-%{version}.tar.gz BuildRequires: golang >= 1.26 %global debug_package %{nil} %define _debugsource_packages 0 %define _debuginfo_subpackages 0 %description PgTidy formats and lints PostgreSQL SQL, enforcing a consistent style for migrations, schemas, functions, procedures, and triggers. %prep %autosetup %build export CGO_ENABLED=0 go build \ -trimpath \ -ldflags "-X main.version=%{version}" \ -o %{name} ./cmd/pgtidy %install install -Dm755 %{name} %{buildroot}%{_bindir}/%{name} install -Dm644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE %files %license LICENSE %{_bindir}/%{name} %changelog * Sun Jun 29 2026 Hein (Warky Devs) - 0.1.0-1 - Initial package