fix: fixed compile issues and added build steps
CI / Test (push) Successful in 24s
CI / Build snapshot (push) Successful in 1m17s

This commit is contained in:
Hein
2026-06-29 08:52:21 +02:00
parent 9243c281a6
commit 531087bfed
13 changed files with 147 additions and 14 deletions
+40
View File
@@ -0,0 +1,40 @@
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) <hein@warky.dev> - 0.1.0-1
- Initial package