-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgmq.spec
44 lines (36 loc) · 1.54 KB
/
pgmq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%define debug_package %{nil}
%global pname pgmq
%global sname pgmq
%global pginstdir /usr/pgsql-%{pgmajorversion}
Name: %{sname}_%{pgmajorversion}
Version: 1.4.4
Release: 1PIGSTY%{?dist}
Summary: A lightweight message queue. Like AWS SQS and RSMQ but on Postgres.
License: PostgreSQL
URL: https://github.com/tembo-io/pgmq
SOURCE0: pgmq-%{version}.tar.gz
# https://github.com/tembo-io/pgmq/archive/refs/tags/v1.2.1.tar.gz
BuildRequires: postgresql%{pgmajorversion}-devel pgdg-srpm-macros >= 1.0.27
Requires: postgresql%{pgmajorversion}-server
%description
Postgres Message Queue (PGMQ) -- A lightweight message queue. Like AWS SQS and RSMQ but on Postgres.
Lightweight - No background worker or external dependencies, just Postgres functions packaged in an extension
Guaranteed "exactly once" delivery of messages to a consumer within a visibility timeout API parity with AWS SQS and RSMQ
Messages stay in the queue until explicitly removed, Messages can be archived, instead of deleted, for long-term retention and replayability
%prep
%setup -q -n %{sname}-%{version}
%build
PATH=%{pginstdir}/bin:$PATH make
%install
%{__rm} -rf %{buildroot}
PATH=%{pginstdir}/bin:$PATH make install DESTDIR=%{buildroot}
%files
%doc README.md
%{pginstdir}/share/extension/%{pname}.control
%{pginstdir}/share/extension/%{pname}*sql
%exclude /usr/lib/.build-id/*
%changelog
* Mon Oct 14 2024 Vonng <[email protected]> - 1.4.4
* Sat Jun 29 2024 Vonng <[email protected]> - 1.2.1
* Sun May 5 2024 Vonng <[email protected]> - 1.1.1
- Initial RPM release, used by Pigsty <https://pigsty.io>