-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgjwt.spec
38 lines (31 loc) · 1.01 KB
/
pgjwt.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
%define debug_package %{nil}
%global pname pgjwt
%global sname pgjwt
%global pginstdir /usr/pgsql-%{pgmajorversion}
Name: %{sname}_%{pgmajorversion}
Version: 0.2.0
Release: 1PIGSTY%{?dist}
Summary: PostgreSQL implementation of JSON Web Tokens
License: MIT
URL: https://github.com/michelp/pgjwt
Source0: pgjwt-%{version}.tar.gz
# https://github.com/michelp/pgjwt/archive/refs/heads/master.zip
BuildRequires: postgresql%{pgmajorversion}-devel pgdg-srpm-macros >= 1.0.27
Requires: postgresql%{pgmajorversion}-server
%description
PostgreSQL implementation of JSON Web Tokens, pure SQL
%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 Sep 18 2023 Vonng <[email protected]> - 0.2.0
- Initial RPM release, used by Pigsty <https://pigsty.io>