Skip to content

Commit 6e39da4

Browse files
author
t.katsumata1122
committed
add specfile for PostgreSQL9.1
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@49 182aca00-e38e-11de-a668-6fd11605f5ce
1 parent 78eed96 commit 6e39da4

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

SPECS/pg_rman91.spec

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPEC file for pg_rman
2+
# Copyright(C) 2009-2011 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
3+
4+
%define _pgdir /usr/pgsql-9.1
5+
%define _bindir %{_pgdir}/bin
6+
%define _libdir %{_pgdir}/lib
7+
%define _datadir %{_pgdir}/share
8+
9+
## Set general information for pg_rman.
10+
Summary: Backup and Recovery Tool for PostgreSQL
11+
Name: pg_rman
12+
Version: 1.2.2
13+
Release: 1%{?dist}
14+
License: BSD
15+
Group: Applications/Databases
16+
Source0: %{name}-%{version}.tar.gz
17+
URL: http://code.google.com/p/pg-rman/
18+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
19+
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
20+
21+
## We use postgresql-devel package
22+
BuildRequires: postgresql91-devel
23+
Requires: postgresql91-libs
24+
25+
## Description for "pg_rman"
26+
%description
27+
pg_rman manages backup and recovery of PostgreSQL.
28+
pg_rman has the features below:
29+
-Takes a backup while database including tablespaces with just one command.
30+
-Can recovery from backup with just one command.
31+
-Supports incremental backup and compression of backup files so that it takes less disk spaces.
32+
-Manages backup generations and shows a catalog of the backups.
33+
34+
35+
## pre work for build pg_rman
36+
%prep
37+
%setup -q -n %{name}-%{version}
38+
39+
## Set variables for build environment
40+
%build
41+
USE_PGXS=1 make %{?_smp_mflags}
42+
43+
## Set variables for install
44+
%install
45+
rm -rf %{buildroot}
46+
47+
USE_PGXS=1 make %{?_smp_mflags} install
48+
49+
install -d %{buildroot}%{_bindir}
50+
install -m 755 pg_rman %{buildroot}%{_bindir}/pg_rman
51+
52+
%clean
53+
rm -rf %{buildroot}
54+
55+
%files
56+
%defattr(755,root,root)
57+
%{_bindir}/pg_rman
58+
59+
# History of pg_rman.
60+
%changelog
61+
* Wed Nov 10 2010 - NTT OSS Center <tomonari.katsumata@oss.ntt.co.jp> 1.2.0-1
62+
* Wed Dec 9 2009 - NTT OSS Center <itagaki.takahiro@oss.ntt.co.jp> 1.1.1-1
63+
- Initial cut for 1.1.1
64+

0 commit comments

Comments
 (0)