-#7
+#
# Conditional build:
%bcond_without tests # disable testing
%bcond_without tcl # disable Tcl support
%{?with_python:--with-python} \
%{?with_selinux:--with-selinux} \
--with-system-tzdata=%{_datadir}/zoneinfo \
- --without-systemd \
%{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
--with-uuid=e2fs
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
- $RPM_BUILD_ROOT/var/{lib/pgsql,log,run/postgresql} \
+ $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log,run/postgresql} \
$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
$RPM_BUILD_ROOT%{_mandir}
%{pgsqldatadir}/man/man1/pg_rewind.1*
%{pgsqldatadir}/man/man1/pg_test_fsync.1*
%{pgsqldatadir}/man/man1/pg_test_timing.1*
-%{pgsqldatadir}/man/man1/pg_test_timing.1*
%{pgsqldatadir}/man/man1/pg_upgrade.1*
%{pgsqldatadir}/man/man1/pg_xlogdump.1*
%{pgsqldatadir}/man/man1/pgbench.1*
%dir %{pgsqldatadir}/man/man1
%dir %{pgsqldatadir}/man/man3
%dir %{pgsqldatadir}/man/man7
+%attr(700,postgres,postgres) %dir /var/lib/postgresql/%{pgsqlversion}
%files doc
%defattr(644,root,root,755)