-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPM build created and README updated
- Loading branch information
1 parent
97c7e85
commit 81e743e
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ | |
!NEWS | ||
!README | ||
!README.md | ||
|
||
!rpmbuild/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ AC_PREREQ([2.69]) | |
AC_INIT([pg-password-generator], [1.0], [[email protected]]) | ||
AC_CONFIG_SRCDIR([src/main.c]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
AC_PREFIX_DEFAULT([/usr/local]) | ||
AC_PREFIX_DEFAULT([/usr/bin]) | ||
|
||
AM_INIT_AUTOMAKE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |