%define serverdir %(apxs -q htdocsdir 2>/dev/null) # To create a customized installation: # autospec -u pg2mysql -a5 \ # -d "installdir=%serverdir/../www.example.com, \ # sitename=example, \ # adminmail=webmaster@example.com" %if "%{?installdir}" == "" %define installdir %{serverdir}/pg2mysql %endif %if "%{?sitename}" != "" %if "%{?servername}" == "" %define servername %(basename %installdir 2>/dev/null) %endif %define serverlogdir %(apxs -q logfiledir 2>/dev/null) %else %if "%{?aliasdir}" == "" %define aliasdir /pg2mysql %endif %endif Name: %{?sitename:%sitename-website-}pg2mysql Version: 1.9 Release: 2mamba Summary: A PHP interface do convert dumps from PostgreSQL to MySQL Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.lightbox.ca/pg2mysql Source: http://www.lightbox.ca/pg2mysql/pg2mysql-%{version}.tar.bz2 Patch0: pg2mysql-1.9-php-5.5.patch License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A PHP interface do convert dumps from PostgreSQL to MySQL. %prep %setup -q %patch0 -p1 %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{installdir} cp -a * %{buildroot}%{installdir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{installdir} %{installdir}/* %changelog * Tue Jul 08 2014 Silvan Calarco 1.9-2mamba - added patch tested against php 5.5 * Tue Jul 08 2014 Silvan Calarco 1.9-1mamba - package created using the webbuild interface