Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
php5
:
5.2.17-Extensions
>
php-pecl-imagick
> php-pecl-imagick.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-pecl-imagick.spec of Package php-pecl-imagick
%{!?phpname: %{expand: %%global phpname php}} %if %{phpname} == php %global phpbindir %{_bindir} %global phpconfdir %{_sysconfdir} %global phpincldir %{_includedir} %else %global phpbindir %{_bindir}/%{phpname} %global phpconfdir %{_sysconfdir}/%{phpname} %global phpincldir %{_includedir}/%{phpname} %endif %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}} %global php_apiver %((echo %{default_apiver}; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) %global pecl_name imagick Summary: Extension to create and modify images using ImageMagick Name: %{phpname}-pecl-imagick Version: 3.0.1 Release: 2%{?dist} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/imagick Source: http://pecl.php.net/get/imagick-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: php-devel, php-pear BuildRequires: ImageMagick-devel %if 0%{?pecl_install:1} Requires(post): %{__pecl} %endif %if 0%{?pecl_uninstall:1} Requires(postun): %{__pecl} %endif Provides: %{phpname}-pecl(%{pecl_name}) = %{version} Conflicts: %{phpname}-pecl-gmagick %if %{?php_zend_api}0 Requires: %{phpname}(zend-abi) = %{php_zend_api} Requires: %{phpname}(api) = %{php_core_api} %else Requires: %{phpname}-api = %{php_apiver} %endif %if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 %{?filter_setup: %filter_provides_in %{php_extdir}/.*\.so$ %filter_setup } %endif %description Imagick is a native php extension to create and modify images using the ImageMagick API. %prep echo TARGET is %{name}-%{version}-%{release} %setup -q -c cd %{pecl_name}-%{version} %build cd %{pecl_name}-%{version} %{phpbindir}/phpize %configure --with-imagick=%{prefix} --with-php-config=%{phpbindir}/php-config %{__make} %{?_smp_mflags} %install pushd %{pecl_name}-%{version} %{__rm} -rf %{buildroot} %{__make} install INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration %{__mkdir_p} %{buildroot}%{phpconfdir}/php.d %{__cat} > %{buildroot}%{phpconfdir}/php.d/%{pecl_name}.ini << 'EOF' ; Enable %{pecl_name} extension module extension = %{pecl_name}.so ; Options not documented ;imagick.locale_fix=0 ;imagick.progress_monitor=0 EOF popd # Install XML package description mkdir -p %{buildroot}%{pecl_xmldir} install -pm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %if 0%{?pecl_install:1} %post %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : %endif %if 0%{?pecl_uninstall:1} %postun if [ $1 -eq 0 ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi %endif %check # simple module load test pushd %{pecl_name}-%{version} %{phpbindir}/php --no-php-ini \ --define extension_dir=modules \ --define extension=%{pecl_name}.so \ --modules | grep %{pecl_name} %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc %{pecl_name}-%{version}/{CREDITS,ChangeLog,examples} %config(noreplace) %{phpconfdir}/php.d/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so %{pecl_xmldir}/%{name}.xml %exclude %{phpincldir}/php/ext/%{pecl_name} %changelog * Sun Dec 27 2010 Remi Collet <rpms@famillecollet.com> 3.0.1-2 - relocate using phpname macro * Fri Nov 26 2010 Remi Collet <rpms@famillecollet.com> 3.0.1-1.1 - rebuild against latest ImageMagick 6.6.5.10 * Thu Nov 25 2010 Remi Collet <rpms@famillecollet.com> 3.0.1-1 - update to 3.0.1 * Mon Jul 26 2010 Remi Collet <rpms@famillecollet.com> 3.0.0-1 - update to 3.0.0 * Wed Aug 26 2009 Remi Collet <rpms@famillecollet.com> 2.3.0-2 - build against ImageMagick2 6.5.x * Mon Aug 24 2009 Remi Collet <rpms@famillecollet.com> 2.3.0-1 - update to 2.3.0 * Wed Jun 30 2009 Remi Collet <rpms@famillecollet.com> 2.2.2-3.###.remi - rebuild for PHP 5.3.0 (API = 20090626) * Thu Apr 25 2009 Remi Collet <rpms@famillecollet.com> 2.2.2-2.fc11.remi - F11 rebuild for PHP 5.3.0RC1 * Wed Feb 25 2009 Remi Collet <rpms@famillecollet.com> 2.2.2-1.fc10.remi - update to 2.2.2 for php 5.3.0beta1 * Thu Jan 29 2009 Remi Collet <rpms@famillecollet.com> 2.2.1-1.fc10.remi.2 - rebuild for php 5.3.0beta1 * Sat Dec 13 2008 Remi Collet <rpms@famillecollet.com> 2.2.1-1.fc#.remi.1 - rebuild with php 5.3.0-dev - add imagick-2.2.1-php53.patch * Sat Dec 13 2008 Remi Collet <rpms@famillecollet.com> 2.2.1-1 - update to 2.2.1 * Sat Jul 19 2008 Remi Collet <rpms@famillecollet.com> 2.2.0-1.fc9.remi.1 - rebuild with php 5.3.0-dev * Sat Jul 19 2008 Remi Collet <rpms@famillecollet.com> 2.2.0-1 - update to 2.2.0 * Thu Apr 24 2008 Remi Collet <rpms@famillecollet.com> 2.1.1-1 - Initial package