38 |
Source11: postgresql.service |
Source11: postgresql.service |
39 |
Source13: postgresql.distro.releasenote |
Source13: postgresql.distro.releasenote |
40 |
Source14: postgresql_initdb.sh |
Source14: postgresql_initdb.sh |
41 |
|
Source15: postgresql.tmpfiles.d |
42 |
|
Patch6: postgresql-var-run-socket.patch |
43 |
|
|
44 |
Requires: perl |
Requires: perl |
45 |
Provides: postgresql-clients = %{version}-%{release} |
Provides: postgresql-clients = %{version}-%{release} |
277 |
|
|
278 |
%prep |
%prep |
279 |
%setup -q -n %{bname}-%{version} |
%setup -q -n %{bname}-%{version} |
280 |
|
%apply_patches |
281 |
|
|
282 |
%build |
%build |
283 |
|
|
335 |
mkdir -p %{buildroot}%{_unitdir} |
mkdir -p %{buildroot}%{_unitdir} |
336 |
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{bname}.service |
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{bname}.service |
337 |
|
|
338 |
|
# Create the directory for sockets. |
339 |
|
install -d -m 755 %{buildroot}/var/run/postgresql |
340 |
|
|
341 |
|
# ... and make a tmpfiles script to recreate it at reboot. |
342 |
|
mkdir -p %{buildroot}%{_tmpfilesdir} |
343 |
|
install -m 0644 %{SOURCE15} %{buildroot}%{_tmpfilesdir}/postgresql.conf |
344 |
|
|
345 |
# install helper script for env initialisation |
# install helper script for env initialisation |
346 |
mkdir -p %{buildroot}%{_libexecdir} |
mkdir -p %{buildroot}%{_libexecdir} |
347 |
install -m 755 %{SOURCE14} %{buildroot}%{_libexecdir}/ |
install -m 755 %{SOURCE14} %{buildroot}%{_libexecdir}/ |
572 |
%{_mandir}/man1/pg_upgrade.1* |
%{_mandir}/man1/pg_upgrade.1* |
573 |
%dir %{_libdir}/postgresql |
%dir %{_libdir}/postgresql |
574 |
%dir %{_datadir}/postgresql |
%dir %{_datadir}/postgresql |
575 |
|
%{_tmpfilesdir}/postgresql.conf |
576 |
|
%attr(755,postgres,postgres) %dir /var/run/postgresql |
577 |
%config(noreplace) /var/lib/pgsql/.bashrc |
%config(noreplace) /var/lib/pgsql/.bashrc |
578 |
%attr(-,postgres,postgres) /var/lib/pgsql/.profile |
%attr(-,postgres,postgres) /var/lib/pgsql/.profile |
579 |
%attr(700,postgres,postgres) %dir %{pgdata} |
%attr(700,postgres,postgres) %dir %{pgdata} |