Fork the pg_repack extension
This commit is contained in:
62
SPECS/pg_repack84.spec
Executable file
62
SPECS/pg_repack84.spec
Executable file
@ -0,0 +1,62 @@
|
||||
# SPEC file for pg_repack
|
||||
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
||||
%define sname pg_repack
|
||||
|
||||
Summary: Reorganize tables in PostgreSQL databases without any locks.
|
||||
Name: %{sname}
|
||||
Version: 1.1.5
|
||||
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, postgresql-libs
|
||||
|
||||
%description
|
||||
pg_repack 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 -d %{buildroot}%{_libdir}/pgsql
|
||||
install -d %{buildroot}%{_bindir}
|
||||
install -d %{buildroot}%{_datadir}/pgsql/contrib
|
||||
|
||||
install -m 755 bin/pg_repack %{buildroot}%{_bindir}/pg_repack
|
||||
install -m 755 lib/pg_repack.so %{buildroot}%{_libdir}/pgsql/pg_repack.so
|
||||
install -m 644 lib/pg_repack.sql %{buildroot}%{_datadir}/pgsql/contrib/pg_repack.sql
|
||||
install -m 644 lib/uninstall_pg_repack.sql %{buildroot}%{_datadir}/pgsql/contrib/uninstall_pg_repack.sql
|
||||
|
||||
%define pg_sharedir
|
||||
|
||||
%files
|
||||
%defattr(755,root,root,755)
|
||||
%{_bindir}/pg_repack
|
||||
%{_libdir}/pgsql/pg_repack.so
|
||||
%defattr(644,root,root,755)
|
||||
%{_datadir}/pgsql/contrib/pg_repack.sql
|
||||
%{_datadir}/pgsql/contrib/uninstall_pg_repack.sql
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%changelog
|
||||
* Thu Oct 21 2010 - NTT OSS Center <sakamoto.masahiko@oss.ntt.co.jp> 1.1.5-1
|
||||
* Wed Sep 22 2010 - NTT OSS Center <sakamoto.masahiko@oss.ntt.co.jp> 1.1.4-1
|
||||
* Thu Apr 22 2010 - NTT OSS Center <itagaki.takahiro@oss.ntt.co.jp> 1.1.2-1
|
||||
* 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
|
Reference in New Issue
Block a user