forked from inteos/pgsql-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inteos-pgsql.spec
81 lines (65 loc) · 2.29 KB
/
inteos-pgsql.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Bacula RPM spec file
#
# Copyright (C) 2011-2012 Inteos Sp. z o.o.
# Platform Build Configuration
# TODO: merge all plugins into one spec file
# basic defines for every build
%define _release 2
%define _version %(grep PLUGIN_VERSION pgsql-fd.c|grep define|awk '{print $3}'|sed 's/"//g')
%define _beeversion %(/opt/bacula/bin/bconsole help 2>&1|grep Version:|awk '{print $2}')
%define _rhelversion el%(awk '{print $3}' /etc/redhat-release|cut -f1 -d'.')
%define _packager Radoslaw Korzeniewski <[email protected]>
%define manpage_ext gz
# Don't strip binaries
%define __os_install_post %{nil}
%define __debug_install_post %{nil}
%define debug_package %{nil}
%define base_package_name bacula-enterprise
Summary: Bacula - The Network Backup Solution
Name: bacula-inteos-pgsql-plugin
Version: %{_version}_%{_beeversion}.%{_rhelversion}
Release: %{_release}
Group: System Environment/Daemons
License: AGPLv3
BuildRoot: %{_tmppath}/%{name}-root
URL: http://www.inteos.pl/
Vendor: Inteos Sp. z o.o.
Packager: %{_packager}
Prefix: %{_prefix}
Distribution: Bacula Inteos Postgresql Plugin
Source0: pgsql-%{_version}_%{_beeversion}.tar.bz2
Requires: %{base_package_name}-client = %{_beeversion}
# define the basic package description
%define blurb Bacula Inteos Plugin - The Leading Open Source Backup Solution.
%define blurb2 Bacula Inteos Plugin allows you to backup and restore
%define blurb3 a PostgreSQL Database with hot/online mode
Summary: Bacula PostgreSQL Plugin - The Network Backup Solution
Group: System Environment/Daemons
%description
%{blurb}
%{blurb2}
%{blurb3}
This is Bacula Inteos PostgreSQL plugin.
%prep
cd $RPM_BUILD_DIR
rm -rf %{name}-%{_version}_%{_beeversion}
mkdir -p %{name}-%{_version}_%{_beeversion}
cd %{name}-%{_version}_%{_beeversion}
tar xjvf $RPM_SOURCE_DIR/pgsql-%{_version}_%{_beeversion}.tar.bz2
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
cd $RPM_BUILD_ROOT
mv $RPM_BUILD_DIR/%{name}-%{_version}_%{_beeversion}/opt $RPM_BUILD_ROOT
export QA_RPATHS=$[ 0x0001|0x0010|0x0002 ]
%files
%config(noreplace) /opt/bacula/etc/pgsql.conf.example
%defattr(755,root,-)
/opt/bacula/bin/pgsql-archlog
/opt/bacula/bin/pgsql-restore
/opt/bacula/plugins/pgsql-fd.so
%changelog
* Fri Apr 24 2013 Radoslaw Korzeniewski <[email protected]>
- Update to version 1.9
- Build for PgSQL 9.x
- add RPM Package