-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SPEC file for pg_rman | ||
# Copyright(C) 2009-2015 NIPPON TELEGRAPH AND TELEPHONE CORPORATION | ||
|
||
%define _pgdir /usr/pgsql-9.4 | ||
%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.10 | ||
Release: 1%{?dist} | ||
License: BSD | ||
Group: Applications/Databases | ||
Source0: %{name}-%{version}.tar.gz | ||
URL: http://sourceforge.net/projects/pg-rman/ | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) | ||
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION | ||
|
||
## We use postgresql-devel package | ||
BuildRequires: postgresql94-devel, zlib-devel | ||
Requires: postgresql94-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 | ||
PATH=%{_bindir}:$PATH USE_PGXS=1 make %{?_smp_mflags} | ||
|
||
## Set variables for install | ||
%install | ||
rm -rf %{buildroot} | ||
|
||
PATH=%{_bindir}:$PATH USE_PGXS=1 DESTDIR=%{buildroot} 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 | ||
* Tue Jan 6 2015 - NTT OSS Center <[email protected]> 1.2.10-2 | ||
- Initial cut for 1.2.10 |