%define name apc-gui %define version 1.0.3 %define release 2mdk %define webadminroot /var/www/html/admin Summary: View the Alternative PHP cache (APC) over the web. Name: %{name} Version: %{version} Release: %{release} Source0: apc_gui-%{version}.tar.bz2 License: GPL Url: http://apc.neuropeans.com/ Group: System/Servers BuildRoot: %{_tmppath}/%{name}-buildroot Requires: webserver php-common mod_php php-apc php-gd BuildArch: noarch Prefix: %{webadminroot} %description APC GUI is an add on for Alternative PHP Cache (APC) to provide a comprehensive, easy to use and of course good looking web-based GUI. APC GUI not only gives access to statistical parameters of APC, it also makes it easier to administer web-servers running apc by providing comfortable features for restarting the cache and deleting scripts from the cache. %prep %setup -q -n apc_gui-%{version} %build # clean up CVS stuff for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do if [ -e "$i" ]; then rm -r $i; fi >&/dev/null done # fix dir perms find . -type d | xargs chmod 755 # fix file perms find . -type f | xargs chmod 644 %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} mkdir -p %{buildroot}%{webadminroot}/%{name} cp -aRf * %{buildroot}%{webadminroot}/%{name}/ %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES CREDITS INSTALL %config(noreplace) %attr(0644,apache,apache) %{webadminroot}/%{name}/config.php %{webadminroot}/%{name}/* %changelog * Sat Sep 21 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.0.3-2mdk - better description as pointed out by David Walser * Sat Sep 21 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.0.3-1mdk - initial cooker contrib - install in common and relocatable %%{webadminroot}/ directory