# disable debuginfo package %define debug_package %{nil} Name: phpPgAdmin License: GPL Group: Applications/Networking Version: 3.0 # We need 3.0 final to be higher than 3.0 beta so moving beta to release # number. Release: 1.beta1 Source0: http://dl.sourceforge.net/sourceforge/phppgadmin/%{name}-%{version}-beta-1.tar.bz2 Source1: %{name}-httpd.conf URL: http://phppgadmin.sourceforge.net BuildRoot: %{_tmppath}/%{name}-root Packager: Milan Kerslager Summary: Adminstration of PostgreSQL over the Web. BuildArch: noarch Requires: httpd php php-pgsql # we have nothing to auto-req-provides in this PHP code AutoReq: no %description phpPgAdmin is a web based administration tool for PostgreSQL. You can use it to create and maintain multiple databases and even multiple servers. %prep %setup -q -n %{name} %build find . -type f -name .cvsignore -exec rm -vf {} \; %install [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d install -m 644 %{S:1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/%{name}.conf cp -a . $RPM_BUILD_ROOT%{_datadir}/%{name} for i in DEVELOPERS BUGS CREDITS HISTORY FAQ TRANSLATORS LICENSE TODO INSTALL; do rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/$i done { mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} cd $RPM_BUILD_ROOT/%{_datadir}/%{name}/conf mv config.inc.php* $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} ln -s ../../../..%{_sysconfdir}/%{name}/config.inc.php ln -s ../../../..%{_sysconfdir}/%{name}/config.inc.php-dist } %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc DEVELOPERS BUGS CREDITS HISTORY FAQ TRANSLATORS LICENSE TODO INSTALL %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}/config.inc.php %config %{_sysconfdir}/%{name}/config.inc.php-dist %{_datadir}/%{name} %changelog * Tue May 22 2003 Milan Kerslager - initial release