From 1ba048e5633178bff7caede6d9262a7fde1a8b7b Mon Sep 17 00:00:00 2001 From: zw_yan <106359229+zwyan0@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:33:17 +0900 Subject: [PATCH] Add SPEC file for REL_16_STABLE (#261) * Add SPEC file for REL_16_STABLE --- SPECS/pg_rman16.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 SPECS/pg_rman16.spec diff --git a/SPECS/pg_rman16.spec b/SPECS/pg_rman16.spec new file mode 100644 index 0000000..0e06f5d --- /dev/null +++ b/SPECS/pg_rman16.spec @@ -0,0 +1,80 @@ +# SPEC file for pg_rman +# Copyright(C) 2009-2023 NIPPON TELEGRAPH AND TELEPHONE CORPORATION + +%define _pgdir /usr/pgsql-16 +%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.3.16 +Release: 1%{?dist} +License: BSD +Group: Applications/Databases +Source0: %{name}-%{version}-pg16.tar.gz +URL: https://github.com/ossc-db/pg_rman +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) +Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION + +## We use postgresql-devel package +BuildRequires: postgresql16-devel, zlib-devel +Requires: postgresql16-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}-pg16 + +## 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 +* Thu Dec 4 2023 - NTT OSS Center 1.3.16-1 +* Thu Dec 15 2022 - NTT OSS Center 1.3.15-1 +* Mon Dec 13 2021 - NTT OSS Center 1.3.14-1 +* Mon Aug 23 2021 - NTT OSS Center 1.3.13-1 +* Wed Jun 2 2021 - NTT OSS Center 1.3.12-1 +* Tue Jan 19 2021 - NTT OSS Center 1.3.11-1 +* Fri Dec 25 2020 - NTT OSS Center 1.3.10-1 +* Tue Oct 29 2019 - NTT OSS Center 1.3.9-1 +* Tue Jan 22 2019 - NTT OSS Center 1.3.8-1 +* Thu Sep 27 2018 - NTT OSS Center 1.3.7-1 +* Mon Jan 29 2018 - NTT OSS Center 1.3.6-1 +* Fri Jul 14 2017 - NTT OSS Center 1.3.5-1 +* Fri Apr 21 2017 - NTT OSS Center 1.3.4-1 +* Fri Oct 7 2016 - NTT OSS Center 1.3.3-1 +* Mon Jan 25 2016 - NTT OSS Center 1.3.2-1 +* Mon Aug 31 2015 - NTT OSS Center 1.3.1-1 +* Thu Jul 30 2015 - NTT OSS Center 1.3.0-1 +* Wed Jan 7 2015 - NTT OSS Center 1.2.11-1 +* Tue Jan 6 2015 - NTT OSS Center 1.2.10-2 +- Initial cut for 1.2.10 \ No newline at end of file