]>
Commit | Line | Data |
---|---|---|
aa3e68ba PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Image | |
3 | %define _subclass Transform | |
20e18f73 | 4 | %define _status alpha |
aa3e68ba PG |
5 | %define _pearname %{_class}_%{_subclass} |
6 | Summary: %{_pearname} - standard interface to manipulate images using different libraries | |
ad110cad | 7 | Summary(pl.UTF-8): %{_pearname} - standardowy interfejs do manipulacji rysunkami przy użyciu różnych bibliotek |
aa3e68ba | 8 | Name: php-pear-%{_pearname} |
e9c9d2c2 | 9 | Version: 0.9.1 |
b556f22d | 10 | Release: 2 |
aa3e68ba PG |
11 | License: PHP 2.02 |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
e9c9d2c2 | 14 | # Source0-md5: 5ac09fb84c0b0ae2af5230b542bc34c4 |
3200712c | 15 | Patch0: %{name}-IM-patches.patch |
e745b77d | 16 | URL: http://pear.php.net/package/Image_Transform/ |
f6c20c99 | 17 | BuildRequires: php-pear-PEAR |
0e8cea62 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-12 |
0a1f0e4f | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
cb18256d | 20 | Requires: php-common >= 3:4.3.0 |
aa3e68ba PG |
21 | Requires: php-pear |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This package was written to provide a simpler and cross-library | |
27 | interface to doing image transformations and manipulations. | |
28 | ||
29 | It provides : | |
30 | - support for GD, ImageMagick, Imagick and NetPBM, | |
31 | - files related functions, | |
32 | - addText, | |
33 | - Scale (by length, percentage, maximum X/Y), | |
34 | - Resize, | |
35 | - Rotate (custom angle), | |
36 | - Add border (soon), | |
37 | - Add shadow (soon). | |
38 | ||
f090f2ea | 39 | In PEAR status of this package is: %{_status}. |
ba9a4690 | 40 | |
e4748533 JR |
41 | %description -l pl.UTF-8 |
42 | Pakiet został zrobiony, aby zapewnić prosty interfejs do różnych | |
43 | bibliotek pozwalający na transformacje i manipulacje rysunkami. | |
aa3e68ba PG |
44 | |
45 | Dostarcza: | |
46 | - wsparcie dla GD, ImageMagick, Imagick oraz NetPBM, | |
e4748533 | 47 | - funkcje związane z plikami, |
aa3e68ba | 48 | - addText, |
e4748533 JR |
49 | - skalowanie (do wielkości, procentowe, maksymalne X/Y), |
50 | - zmiana wielkości, | |
51 | - obroty (różne kąty), | |
52 | - dodanie brzegów (wkrótce), | |
53 | - dodanie cienia (wkrótce). | |
aa3e68ba | 54 | |
787cf9c5 | 55 | Ta klasa ma w PEAR status: %{_status}. |
ba9a4690 | 56 | |
aa3e68ba | 57 | %prep |
f8c7fe7d ER |
58 | %pear_package_setup |
59 | cd ./%{php_pear_dir}/%{_class}/%{_subclass} | |
3200712c | 60 | %patch0 -p2 |
aa3e68ba | 61 | |
cb18256d ER |
62 | # kill compat functions and up php version requirement to 4.3.0 |
63 | # besides, these files are not referenced from this package | |
64 | cd Driver | |
65 | rm -f image_type_to_mime_type.php IMAGETYPE.php | |
66 | ||
aa3e68ba PG |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
f8c7fe7d ER |
69 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
70 | %pear_package_install | |
aa3e68ba PG |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
f8c7fe7d ER |
77 | %doc install.log |
78 | %{php_pear_dir}/.registry/*.reg | |
aa3e68ba | 79 | %{php_pear_dir}/%{_class}/*.php |
4c7df128 | 80 | %{php_pear_dir}/%{_class}/%{_subclass} |