Name: snowflake Version: 2.4 Release: 1%{?dist} Summary: Snowflake-style sequence IDs for PostgreSQL License: PostgreSQL URL: https://github.com/pgEdge/snowflake Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: postgresql-server-devel Requires: postgresql-server %description Snowflake is a PostgreSQL extension providing an int8- and sequence-based unique ID solution that can optionally replace the built-in bigserial type. Each generated ID embeds a timestamp, a configurable per-node identifier (GUC snowflake.node), and a counter, making IDs unique across the nodes of a distributed or multi-master cluster without a coordinating server. %prep %autosetup -n %{name}-%{version} %build %make_build USE_PGXS=1 PG_CONFIG=%{_bindir}/pg_config %install %make_install USE_PGXS=1 PG_CONFIG=%{_bindir}/pg_config %check # No running server in the offline chroot: smoke-check the built artifacts only. test -f %{buildroot}%{_libdir}/pgsql/%{name}.so test -f %{buildroot}%{_datadir}/pgsql/extension/%{name}.control grep -q "default_version = '%{version}'" \ %{buildroot}%{_datadir}/pgsql/extension/%{name}.control %files %license LICENSE.md %doc README.md COPYRIGHT %{_libdir}/pgsql/%{name}.so %{_datadir}/pgsql/extension/%{name}.control # No base snowflake--2.4.sql upstream; CREATE EXTENSION resolves 2.4 via 2.3 + # the 2.3--2.4 upgrade, so ship every script (glob, not snowflake--2.4.sql). %{_datadir}/pgsql/extension/%{name}--*.sql %changelog * Sun Jun 21 2026 Bahtiar `kalkin-` Gadimov - 2.4-1 - Initial package of pgEdge snowflake 2.4