Changes of Revision 2
[-] | Added | php4-imagick.spec |
x 1
2 +# norootforbuild 3 +%define php_version %(php-config --version 2>/dev/null) 4 + 5 +Name: php4-imagick 6 +Version: 2.2.2 7 +Release: 0 8 +# 9 +License: PHP 10 +Group: Productivity/Networking/Web/Servers 11 +# 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 13 +BuildRequires: php4-devel >= 4.4.8 ImageMagick-devel >= 6.2.4 14 +Requires: php4 = %{php_version} 15 +# 16 +URL: http://pecl.php.net/package/imagick/ 17 +Source: http://pecl.php.net/package/imagick/imagick-%{version}.tgz 18 +Summary: Provides a wrapper to the ImageMagick/GraphicsMagick library. 19 +Patch0: imagick-fixes-%{version}.patch 20 + 21 +%description 22 + 23 +Provides a wrapper to the ImageMagick/GraphicsMagick library. 24 + 25 +Authors: 26 +--------- 27 + Christian Stocker <chregu@php.net> 28 + Michael C. Montero <mmontero@mail.communityconnect.com> 29 + Scott MacVicar <scottmac@php.net> 30 + 31 +%prep 32 + 33 +%setup -n imagick-%{version} 34 +%patch0 35 + 36 +%{__mkdir} %{name} 37 + 38 +%build 39 + 40 +/usr/bin/phpize 41 + 42 +pushd %{name} 43 + 44 +CFLAGS="%{optflags} -fno-strict-aliasing" 45 +CXXFLAGS="%{optflags} -fno-strict-aliasing" 46 +%if 0%{?suse_version} > 1000 47 +CFLAGS="$CFLAGS -fstack-protector" 48 +CXXFLAGS="$CXXFLAGS -fstack-protector" 49 +%endif 50 + 51 +export CFLAGS 52 +export CXXFLAGS 53 + 54 +../configure --with-imagick=%{_usr} --with-libdir=%{_lib} 55 + 56 +%{__make} %{?jobs:-j%jobs} 57 + 58 +popd 59 + 60 +%install 61 +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 62 +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d 63 + 64 +echo "; comment out next line to disable imagick extension in php" > %{buildroot}%{_sysconfdir}/php.d/imagick.ini 65 +echo 'extension = imagick.so' >> %{buildroot}%{_sysconfdir}/php.d/imagick.ini 66 + 67 + 68 +%clean 69 + 70 +%{__rm} -rf %{buildroot} 71 + 72 +%files 73 +%defattr(-,root,root,-) 74 +%{_libdir}/php/modules/imagick.so 75 +%config(noreplace) %{_sysconfdir}/php.d/imagick.ini 76 + 77 +%doc CREDITS INSTALL 78 + 79 +%changelog -n php4-imagick 80 +* Sat Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 2.2.2-1 81 +- build for php4 82 +* Sat Feb 07 2009 Carsten Schoene <cs@linux-administrator.com> 83 +- version bump to 2.2.2 84 +* Mon Oct 27 2008 Carsten Schoene <cs@linux-administrator.com> 85 +- version bump to 2.2.1 86 +* Sun Jul 13 2008 Carsten Schoene <cs@linux-administrator.com> 87 +- version bump to 2.2.0 88 +* Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com> 89 +- version bump to 2.1.1 90 +* Fri Jul 01 2006 - soporte@onfocus.cl 91 +- very first build 92 |
||
[+] | Deleted | php5-imagick.spec ^ |
@@ -1,88 +0,0 @@ -# norootforbuild -%define php_version %(php-config --version 2>/dev/null) - -Name: php5-imagick -Version: 2.2.2 -Release: 0 -# -License: PHP -Group: Productivity/Networking/Web/Servers -# -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: php5-devel >= 5.1.3 ImageMagick-devel >= 6.2.4 -Requires: php5 = %{php_version} -# -URL: http://pecl.php.net/package/imagick/ -Source: http://pecl.php.net/package/imagick/imagick-%{version}.tgz -Summary: Provides a wrapper to the ImageMagick/GraphicsMagick library. -Patch0: imagick-fixes-%{version}.patch - -%description - -Provides a wrapper to the ImageMagick/GraphicsMagick library. - -Authors: ---------- - Christian Stocker <chregu@php.net> - Michael C. Montero <mmontero@mail.communityconnect.com> - Scott MacVicar <scottmac@php.net> - -%prep - -%setup -n imagick-%{version} -%patch0 - -%{__mkdir} %{name} - -%build - -/usr/bin/phpize - -pushd %{name} - -CFLAGS="%{optflags} -fno-strict-aliasing" -CXXFLAGS="%{optflags} -fno-strict-aliasing" -%if 0%{?suse_version} > 1000 -CFLAGS="$CFLAGS -fstack-protector" -CXXFLAGS="$CXXFLAGS -fstack-protector" -%endif - -export CFLAGS -export CXXFLAGS - -../configure --with-imagick=%{_usr} --with-libdir=%{_lib} - -%{__make} %{?jobs:-j%jobs} - -popd - -%install -%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} -%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d - -echo "; comment out next line to disable imagick extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/imagick.ini -echo 'extension = imagick.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/imagick.ini - - -%clean - -%{__rm} -rf %{buildroot} - -%files -%defattr(-,root,root,-) -%{_libdir}/php5/extensions/imagick.so -%config(noreplace) %{_sysconfdir}/php5/conf.d/imagick.ini - -%doc CREDITS INSTALL - -%changelog -n php5-imagick -* Sat Feb 07 2009 Carsten Schoene <cs@linux-administrator.com> -- version bump to 2.2.2 -* Mon Oct 27 2008 Carsten Schoene <cs@linux-administrator.com> -- version bump to 2.2.1 -* Sun Jul 13 2008 Carsten Schoene <cs@linux-administrator.com> -- version bump to 2.2.0 -* Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com> -- version bump to 2.1.1 -* Fri Jul 01 2006 - soporte@onfocus.cl -- very first build |