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