-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from psoo/pgdg-rpm
PGDG RPMs
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 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
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,9 @@ | ||
The SPEC file found here is intended to be | ||
used with PGDG PostgreSQL packages. To build a | ||
toastinfo package, you have to specify the target | ||
PostgreSQL PGDG release and the installation directory, | ||
where the packages can be found. | ||
|
||
Example: | ||
|
||
rpmbuild -D"pgdgversion 10" -D "pginstdir /usr/pgsql-10/" -ba toastinfo.spec |
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,42 @@ | ||
Name: toastinfo | ||
Version: 1.0 | ||
Release: 1%{?dist} | ||
Summary: A PostgreSQL extension module to view toast value information. | ||
|
||
Group: database | ||
License: BSD | ||
URL: https://github.com/credativ/toastinfo | ||
Source0: https://github.com/credativ/toastinfo/archive/v%{version}.tar.gz | ||
|
||
BuildRequires: postgresql%{pgdgversion}-devel | ||
Requires: postgresql%{pgdgversion} | ||
|
||
%description | ||
This PostgreSQL extension exposes the internal storage structure of variable-length datatypes, called varlena. | ||
|
||
%prep | ||
%setup -q | ||
|
||
|
||
%build | ||
PG_CONFIG=%{pginstdir}/bin/pg_config USE_PGXS=1 make %{?_smp_mflags} | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
PG_CONFIG=%{pginstdir}/bin/pg_config USE_PGXS=1 make install DESTDIR=$RPM_BUILD_ROOT | ||
|
||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{pginstdir}/lib/toastinfo.so | ||
%{pginstdir}/share/extension/toastinfo--1.sql | ||
%{pginstdir}/share/extension/toastinfo.control | ||
|
||
|
||
%changelog | ||
* Tue Apr 03 2018 - Bernd Helmle <[email protected]> 1.0-1 | ||
- Upstream release 1.0 |