2010-06-14 05:11:26 +00:00
|
|
|
# SPEC file for pg_reorg
|
|
|
|
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
2010-04-22 01:29:08 +00:00
|
|
|
%define sname pg_reorg
|
|
|
|
|
|
|
|
Summary: Reorganize tables in PostgreSQL databases without any locks.
|
|
|
|
Name: %{sname}
|
2010-06-18 01:12:28 +00:00
|
|
|
Version: 1.1.3
|
2010-04-22 01:29:08 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
License: BSD
|
|
|
|
Group: Applications/Databases
|
2010-06-14 05:11:26 +00:00
|
|
|
Source0: %{sname}-%{version}.tar.gz
|
2010-04-22 01:29:08 +00:00
|
|
|
URL: http://pgfoundry.org/projects/%{sname}/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: postgresql-devel, postgresql
|
|
|
|
Requires: postgresql
|
|
|
|
|
|
|
|
%description
|
2010-06-14 05:11:26 +00:00
|
|
|
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.
|
2010-04-22 01:29:08 +00:00
|
|
|
|
|
|
|
%prep
|
2010-06-14 05:11:26 +00:00
|
|
|
%setup -q -n %{sname}-%{version}
|
2010-04-22 01:29:08 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
USE_PGXS=1 make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
USE_PGXS=1 make DESTDIR=%{buildroot} install
|
|
|
|
|
2010-06-14 05:11:26 +00:00
|
|
|
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
|
2010-04-22 01:29:08 +00:00
|
|
|
|
2010-06-14 05:11:26 +00:00
|
|
|
%define pg_sharedir
|
2010-04-22 01:29:08 +00:00
|
|
|
|
|
|
|
%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
|
2010-06-14 05:11:26 +00:00
|
|
|
* Thu Apr 22 2010 - NTT OSS Center <itagaki.takahiro@oss.ntt.co.jp> 1.1.2-1
|
2010-04-22 01:29:08 +00:00
|
|
|
* Mon Jan 15 2010 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.8-1
|
|
|
|
* Tue Sep 08 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.6-1
|
|
|
|
* Fri May 15 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.4-1
|
|
|
|
- Initial packaging
|