1 %define _modname imagick
3 Summary: PHP wrapper to the Image Magick Library
4 Summary(pl): PHP-owy wrapper do biblioteki Image Magick
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: 596cfc70bc5b4082947eed4c4886215f
12 URL: http://pear.php.net/
13 BuildRequires: ImageMagick-devel
14 BuildRequires: php-devel
16 Obsoletes: php-imagick
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _sysconfdir /etc/php
20 %define extensionsdir %{_libdir}/php
23 ImageMagick is a robust collection of tools and libraries to read,
24 write, and manipulate an image in many image formats (over 68 major
25 formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD,
26 and GIF. With ImageMagick you can create images dynamically, making it
27 suitable for Web applications. You can also resize, rotate, sharpen,
28 color reduce, or add special effects to an image and save your
29 completed work in the same or differing image format.
31 This class has in PEAR status: %{_status}.
34 ImageMagick to du¿y zestaw narzêdzi i bibliotek do odczytu, zapisu i
35 modyfikowania obrazków w wielu formatach (ponad 68 g³ównych), w tym
36 popularnych, takich jak TIFF, JPEG, PNG, PDF, PhotoCD i GIF. Za pomoc±
37 ImageMagick mo¿na dynamicznie tworzyæ obrazki, co jest przydatne w
38 aplikacjach WWW. Mo¿na je tak¿e przeskalowywaæ, obracaæ, wyostrzaæ,
39 zmniejszaæ ilo¶æ kolorów - w tym samym lub innym formacie.
41 Ta klasa ma w PEAR status: %{_status}.
47 cd %{_modname}-%{version}
50 --with-%{_modname}=/usr/X11R6/include/X11/
53 CPPFLAGS="-DHAVE_CONFIG_H -I/usr/X11R6/include/X11/" \
54 CFLAGS_CLEAN="%{rpmcflags}"
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{extensionsdir}
60 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
63 rm -rf $RPM_BUILD_ROOT
66 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php.ini
69 if [ "$1" = "0" ]; then
70 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php.ini
74 %defattr(644,root,root,755)
75 %doc %{_modname}-%{version}/examples/{*.php,*.jpg,*.gif}
76 %attr(755,root,root) %{extensionsdir}/%{_modname}.so