Initial import
This commit is contained in:
parent
b0a5c79364
commit
354a119cb5
4 changed files with 112 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/ver_1.5.2.tar.gz
|
||||
8
ci.fmf
Normal file
8
ci.fmf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
summary: Tier tests
|
||||
discover:
|
||||
how: fmf
|
||||
repository: https://src.fedoraproject.org/tests/postgresql.git
|
||||
ref: main
|
||||
filter: 'tag:pg_repack'
|
||||
execute:
|
||||
how: tmt
|
||||
102
postgresql18-pg_repack.spec
Normal file
102
postgresql18-pg_repack.spec
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
%{!?postgresql_default:%global postgresql_default 1}
|
||||
|
||||
%global majorname pg_repack
|
||||
%global pgversion 18
|
||||
Name: postgresql%{pgversion}-%{majorname}
|
||||
Version: 1.5.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Reorganize tables in PostgreSQL databases without any locks
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: http://reorg.github.io/%{majorname}/
|
||||
Source0: https://github.com/reorg/%{majorname}/archive/ver_%{version}.tar.gz
|
||||
|
||||
%if %?postgresql_default
|
||||
%global pkgname %{majorname}
|
||||
%package -n %{pkgname}
|
||||
Summary: Reorganize tables in PostgreSQL databases without any locks
|
||||
%else
|
||||
%global pkgname %name
|
||||
%endif
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc, openssl-devel, lz4-devel, libzstd-devel
|
||||
BuildRequires: postgresql-server-devel >= 18, postgresql-server-devel < 19
|
||||
BuildRequires: postgresql-server >= 18, postgresql-server < 19
|
||||
BuildRequires: postgresql-static >= 18, postgresql-static < 19
|
||||
BuildRequires: readline-devel, zlib-devel
|
||||
BuildRequires: python3-docutils
|
||||
Requires(pre): postgresql-server >= 18, postgresql-server < 19
|
||||
|
||||
%global precise_version %{?epoch:%epoch:}%version-%release
|
||||
Provides: %{pkgname} = %precise_version
|
||||
%if %?postgresql_default
|
||||
Provides: postgresql-%{majorname} = %precise_version
|
||||
Provides: %name = %precise_version
|
||||
%endif
|
||||
Provides: %{pkgname}%{?_isa} = %precise_version
|
||||
Provides: %{majorname}-any
|
||||
Conflicts: %{majorname}-any
|
||||
|
||||
%description
|
||||
pg_repack is a PostgreSQL extension which lets you remove
|
||||
bloat from tables and indexes, and optionally
|
||||
restore the physical order of clustered indexes.
|
||||
Unlike CLUSTER and VACUUM FULL it works online,
|
||||
without holding an exclusive lock on the processed tables during processing.
|
||||
pg_repack is efficient to boot,
|
||||
with performance comparable to using CLUSTER directly.
|
||||
|
||||
Please check the documentation (in the doc directory or online)
|
||||
for installation and usage instructions.
|
||||
|
||||
%description -n %{pkgname}
|
||||
pg_repack is a PostgreSQL extension which lets you remove
|
||||
bloat from tables and indexes, and optionally
|
||||
restore the physical order of clustered indexes.
|
||||
Unlike CLUSTER and VACUUM FULL it works online,
|
||||
without holding an exclusive lock on the processed tables during processing.
|
||||
pg_repack is efficient to boot,
|
||||
with performance comparable to using CLUSTER directly.
|
||||
|
||||
Please check the documentation (in the doc directory or online)
|
||||
for installation and usage instructions.
|
||||
|
||||
%prep
|
||||
%setup -n %{majorname}-ver_%{version} -q
|
||||
|
||||
|
||||
%build
|
||||
|
||||
make %{?_smp_mflags}
|
||||
cd doc
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%files -n %{pkgname}
|
||||
%{_bindir}/%{majorname}
|
||||
%{_libdir}/pgsql/%{majorname}.so
|
||||
%if 0%{?postgresql_server_llvmjit}
|
||||
%{_libdir}/pgsql/bitcode/%{majorname}.index.bc
|
||||
%{_libdir}/pgsql/bitcode/%{majorname}/pgut/pgut-spi.bc
|
||||
%{_libdir}/pgsql/bitcode/%{majorname}/repack.bc
|
||||
%endif
|
||||
%{_datadir}/pgsql/extension/%{majorname}.control
|
||||
%{_datadir}/pgsql/extension/%{majorname}--%{version}.sql
|
||||
|
||||
%license COPYRIGHT
|
||||
|
||||
%doc README.rst
|
||||
%doc doc/%{majorname}.html
|
||||
%doc doc/%{majorname}.rst
|
||||
%doc doc/%{majorname}_jp.html
|
||||
%doc doc/%{majorname}_jp.rst
|
||||
%doc doc/release.html
|
||||
%doc doc/release.rst
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Nikola Davidova <ndavidov@redhat.com> - 1.5.2-1
|
||||
- Initial packaging
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (ver_1.5.2.tar.gz) = da02fca66b00d58a910eeadadeda952003d9959bff41fafddece56712c06b0a2436dd66d4c0f6bf26736599127ba57af39fef4e099b0cf012076d907f1574912
|
||||
Loading…
Reference in a new issue