]>
Commit | Line | Data |
---|---|---|
cd91de18 | 1 | Summary: MagickWand ImageMagick API for PHP |
eb98eae3 | 2 | Summary(pl.UTF-8): API ImageMagick MagickWand dla PHP |
cd91de18 PG |
3 | Name: MagickWandForPHP |
4 | Version: 1.0.5 | |
989c392f | 5 | Release: 1 |
02590036 | 6 | License: ImageMagick (Apache-like) |
cd91de18 PG |
7 | Group: Libraries |
8 | Source0: http://www.magickwand.org/download/php/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b52a5b7cf4db7078fa3db4cb6e55ecf4 | |
44fc618c | 10 | Source1: %{name}.ini |
989c392f | 11 | URL: http://www.magickwand.org/ |
44fc618c | 12 | BuildRequires: ImageMagick-devel >= 6.3.5.9 |
cd91de18 PG |
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 | |
cd91de18 PG |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %define _webapps /etc/webapps | |
21 | %define _webapp %{_name} | |
22 | %define _sysconfdir %{_webapps}/%{_webapp} | |
23 | %define _appdir %{_datadir}/%{_webapp} | |
24 | ||
25 | %description | |
eb98eae3 JB |
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. | |
30 | ||
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 | |
36 | właściwości wand. | |
cd91de18 PG |
37 | |
38 | %prep | |
39 | %setup -q | |
40 | ||
41 | %build | |
42 | phpize | |
43 | %configure \ | |
44 | --with-php-config=%{_bindir}/php-config | |
45 | ||
46 | %{__make} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
989c392f | 50 | install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d} |
cd91de18 | 51 | |
989c392f PG |
52 | install modules/magickwand.so $RPM_BUILD_ROOT%{php_extensiondir} |
53 | install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_name}.ini | |
cd91de18 PG |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %post | |
59 | %php_webserver_restart | |
60 | ||
61 | %postun | |
62 | if [ "$1" = 0 ]; then | |
63 | %php_webserver_restart | |
64 | fi | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
989c392f PG |
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 |