]>
Commit | Line | Data |
---|---|---|
1 | Summary: MagickWand ImageMagick API for PHP | |
2 | Summary(pl.UTF-8): API ImageMagick MagickWand dla PHP | |
3 | Name: MagickWandForPHP | |
4 | Version: 1.0.5 | |
5 | Release: 1 | |
6 | License: see LICENSE file | |
7 | Group: Libraries | |
8 | Source0: http://www.magickwand.org/download/php/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b52a5b7cf4db7078fa3db4cb6e55ecf4 | |
10 | Source1: %{name}.ini | |
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) | |
19 | ||
20 | %define _webapps /etc/webapps | |
21 | %define _webapp %{_name} | |
22 | %define _sysconfdir %{_webapps}/%{_webapp} | |
23 | %define _appdir %{_datadir}/%{_webapp} | |
24 | ||
25 | %description | |
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. | |
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 | |
50 | install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d} | |
51 | ||
52 | install modules/magickwand.so $RPM_BUILD_ROOT%{php_extensiondir} | |
53 | install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_name}.ini | |
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) | |
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 |