%define modname magickwand %define dirname %{modname} %define soname %{modname}.so %define inifile A56_%{modname}.ini Summary: This module enables PHP access to the ImageMagick MagickWand API Name: php-%{modname} Version: 1.0.9 Release: %mkrel 5 Group: Development/PHP License: BSD-style URL: http://www.magickwand.org/ Source0: http://www.magickwand.org/download/php/MagickWandForPHP-%{version}.tar.gz BuildRequires: php-devel >= 3:5.2.0 BuildRequires: imagemagick-devel >= 6.3.5 BuildRequires: file BuildRequires: libxt-devel %description This module enables PHP access to the ImageMagick MagickWand API. %prep %setup -q -n MagickWandForPHP-%{version} # fix permissions find . -type f | xargs chmod 644 # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' # lib64 fixes perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4 %build %serverbuild phpize %configure2_5x --with-libdir=%{_lib} \ --with-%{modname}=shared,%{_prefix} %make mv modules/*.so . %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_libdir}/php/extensions install -d %{buildroot}%{_sysconfdir}/php.d install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/ cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF extension = %{soname} EOF %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} [ "../package.xml" != "/" ] && rm -f ../package.xml %files %defattr(-,root,root) %doc AUTHOR CREDITS ChangeLog LICENSE README TODO %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile} %attr(0755,root,root) %{_libdir}/php/extensions/%{soname} %changelog * Wed Jan 30 2013 oden <oden> 1.0.9-5.mga3 + Revision: 393306 - rebuilt for php-5.4.11 * Sun Jan 13 2013 umeabot <umeabot> 1.0.9-4.mga3 + Revision: 375821 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Dec 14 2012 fwang <fwang> 1.0.9-3.mga3 + Revision: 330761 - rebuild for new imagemagick * Mon Mar 19 2012 luigiwalser <luigiwalser> 1.0.9-2.mga3 + Revision: 223909 - httpd restart is handled by filetriggers now * Thu Dec 22 2011 spuhler <spuhler> 1.0.9-1.mga2 + Revision: 185609 - upgrade to 1.0.9 * Tue Sep 13 2011 fwang <fwang> 1.0.8-13.mga2 + Revision: 142833 - rebuild for new imagemagick * Sun Feb 06 2011 spuhler <spuhler> 1.0.8-12.mga1 + Revision: 48053 - removed buildroot definition from .spec - imported package php-magickwand