Files
PgTidy/linux/centos/pgtidy.spec
T
Hein cfc170596a
CI / Test (push) Successful in 37s
Release / Test (push) Successful in 37s
CI / Build (push) Successful in 25s
Release / Debian packages (push) Has been skipped
Release / RPM package (push) Has been skipped
Release / AUR package (push) Has been skipped
Release / VSCode Extension (push) Has been skipped
Release / DataGrip Plugin (push) Has been skipped
Release / Release (push) Failing after 56s
chore(release): bump version to 0.0.1
2026-06-29 12:00:01 +02:00

41 lines
923 B
RPMSpec

Name: pgtidy
Version: 0.0.1
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