-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpg-password-generator.spec
More file actions
37 lines (30 loc) · 967 Bytes
/
pg-password-generator.spec
File metadata and controls
37 lines (30 loc) · 967 Bytes
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
Name: pg-password-generator
Version: 1.0
Release: 1%{?dist}
Summary: Simple password generator for Postgres >= 10 using SCRAM-SHA-256
License: GPL2
URL: https://github.com/DenisMedeirosBBD/PostgresSCRAM256PasswordGenerator/
Source0: https://github.com/DenisMedeirosBBD/PostgresSCRAM256PasswordGenerator/archive/%{version}.tar.gz
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: postgresql10-devel
Requires: postgresql10-devel >= 10
%description
%{summary}
%prep
%setup -q -n PostgresSCRAM256PasswordGenerator-%{version}
%build
echo "Preparing building..."
export LIBPQ_CFLAGS="-I/usr/pgsql-10/include/"
export LIBPQ_LIBS="pq"
export CPPFLAGS="-I/usr/pgsql-10/include/"
export LDFLAGS="-L/usr/pgsql-10/lib/"
autoreconf -iv
./configure
%{make_build}
echo "Building completed sucessfully."
%install
%{make_install} PREFIX=%{_prefix}
%files
/usr/bin/pg-password-generator