# SPEC file for pg_reorg # Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION %define sname pg_reorg Summary: Reorganize tables in PostgreSQL databases without any locks. Name: %{sname} Version: 1.1.3 Release: 1%{?dist} License: BSD Group: Applications/Databases Source0: %{sname}-%{version}.tar.gz URL: http://pgfoundry.org/projects/%{sname}/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) BuildRequires: postgresql-devel, postgresql Requires: postgresql %description pg_reorg can re-organize tables on a postgres database without any locks so that you can retrieve or update rows in tables being reorganized. The module is developed to be a better alternative of CLUSTER and VACUUM FULL. %prep %setup -q -n %{sname}-%{version} %build USE_PGXS=1 make %{?_smp_mflags} %install rm -rf %{buildroot} USE_PGXS=1 make DESTDIR=%{buildroot} install install -m 755 bin/pg_reorg %{buildroot}%{_bindir}/pg_reorg install -m 755 lib/pg_reorg.so %{buildroot}%{_libdir}/pgsql/pg_reorg.so install -m 644 lib/pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/pg_reorg.sql install -m 644 lib/uninstall_pg_reorg.sql %{buildroot}%{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql %define pg_sharedir %files %defattr(755,root,root,755) %{_bindir}/pg_reorg %{_libdir}/pgsql/pg_reorg.so %defattr(644,root,root,755) %{_datadir}/pgsql/contrib/pg_reorg.sql %{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql %clean rm -rf %{buildroot} %changelog * Thu Apr 22 2010 - NTT OSS Center 1.1.2-1 * Mon Jan 15 2010 - Toru SHIMOGAKI 1.0.8-1 * Tue Sep 08 2009 - Toru SHIMOGAKI 1.0.6-1 * Fri May 15 2009 - Toru SHIMOGAKI 1.0.4-1 - Initial packaging