Blame SPECS/pg_repack.spec

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