diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 index 492bf8a..ae265e6 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ /pg_filedump-*.tar.gz -/REL_14_0.tar.gz -/REL_16_0.tar.gz diff --git a/pg_filedump.1 b/pg_filedump.1 new file mode 100644 index 0000000..93a58d4 --- /dev/null +++ b/pg_filedump.1 @@ -0,0 +1,64 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.44.1. +.TH PG_FILEDUMP "1" "April 2014" "pg_filedump 9.3.0" "User Commands" +.SH NAME +pg_filedump \- PostgreSQL heap/index/control file dumper +.SH SYNOPSIS +.B pg_filedump +[\fI-abcdfhixy\fR] [\fI-R startblock \fR[\fIendblock\fR]] [\fI-S blocksize\fR] \fIfile\fR +.SH DESCRIPTION +Display formatted contents of a PostgreSQL heap/index/control file. +.SS "The following options are valid for heap and index files:" +.TP +\fB\-a\fR +Display absolute addresses when formatting (Block header +information is always block relative) +.TP +\fB\-b\fR +Display binary block images within a range (Option will turn +off all formatting options) +.TP +\fB\-d\fR +Display formatted block content dump (Option will turn off +all other formatting options) +.TP +\fB\-f\fR +Display formatted block content dump along with interpretation +.TP +\fB\-h\fR +Display this information +.TP +\fB\-i\fR +Display interpreted item details +.TP +\fB\-R\fR +Display specific block ranges within the file (Blocks are +indexed from 0) +.IP +[startblock]: block to start at +[endblock]: block to end at +.IP +A startblock without an endblock will format the single block +.TP +\fB\-S\fR +Force block size to [blocksize] +.TP +\fB\-x\fR +Force interpreted formatting of block items as index items +.TP +\fB\-y\fR +Force interpreted formatting of block items as heap items +.SS "The following options are valid for control files:" +.TP +\fB\-c\fR +Interpret the file listed as a control file +.TP +\fB\-f\fR +Display formatted content dump along with interpretation +.TP +\fB\-S\fR +Force block size to [blocksize] +.SH OTHERS +This manual page was generated from pg_filedump help output (\fB-h\fR) by +help2man(1). +.SH "REPORTING BUGS" +Report bugs to diff --git a/rhdb-utils.spec b/rhdb-utils.spec index ac4cd31..0564fa3 100644 --- a/rhdb-utils.spec +++ b/rhdb-utils.spec @@ -3,111 +3,60 @@ # , Tom Lane # Copyright (C) 2002-2012 Red Hat, Inc. -%global tarballname REL_16_0 - Summary: Miscellaneous utilities for PostgreSQL - Red Hat Edition Name: rhdb-utils -Version: 16.0 -Release: 7%{?dist} -URL: https://github.com/df7cb/pg_filedump -# Automatically converted from old format: GPLv2+ - review is highly recommended. -License: GPL-2.0-or-later +Version: 12.0 +Release: 3%{?dist} +# URL: http://pgfoundry.org/projects/pgfiledump/ +URL: https://wiki.postgresql.org/wiki/Pg_filedump +License: GPLv2+ -BuildRequires: make BuildRequires: clang -BuildRequires: postgresql-server-devel, postgresql-static -BuildRequires: lz4-devel +BuildRequires: postgresql-server-devel, postgresql-static, libpq-devel -Source0: https://github.com/df7cb/pg_filedump/archive/refs/tags/%{tarballname}.tar.gz +# This is kind of work-around; even though we don't install PostgreSQL server +# modules in this package, we still want to depend on the major version of +# PostgreSQL server (or rather we want to be notified that new rebuild is needed +# for new major version of PostgreSQL) +%{?postgresql_module_requires} -Requires(pre): postgresql-server +Provides: pg_filedump = %version-%release -Provides: pg_filedump = %{version}-%{release} +# Source0: http://pgfoundry.org/frs/download.php/3391/pg_filedump-%%{version}.tar.gz +%global tarballname pg_filedump-REL_12_0-a22c98e + +# Download by wget --content-disposition \ +# 'https://git.postgresql.org/gitweb/?p=pg_filedump.git;a=snapshot;h=REL_12_0;sf=tgz' +Source0: %tarballname.tar.gz +Source1: pg_filedump.1 %description This package contains miscellaneous, non-graphical tools originally developed for PostgreSQL - Red Hat Edition. + %prep -%autosetup -n pg_filedump-%{tarballname} -p1 +%autosetup -n %tarballname -p1 + %build make %{?_smp_mflags} PG_CONFIG=%_bindir/pg_server_config + %install mkdir -p ${RPM_BUILD_ROOT}%{_bindir} install -p -m 755 pg_filedump ${RPM_BUILD_ROOT}%{_bindir} +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 +install -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1 + %files %{_bindir}/pg_filedump -%doc README.pg_filedump.md +%doc README.pg_filedump +%{_mandir}/man1/pg_filedump.1* %changelog -* Fri Jul 25 2025 Fedora Release Engineering - 16.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sat Jan 18 2025 Fedora Release Engineering - 16.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jul 26 2024 Miroslav Suchý - 16.0-5 -- convert license to SPDX - -* Fri Jul 19 2024 Fedora Release Engineering - 16.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Fri Jan 26 2024 Fedora Release Engineering - 16.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 16.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Nov 30 2023 Filip Janus - 16.0-1 -- Update to 16.0 -- Fix requires section fro demodularized version of postgresql - -* Fri Jul 21 2023 Fedora Release Engineering - 14.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Fri Jan 20 2023 Fedora Release Engineering - 14.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Nov 16 2022 Ondřej Sloup - 14.1-2 -- Rebuild for new PostgreSQL 15 - -* Tue Oct 25 2022 Ondrej Sloup - 14.1-1 -- Rebase to the latest upstream version - -* Thu Aug 04 2022 Ondrej Sloup - 14.0-7 -- Fix lz4-devel build requirement -- Change source links -- Remove not updated manual page -- Change globals to make future updates easier - -* Sat Jul 23 2022 Fedora Release Engineering - 14.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Fri Jan 21 2022 Fedora Release Engineering - 14.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Jan 06 2022 Filip Januš - 14.0-2 -- Update to postgresql 14 - -* Wed Jan 05 2022 Filip Januš - 14.0-1 -- Update to 14.0 - -* Mon Aug 09 2021 Honza Horak - 13.1-3 -- Leave the libpq package to be pulled in by postgresql-server-devel - -* Fri Jul 23 2021 Fedora Release Engineering - 13.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Patrik Novotný - 13.1-1 -- Rebase for postgresql 13.1 - -* Wed Jan 27 2021 Fedora Release Engineering - 12.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - * Wed Jul 29 2020 Fedora Release Engineering - 12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources old mode 100755 new mode 100644 index 1b705be..279fc5c --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (REL_16_0.tar.gz) = ed37230ca0cc1a4b3cc85df8437e56166637ac364dae5a65d0372bc70b7f8d7b67cef18587dbd4ffb85c33a12dee7ba0901ee7510224a9cb3b318163fa0e9b36 +SHA512 (pg_filedump-REL_12_0-a22c98e.tar.gz) = 64377bebcb2d893a8ca42cfb7707c7e099b2a79c4aef9155bc9c0e8c77beadf8f4266d78d293e0784a214e6a00b44f157f7ed931691b0f851a520399f2d71914