1 %include /usr/lib/rpm/macros.php
3 %define _subclass Transform
5 %define _pearname %{_class}_%{_subclass}
6 Summary: %{_pearname} - standard interface to manipulate images using different libraries
7 Summary(pl.UTF-8): %{_pearname} - standardowy interfejs do manipulacji rysunkami przy użyciu różnych bibliotek
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 5ac09fb84c0b0ae2af5230b542bc34c4
15 Patch0: %{name}-IM-patches.patch
16 URL: http://pear.php.net/package/Image_Transform/
17 BuildRequires: php-pear-PEAR
18 BuildRequires: rpm-php-pearprov >= 4.4.2-12
19 BuildRequires: rpmbuild(macros) >= 1.300
20 Requires: php-common >= 3:4.3.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This package was written to provide a simpler and cross-library
27 interface to doing image transformations and manipulations.
30 - support for GD, ImageMagick, Imagick and NetPBM,
31 - files related functions,
33 - Scale (by length, percentage, maximum X/Y),
35 - Rotate (custom angle),
39 In PEAR status of this package is: %{_status}.
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.
46 - wsparcie dla GD, ImageMagick, Imagick oraz NetPBM,
47 - funkcje związane z plikami,
49 - skalowanie (do wielkości, procentowe, maksymalne X/Y),
51 - obroty (różne kąty),
52 - dodanie brzegów (wkrótce),
53 - dodanie cienia (wkrótce).
55 Ta klasa ma w PEAR status: %{_status}.
59 cd ./%{php_pear_dir}/%{_class}/%{_subclass}
62 # kill compat functions and up php version requirement to 4.3.0
63 # besides, these files are not referenced from this package
65 rm -f image_type_to_mime_type.php IMAGETYPE.php
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{php_pear_dir}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %{php_pear_dir}/.registry/*.reg
79 %{php_pear_dir}/%{_class}/*.php
80 %{php_pear_dir}/%{_class}/%{_subclass}