-
Notifications
You must be signed in to change notification settings - Fork 97
/
pgtune.spec
47 lines (38 loc) · 1.23 KB
/
pgtune.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
Summary: PostgreSQL Config Tuner
Name: pgtune
Version: 0.9.2
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
URL: http://pgfoundry.org/projects/pgtune
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://pgfoundry.org/frs/download.php/2445/%{name}-%{version}.tar.gz
Patch0: pgtune-settingsdir.patch
Requires: postgresql-server
Buildarch: noarch
%description
pgtune takes the wimpy default postgresql.conf and expands the database server
to be as powerful as the hardware it's being deployed on.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p0
%build
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
install -m 755 pgtune %{buildroot}%{_bindir}
install -m 644 -p pg_settings* %{buildroot}%{_datadir}/%{name}
%clean
rm -rf %{buildroot}
%files
%defattr(0644,root,root,0755)
%doc TODO COPYRIGHT
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%attr(755,root,root) %{_bindir}/pgtune
%changelog
* Wed Oct 28 2009 Devrim Gunduz <[email protected]> 0.9.1-1
- Initial packaging for PostgreSQL RPM Repository
* Wed Oct 28 2009 Greg Smith <[email protected]> 0.9.2-1
- Added copyright file, doesn't install sample postgresql.conf file.