%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \
- $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir},%{_includedir}/pgsql} \
+ $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/pgsql,%{_mandir},%{_includedir}/pgsql} \
$RPM_BUILD_ROOT/var/state/pgsql
( cd src
# Move all templates/examples beneath %{_libdir}/pgsql
( cd $RPM_BUILD_ROOT%{_libdir}
- install -d pgsql
- mv *source *sample pgsql
+ mv *description *source *sample pgsql
)
# Move odbc.ini file to etc
%{_mandir}/man1/ipcclean.1*
%{_mandir}/man5/*.5*
-%attr(755,postgres,postgres) %dir /var/state/pgsql
+%attr(750,postgres,postgres) %dir /var/state/pgsql
%files libs
%defattr(644,root,root,755)
# nie wiem do czego to
%attr(755,root,root) %{_libdir}/plpgsql.so
-%{_libdir}/*.description
%attr(755,root,root) %{_bindir}/pg_id
#%defattr(644,postgres,postgres,755)