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