1 Summary: MagickWand ImageMagick API for PHP
2 Summary(pl.UTF-8): API ImageMagick MagickWand dla PHP
6 License: ImageMagick (Apache-like)
8 Source0: http://www.magickwand.org/download/php/%{name}-%{version}.tar.bz2
9 # Source0-md5: b52a5b7cf4db7078fa3db4cb6e55ecf4
11 URL: http://www.magickwand.org/
12 BuildRequires: ImageMagick-devel >= 6.3.5.9
13 BuildRequires: php-devel >= 3:5.0.0
14 BuildRequires: rpmbuild(macros) >= 1.344
15 %requires_eq php-common
16 %{?requires_php_extension}
17 Requires: php-common >= 4:5.0.4
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _webapps /etc/webapps
21 %define _webapp %{_name}
22 %define _sysconfdir %{_webapps}/%{_webapp}
23 %define _appdir %{_datadir}/%{_webapp}
26 The MagickWand API is the recommended interface between the C
27 programming language and the ImageMagick image processing libraries.
28 Unlike the MagickCore C API, MagickWand uses only a few opaque types.
29 Accessors are available to set or get important wand properties.
31 %description -l pl.UTF-8
32 API MagickWand jest zalecanym interfejsem między językiem C a
33 bibliotekami przetwarzania obrazu ImageMagick. W przeciwieństwie do
34 API C MagickCore, MagickWand używa tylko kilku nieprzejrzystych typów.
35 Dostępne są funkcje dostępowe do ustawiania i pobierania istotnych
44 --with-php-config=%{_bindir}/php-config
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
52 install modules/magickwand.so $RPM_BUILD_ROOT%{php_extensiondir}
53 install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_name}.ini
56 rm -rf $RPM_BUILD_ROOT
59 %php_webserver_restart
63 %php_webserver_restart
67 %defattr(644,root,root,755)
68 %doc AUTHOR CREDITS ChangeLog LICENSE README TODO run-tests.php
69 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_name}.ini
70 %attr(755,root,root) %{php_extensiondir}/magickwand.so