960a4a
Name:           pg_repack
960a4a
Version:        1.4.6
960a4a
Release:        3%{?dist}
960a4a
Summary:        Reorganize tables in PostgreSQL databases without any locks
960a4a
960a4a
License:        BSD
960a4a
URL:            http://reorg.github.io/%{name}/
960a4a
Source0:        https://github.com/reorg/%{name}/archive/ver_%{version}.tar.gz
960a4a
960a4a
BuildRequires: make
960a4a
BuildRequires:  postgresql, gcc, openssl-devel, postgresql-server
960a4a
BuildRequires:  postgresql-libs, postgresql-devel, postgresql-server-devel
960a4a
BuildRequires:  readline-devel, zlib-devel, postgresql-static
960a4a
BuildRequires:  python3-docutils
960a4a
%{?postgresql_module_requires}
960a4a
960a4a
%description
960a4a
pg_repack is a PostgreSQL extension which lets you remove
960a4a
bloat from tables and indexes, and optionally
960a4a
restore the physical order of clustered indexes.
960a4a
Unlike CLUSTER and VACUUM FULL it works online,
960a4a
without holding an exclusive lock on the processed tables during processing.
960a4a
pg_repack is efficient to boot,
960a4a
with performance comparable to using CLUSTER directly.
960a4a
960a4a
Please check the documentation (in the doc directory or online)
960a4a
for installation and usage instructions.
960a4a
%prep
960a4a
%setup -n %{name}-ver_%{version} -q
960a4a
960a4a
960a4a
%build
960a4a
960a4a
make %{?_smp_mflags}
960a4a
cd doc
960a4a
make
960a4a
960a4a
960a4a
%install
960a4a
%make_install
960a4a
960a4a
%files
960a4a
%{_bindir}/%{name}
960a4a
%{_libdir}/pgsql/%{name}.so
960a4a
%if 0%{?postgresql_server_llvmjit}
960a4a
%{_libdir}/pgsql/bitcode/%{name}.index.bc
960a4a
%{_libdir}/pgsql/bitcode/%{name}/pgut/pgut-spi.bc
960a4a
%{_libdir}/pgsql/bitcode/%{name}/repack.bc
960a4a
%endif
960a4a
%{_datadir}/pgsql/extension/%{name}.control
960a4a
%{_datadir}/pgsql/extension/%{name}--%{version}.sql
960a4a
960a4a
%license COPYRIGHT
960a4a
960a4a
%doc README.rst
960a4a
%doc doc/%{name}.html
960a4a
%doc doc/%{name}.rst
960a4a
%doc doc/%{name}_jp.html
960a4a
%doc doc/%{name}_jp.rst
960a4a
%doc doc/release.html
960a4a
%doc doc/release.rst
960a4a
960a4a
960a4a
%changelog
960a4a
* Wed May 26 2021 Filip Januš <fjanus@redhat.com> - 1.4.6-3
960a4a
- Release bump - enable gating
960a4a
960a4a
* Mon May 24 2021 Filip Januš <fjanus@redhat.com> - 1.4.6-2
960a4a
- Rebuild
960a4a
- Resolves:#1954442
960a4a
960a4a
* Thu Jan 14 2021 Patrik Novotný <panovotn@redhat.com> - 1.4.6-1
960a4a
- Rebase to upstream release 1.4.6
960a4a
960a4a
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
960a4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
960a4a
960a4a
* Wed Aug 21 2019 Filip Januš <fjanus@redhat.com> 1.4.5-1
960a4a
- Initial packaging