mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-08 13:44:32 +02:00
78eed96f63
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@48 182aca00-e38e-11de-a668-6fd11605f5ce
65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
# SPEC file for pg_rman
|
|
# Copyright(C) 2009-2010 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
|
|
|
%define _pgdir /usr/pgsql-9.0
|
|
%define _bindir %{_pgdir}/bin
|
|
%define _libdir %{_pgdir}/lib
|
|
%define _datadir %{_pgdir}/share
|
|
|
|
## Set general information for pg_rman.
|
|
Summary: Backup and Recovery Tool for PostgreSQL
|
|
Name: pg_rman
|
|
Version: 1.2.0
|
|
Release: 1%{?dist}
|
|
License: BSD
|
|
Group: Applications/Databases
|
|
Source0: %{name}-%{version}.tar.gz
|
|
URL: http://code.google.com/p/pg-rman/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
|
|
|
## We use postgresql-devel package
|
|
BuildRequires: postgresql90-devel
|
|
Requires: postgresql90-libs
|
|
|
|
## Description for "pg_rman"
|
|
%description
|
|
pg_rman manages backup and recovery of PostgreSQL.
|
|
pg_rman has the features below:
|
|
-Takes a backup while database including tablespaces with just one command.
|
|
-Can recovery from backup with just one command.
|
|
-Supports incremental backup and compression of backup files so that it takes less disk spaces.
|
|
-Manages backup generations and shows a catalog of the backups.
|
|
|
|
|
|
## pre work for build pg_rman
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
## Set variables for build environment
|
|
%build
|
|
USE_PGXS=1 make %{?_smp_mflags}
|
|
|
|
## Set variables for install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
USE_PGXS=1 make %{?_smp_mflags} install
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
install -m 755 pg_rman %{buildroot}%{_bindir}/pg_rman
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(755,root,root)
|
|
%{_bindir}/pg_rman
|
|
|
|
# History of pg_rman.
|
|
%changelog
|
|
* Wed Nov 10 2010 - NTT OSS Center <tomonari.katsumata@oss.ntt.co.jp> 1.2.0-1
|
|
* Wed Dec 9 2009 - NTT OSS Center <itagaki.takahiro@oss.ntt.co.jp> 1.1.1-1
|
|
- Initial cut for 1.1.1
|
|
|