Skip to content

Commit 1cd2b09

Browse files
committed
pg_reorg 1.1.1.
1 parent 78b0a0e commit 1cd2b09

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

SPECS/pg_reorg.spec

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
%define sname pg_reorg
2+
3+
Summary: Reorganize tables in PostgreSQL databases without any locks.
4+
Name: %{sname}
5+
Version: 1.1.1
6+
Release: 1%{?dist}
7+
License: BSD
8+
Group: Applications/Databases
9+
Source0: http://pgfoundry.org/frs/download.php/1301/%{sname}-%{version}.tar.gz
10+
URL: http://pgfoundry.org/projects/%{sname}/
11+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
12+
13+
BuildRequires: postgresql-devel, postgresql
14+
Requires: postgresql
15+
16+
%description
17+
18+
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.
19+
20+
%prep
21+
rm -rf %{_libdir}/pgsql/pgxs/src/backend/
22+
rm -rf %{_builddir}/src
23+
rm -rf %{_builddir}/%{sname}
24+
25+
%setup -n %{sname}
26+
27+
%build
28+
USE_PGXS=1 make %{?_smp_mflags}
29+
30+
%install
31+
rm -rf %{buildroot}
32+
USE_PGXS=1 make DESTDIR=%{buildroot} install
33+
34+
%define pg_sharedir
35+
36+
37+
%files
38+
%defattr(755,root,root,755)
39+
%{_bindir}/pg_reorg
40+
%{_libdir}/pgsql/pg_reorg.so
41+
%defattr(644,root,root,755)
42+
%{_datadir}/pgsql/contrib/pg_reorg.sql
43+
%{_datadir}/pgsql/contrib/uninstall_pg_reorg.sql
44+
45+
%clean
46+
rm -rf %{buildroot}
47+
rm -rf %{_libdir}/pgsql/pgxs/src/backend/
48+
49+
%changelog
50+
* Mon Jan 15 2010 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.8-1
51+
* Tue Sep 08 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.6-1
52+
* Fri May 15 2009 - Toru SHIMOGAKI <shimogaki.toru@oss.ntt.co.jp> 1.0.4-1
53+
- Initial packaging

0 commit comments

Comments
 (0)