Name: phpMyAdmin License: GPL Group: Applications/Networking Version: 2.5.0 Release: 1 Source0: %{name}-%{version}-php.tar.bz2 Source1: %{name}-httpd.conf URL: http://www.phpmyadmin.net BuildRoot: %{_tmppath}/%{name}-root Packager: Milan Kerslager Summary: Adminstration of MySQL over the Web. BuildArch: noarch Requires: httpd php php-mysql perl BuildPreReq: perl %description phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the WWW. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields. %prep %setup -n %{name}-%{version} -q %build find . -type d -name CVS -exec rm -rf {} \; 2> /dev/null || : find . -type f -name .cvsignore -exec rm -f {} \; # fix the path perl -pi -e 's@/usr/local/bin/perl@/usr/bin/perl@' scripts/convertcfg.pl %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 ANNOUNCE.txt CREDITS ChangeLog Documentation.html Documentation.txt INSTALL LICENSE README TODO RELEASE-DATE-2.5.0; do rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/$i done %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc ANNOUNCE.txt CREDITS ChangeLog Documentation.html Documentation.txt %doc INSTALL LICENSE README TODO %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog * Tue May 13 2003 Milan Kerslager - initial release