%define name stikked %define version 0.5.4 %define release %mkrel 2 %define _stikked_install %_datadir/%name Summary: Open-Source PHP Pastebin Name: %{name} Version: %{version} Release: %{release} Source0: http://%name.googlecode.com/files/%name-%version.zip License: GPLv3 Group: Monitoring Url: http://code.google.com/p/stikked/ BuildRequires: apache Requires: php >= 4.1 Requires: apache Requires: apache-mod_php Requires: php-zip Requires: php-mbstring Suggests: php-pear-MDB2_Driver_sqlite BuildArch: noarch %description Stikked is an Open-Source PHP Pastebin, with the aim of keeping a simple and easy to use user interface as well as providing an example application for the CodeIgniter framework which stikked is based upon. (Stikked also uses the jQuery Javascript Library.) %files %attr(-,apache,apache) %_stikked_install %config(noreplace) %_sysconfdir/httpd/conf/webapps.d/%{name}.conf #-------------------------------------------------------------------- %prep %setup -q -n %name-%version %install mkdir -p %buildroot/%_stikked_install ( mkdir temp pushd temp unzip %{SOURCE0} mv %name-%version/* %buildroot%_stikked_install popd ) mkdir -p %buildroot%_sysconfdir/httpd/conf/webapps.d cat > %buildroot%_sysconfdir/httpd/conf/webapps.d/%{name}.conf <<EOF # %{name} configuration Alias /%name %_stikked_install <Directory %_stikked_install> Order allow,deny Allow from all </Directory> EOF %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.5.4-2.mga3 + Revision: 383473 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Apr 03 2012 dmorgan <dmorgan> 0.5.4-1.mga2 + Revision: 228160 - imported package stikked