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