Blob Blame History Raw
Summary:	PostgreSQL Config Tuner
Name:		pgtune
Version:	0.9.3
Release:	4%{?dist}
License:	BSD
Group:		Applications/Databases
URL:		http://pgfoundry.org/projects/pgtune
Source0:	http://pgfoundry.org/frs/download.php/2449/%{name}-%{version}.tar.gz
Source1:    pgtune.8.asciidoc
Patch0:		pgtune-settingsdir.patch
Requires:	postgresql-server
BuildRequires: asciidoc
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
Buildarch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%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
cp %{SOURCE1} .

%build
a2x -d manpage -f manpage pgtune.8.asciidoc

%install
rm -rf $RPM_BUILD_ROOT
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}

install -m 755 pgtune %{buildroot}%{_bindir}
install -m 644 -p pg_settings* %{buildroot}%{_datadir}/%{name}

mkdir -p %{buildroot}/%{_mandir}/man8
install -m 644 pgtune.8 %{buildroot}/%{_mandir}/man8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc TODO COPYRIGHT
%doc %{_mandir}/man8/pgtune.8*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%attr(755,root,root) %{_bindir}/pgtune

%changelog
* Tue Mar  6 2012 Miroslav Suchy <msuchy@redhat.com> 0.9.3-4
- 797930 - change email of Gunduz in changelog
- add BR docbook-style-xsl

* Mon Feb 27 2012 Miroslav Suchy <msuchy@redhat.com> 0.9.3-2
- package for Fedora
- add man page

* Wed Oct 28 2009 Devrim Gunduz <devrim@gunduz.com> 0.9.1-1
- Initial packaging for PostgreSQL RPM Repository

* Wed Oct 28 2009 Greg Smith <gsmith@gregsmith.com> 0.9.2-1
- Added copyright file, doesn't install sample postgresql.conf file.