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