summaryrefslogtreecommitdiff
path: root/pgpool.spec
blob: 1fd53111f5709c7082358c199e2a06c50fc9d714 (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
%define short_name	pgpool

Summary:	Pgpool is a connection pooling/replication server for PostgreSQL
Name:		postgresql-%{short_name}
Version:	3.4.1
Release:	1%{?dist}
License:	BSD
Group:		Applications/Databases
URL:		http://pgpool.projects.PostgreSQL.org
Source0:	http://pgfoundry.org/frs/download.php/1446/%{short_name}-%{version}.tar.gz
Source1:	%{short_name}.init
Source2:	%{short_name}.sysconfig
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	initscripts, pam-devel

%description
pgpool is a connection pooling/replication server for PostgreSQL.
pgpool runs between PostgreSQL's clients(front ends) and servers
(backends). A PostgreSQL client can connect to pgpool as if it 
were a standard PostgreSQL server.

%prep
%setup -q -n %{short_name}-%{version}

%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS

%configure --with-pam

make %{?smp_flags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -m 755 %{short_name} %{buildroot}%{_bindir}
install -m 644 %{short_name}.8 %{buildroot}%{_mandir}/man8/
install -d %{buildroot}/%{_docdir}/%{name}-%{version}
mv %{buildroot}%{_sysconfdir}/pgpool.conf.sample %{buildroot}/%{_docdir}/%{name}-%{version}
mv %{buildroot}%{_sysconfdir}/pool_hba.conf.sample %{buildroot}/%{_docdir}/%{name}-%{version}
install -d %{buildroot}%{_initrddir}
install -m 755 redhat/%{SOURCE1} %{buildroot}%{_initrddir}/%{short_name}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 755 redhat/%{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{short_name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README README.euc_jp TODO COPYING INSTALL AUTHORS ChangeLog NEWS pgpool.conf.sample pool_hba.conf.sample
%{_datadir}/pgpool/pgpool.pam
%{_bindir}/pgpool
%{_initrddir}/pgpool
%config(noreplace) %{_sysconfdir}/sysconfig/pgpool
%{_mandir}/man8/*

%changelog
* Tue Oct 16 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.4.1-1
- Update to 3.4.1

* Sun Aug 5 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.4-2
- Added an init script for pgpool
- Added /etc/sysconfig/pgpool

* Wed Aug 1 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.4-1
- Update to 3.4
- Removed patches, they are now in upstream

* Sat Jun 2 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.3-2
- Spec file version bump up for 3.3

* Mon May 21 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.3-1
- Update to 3.3
- Added temporary patches from upstream, will be removed in next
release.

* Mon Feb 12 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.2-1
- Update to 3.2

* Tue Jan 16 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.2-2
- Removed vendor tag, per rh bugzilla #222797

* Tue Dec 12 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.2-1
- Update to 3.1.2-1

* Tue Dec 5 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-7
- Better fix for conf file problem, per bugzilla review

* Fri Nov 28 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-6
- Truncate configure line

* Fri Nov 24 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-5
- moved sample conf file to %%doc
- Renamed package to postgresql-pgpool

* Fri Sep 8 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-4
- Fix changelog date
- Remove dependency for postgresql-server. 

* Mon Jul 31 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-3
- Removed --bindir from configure, per bugzilla review (#199679)

* Fri Jul 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-2
- Fixed spec file, per bugzilla review (#199679)

* Fri Jul 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.1-1
- Update to 3.1.1

* Fri Jul 22 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.0-2
- Fixed spec file, per bugzilla review (#199679)

* Fri Jul 21 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.1.0-1
- Update to 3.1.0-1
- Fixed rpmlint errors

* Thu May 25 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.0.2
- Update to 3.0.2

* Thu Feb 05 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 3.0.0
- Update to 3.0.0 for PgPool Global Development Group

* Thu Feb 02 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.7.2-1
- Update to 2.7.2

* Thu Jan 26 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.7.1-1
- Update to 2.7.1

* Sun Jan 15 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.7-1
- Update to 2.7

* Wed Dec 28 2005 Devrim Gunduz <devrim@commandprompt.com> pgpool-2.6.5
- Update to 2.6.5
- Removed post scripts
- Updated doc files

* Sat Oct 22 2005 Devrim Gunduz <devrim@PostgreSQL.org> pgpool-2.6.4
- Update to 2.6.4