Blame SPECS/pg_repack.spec

e33efb
%{?scl:%scl_package pg_repack}
e33efb
%{!?scl:%global pkg_name %{name}}
e33efb
e33efb
Name:           %{?scl_prefix}pg_repack
e33efb
Version:        1.4.6
e33efb
Release:        2%{?dist}
e33efb
Summary:        Reorganize tables in PostgreSQL databases without any locks
e33efb
e33efb
License:        BSD
e33efb
URL:            http://reorg.github.io/%{pkg_name}/
e33efb
Source0:        https://github.com/reorg/%{pkg_name}/archive/ver_%{version}.tar.gz
e33efb
e33efb
BuildRequires:  make
e33efb
BuildRequires:  %{?scl_prefix}postgresql, gcc, openssl-devel, %{?scl_prefix}postgresql-server
e33efb
BuildRequires:  %{?scl_prefix}postgresql-libs, %{?scl_prefix}postgresql-devel
e33efb
BuildRequires:  readline-devel, zlib-devel, %{?scl_prefix}postgresql-static
e33efb
BuildRequires:  python-docutils
e33efb
e33efb
%description
e33efb
pg_repack is a PostgreSQL extension which lets you remove
e33efb
bloat from tables and indexes, and optionally
e33efb
restore the physical order of clustered indexes.
e33efb
Unlike CLUSTER and VACUUM FULL it works online,
e33efb
without holding an exclusive lock on the processed tables during processing.
e33efb
pg_repack is efficient to boot,
e33efb
with performance comparable to using CLUSTER directly.
e33efb
e33efb
Please check the documentation (in the doc directory or online)
e33efb
for installation and usage instructions.
e33efb
e33efb
%if 0%{?scl:1}
e33efb
%scl_syspaths_package -d
e33efb
%endif
e33efb
e33efb
%prep
e33efb
%{?scl:scl enable %{scl} - << \EOF}
e33efb
set -ex
e33efb
%setup -n %{pkg_name}-ver_%{version} -q
e33efb
%{?scl:EOF}
e33efb
e33efb
e33efb
%build
e33efb
e33efb
%{?scl:scl enable %{scl} - << \EOF}
e33efb
set -ex
e33efb
make %{?_smp_mflags}
e33efb
cd doc
e33efb
make
e33efb
%{?scl:EOF}
e33efb
e33efb
e33efb
%install
e33efb
%{?scl:scl enable %{scl} - << \EOF}
e33efb
set -ex
e33efb
%make_install
e33efb
%scl_syspaths_install_wrappers -n %{pkg_name} -m script -p bin %{pkg_name}
e33efb
%{?scl:EOF}
e33efb
e33efb
%files
e33efb
%{_bindir}/%{pkg_name}
e33efb
%{_libdir}/pgsql/%{pkg_name}.so
e33efb
%{_datadir}/pgsql/extension/%{pkg_name}.control
e33efb
%{_datadir}/pgsql/extension/%{pkg_name}--%{version}.sql
e33efb
e33efb
%license COPYRIGHT
e33efb
e33efb
%doc README.rst
e33efb
%doc doc/%{pkg_name}.html
e33efb
%doc doc/%{pkg_name}.rst
e33efb
%doc doc/%{pkg_name}_jp.html
e33efb
%doc doc/%{pkg_name}_jp.rst
e33efb
%doc doc/release.html
e33efb
%doc doc/release.rst
e33efb
e33efb
%if 0%{?scl:1}
e33efb
%scl_syspaths_files
e33efb
%endif
e33efb
e33efb
%changelog
e33efb
* Wed Mar 10 2021 Honza Horak <hhorak@redhat.com> - 1.4.6-2
e33efb
- Convert to SCL package
e33efb
- Remove llvm-jit fragments as we don't have it in RHSCL package
e33efb
e33efb
* Thu Jan 28 2021 Patrik Novotný <panovotn@redhat.com> - 1.4.6-1
e33efb
- Rebase to upstream release 1.4.6
e33efb
e33efb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-3
e33efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e33efb
e33efb
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
e33efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e33efb
e33efb
* Wed Aug 21 2019 Filip Januš <fjanus@redhat.com> 1.4.5-1
e33efb
- Initial packaging