1 Summary: phpPgAdmin - web-based PostgreSQL administration
2 Summary(pl): phpPgAdmin - administracja bazami PostgreSQL przez WWW
7 Group: Applications/Databases/Interfaces
8 Source0: http://dl.sourceforge.net/phppgadmin/%{name}-%{version}.tar.bz2
9 # Source0-md5: 0a7ef2d4675e8800b3e02807cf1e3ac5
11 URL: http://sourceforge.net/projects/phppgadmin/
12 Requires: php >= 4.0.6
14 Requires: php-pgsql >= 4.0.6
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pgadmindir %{_datadir}/%{name}
22 phpPgAdmin is a fully functional web-based administration utility for
23 a PostgreSQL database server. It handles all the basic functionality
24 as well as some advanced features such as triggers, views and
25 functions (stored procs)
28 phpPgAdmin jest w pelni funkcjonalnym bazowanym na WWW narzedziem
29 administracyjnym dla serwera baz danych PostgreSQL. Posiada wszystkie
30 podstawowe mozliwosc, jak i czesc bardziej zaawansowanych jak
31 przelaczniki, widoki i funkcje(zapisane procedury)
34 %setup -q -n phpPgAdmin
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_pgadmindir}/{classes/{HTML_TreeMenu/images,database},conf,images/themes/default,lang/recoded,libraries/adodb/{datadict,drivers},sql,themes/default},/etc/{%{name},httpd}}
40 install *.php *.js $RPM_BUILD_ROOT%{_pgadmindir}
41 install classes/*.php $RPM_BUILD_ROOT%{_pgadmindir}/classes
42 install classes/HTML_TreeMenu/TreeMenu.* $RPM_BUILD_ROOT%{_pgadmindir}/classes/HTML_TreeMenu
43 install classes/HTML_TreeMenu/images/* $RPM_BUILD_ROOT%{_pgadmindir}/classes/HTML_TreeMenu/images
44 install classes/database/*.php $RPM_BUILD_ROOT%{_pgadmindir}/classes/database
45 install images/themes/default/*.gif $RPM_BUILD_ROOT%{_pgadmindir}/images/themes/default
46 install lang/*.php $RPM_BUILD_ROOT%{_pgadmindir}/lang
47 install lang/recoded/*.php $RPM_BUILD_ROOT%{_pgadmindir}/lang/recoded
48 install libraries/*.php $RPM_BUILD_ROOT%{_pgadmindir}/libraries
49 #install libraries/adodb/*.php $RPM_BUILD_ROOT%{_pgadmindir}/libraries/adodb
50 #install libraries/adodb/datadict/*.php $RPM_BUILD_ROOT%{_pgadmindir}/libraries/adodb/datadict
51 #install libraries/adodb/drivers/*.php $RPM_BUILD_ROOT%{_pgadmindir}/libraries/adodb/drivers
52 install sql/*.sql $RPM_BUILD_ROOT%{_pgadmindir}/sql
53 install themes/default/*.css $RPM_BUILD_ROOT%{_pgadmindir}/themes/default
55 install conf/*.php $RPM_BUILD_ROOT/etc/%{name}
56 ln -s /etc/%{name} $RPM_BUILD_ROOT%{_pgadmindir}/conf
58 install %SOURCE1 $RPM_BUILD_ROOT/etc/httpd/%{name}.conf
61 rm -rf $RPM_BUILD_ROOT
64 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*phpPgAdmin.conf" /etc/httpd/httpd.conf; then
65 echo "Include /etc/httpd/phpPgAdmin.conf" >> /etc/httpd/httpd.conf
67 if [ -f /var/lock/subsys/httpd ]; then
68 /usr/sbin/apachectl restart 1>&2
72 if [ "$1" = "0" ]; then
74 grep -v "^Include.*phpPgAdmin.conf" /etc/httpd/httpd.conf > \
75 /etc/httpd/httpd.conf.tmp
76 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
77 if [ -f /var/lock/subsys/httpd ]; then
78 /usr/sbin/apachectl restart 1>&2
83 %defattr(644,root,root,755)
84 %doc BUGS CREDITS DEVELOPERS FAQ HISTORY INSTALL TODO TRANSLATORS
86 %attr(640,root,http) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/*
87 %config(noreplace) %verify(not size mtime md5) /etc/httpd/%{name}.conf