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