## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %{!?postgresql_default:%global postgresql_default 0} %global shortname cron %global pgversion 16 %global extension pg_%{shortname} Name: postgresql%{pgversion}-%{shortname} Version: 1.6.7 Release: %autorelease Summary: A simple cron-based job scheduler for PostgreSQL License: PostgreSQL URL: https://github.com/citusdata/pg_cron Source0: https://github.com/citusdata/pg_cron/archive/refs/tags/v%{version}.tar.gz # drop i686 support (https://fedoraproject.org/wiki/Changes/Noi686Repositories) ExcludeArch: %{ix86} %if %?postgresql_default %global pkgname %{extension} %package -n %{pkgname} Summary: A simple cron-based job scheduler for PostgreSQL %else %global pkgname %name %endif BuildRequires: gcc redhat-rpm-config BuildRequires: postgresql%{pgversion}-server-devel Requires: postgresql%{pgversion}-server %description pg_cron is a simple cron-based job scheduler for PostgreSQL (10 or higher) that runs inside the database as an extension. The extension creates a background worker that tracks jobs in the `cron.job` table. Based on your configurations, to execute a job, the extension establishes a Postgres connection or spawns a database worker. %if %?postgresql_default %description -n %{pkgname} pg_cron is a simple cron-based job scheduler for PostgreSQL (10 or higher) that runs inside the database as an extension. The extension creates a background worker that tracks jobs in the `cron.job` table. Based on your configurations, to execute a job, the extension establishes a Postgres connection or spawns a database worker. %endif %prep %autosetup -n %extension-%version %build %make_build %install %make_install # impossible without compiling own postgres (hard-coded location for extensions) # integration tests are in gating %check %files -n %{pkgname} %{_libdir}/pgsql/pg_cron.so %{_datadir}/pgsql/extension/pg_cron.control %{_datadir}/pgsql/extension/pg_cron--1*.sql %license LICENSE %doc CHANGELOG.md README.md %changelog ## START: Generated by rpmautospec * Tue Feb 24 2026 John Doe - 1.6.7-1 - Uncommitted changes ## END: Generated by rpmautospec