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