]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - system locale dir | |
3 | %define status stable | |
4 | %define pearname Horde_Image | |
5 | %include /usr/lib/rpm/macros.php | |
6 | Summary: %{pearname} - Horde Image API | |
7 | Name: php-horde-Horde_Image | |
8 | Version: 1.0.1 | |
9 | Release: 1 | |
10 | License: LGPL | |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
13 | # Source0-md5: d679e40a8dd666e8c49c4e2e49d3b8f8 | |
14 | URL: https://github.com/horde/horde/tree/master/framework/Image/ | |
15 | BuildRequires: php-channel(pear.horde.org) | |
16 | BuildRequires: php-packagexml2cl | |
17 | BuildRequires: php-pear-PEAR >= 1:1.7.0 | |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
19 | BuildRequires: rpmbuild(macros) >= 1.610 | |
20 | Requires: php-channel(pear.horde.org) | |
21 | Requires: php-horde-Horde_Exception < 2.0.0 | |
22 | Requires: php-horde-Horde_Support < 2.0.0 | |
23 | Requires: php-horde-Horde_Translation < 2.0.0 | |
24 | Requires: php-horde-Horde_Util < 2.0.0 | |
25 | Requires: php-pear >= 4:1.3.6-2 | |
26 | Suggests: php-gd | |
27 | Suggests: php-json | |
28 | Suggests: php-pear-XML_SVG | |
29 | Suggests: php-zlib | |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | # exclude optional dependencies | |
34 | %define _noautoreq pear(XML/SVG.*) | |
35 | ||
36 | %description | |
37 | This package provides an Image utility API, with backends for: | |
38 | - GD | |
39 | - GIF | |
40 | - PNG | |
41 | - SVG | |
42 | - SWF | |
43 | - ImageMagick convert command line tool | |
44 | - Imagick Extension | |
45 | ||
46 | In PEAR status of this package is: %{status}. | |
47 | ||
48 | %prep | |
49 | %pear_package_setup | |
50 | ||
51 | %build | |
52 | packagexml2cl package.xml > ChangeLog | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
57 | %pear_package_install | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc ChangeLog install.log | |
65 | %doc optional-packages.txt | |
66 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
67 | %{php_pear_dir}/Horde/Image.php | |
68 | %{php_pear_dir}/Horde/Image | |
69 | %{php_pear_dir}/data/Horde_Image |