]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blobdiff - php-pear-Image_Text.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Image_Text.git] / php-pear-Image_Text.spec
index 48addb9158de038b15cd8b290427693fefce1cd0..19fd115684d7d4161dccf95bef13993adc958b5c 100644 (file)
@@ -1,21 +1,22 @@
-%include       /usr/lib/rpm/macros.php
-%define                _status         beta
-%define                _pearname       Image_Text
-Summary:       %{_pearname} - comfortable processing of texts in images
-Summary(pl.UTF-8):     %{_pearname} - komfortowe przetwarzanie tekstu w obrazkach
-Name:          php-pear-%{_pearname}
-Version:       0.6.0
+%define                status          beta
+%define                pearname        Image_Text
+%define                php_min_version 5.0.0
+Summary:       %{pearname} - comfortable processing of texts in images
+Summary(pl.UTF-8):     %{pearname} - komfortowe przetwarzanie tekstu w obrazkach
+Name:          php-pear-%{pearname}
+Version:       0.7.0
 Release:       1
 License:       PHP 2.02
 Group:         Development/Languages/PHP
-Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: c62ba5d96331a6ee9fc6b4babea574b9
+Source0:       http://pear.php.net/get/%{pearname}-%{version}.tgz
+# Source0-md5: 034c356787c73dd1a88567bf01bb7923
 Patch0:                fontpath.patch
 URL:           http://pear.php.net/package/Image_Text/
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.300
-Requires:      php-gd
+BuildRequires: rpmbuild(macros) >= 1.580
+Requires:      php(core) >= %{php_min_version}
+Requires:      php(gd)
 Requires:      php-pear
 Obsoletes:     php-pear-Image_Text-tests
 BuildArch:     noarch
@@ -30,7 +31,7 @@ comfortable. It allows you to process multiline text and manipulate:
   text in respect to font size and line splitting to fit a given text
   box.
 
-In PEAR status of this package is: %{_status}.
+In PEAR status of this package is: %{status}.
 
 %description -l pl.UTF-8
 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
@@ -42,18 +43,14 @@ przetwarzanie tekstów wielolinijkowych i manipulowanie:
   tekstu w zależności od rozmiaru czcionki i dzielenie go na linie, aby
   zmieścił się w podanym polu tekstowym.
 
-Ta klasa ma w PEAR status: %{_status}.
+Ta klasa ma w PEAR status: %{status}.
 
 %prep
 %pear_package_setup
 %patch0 -p1
 
-mv docs/%{_pearname}/example examples
-
-# tests -> tests/%{_pearname}
-install -d ./%{php_pear_dir}/tests/.tmp
-mv ./%{php_pear_dir}/tests/{*,.tmp}
-mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
+mv docs/%{pearname}/* .
+mv .%{php_pear_dir}/tests/Image_Text/tests .
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -68,7 +65,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README
 %doc install.log
 %{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/Image/*.php
+%{php_pear_dir}/Image/Text.php
+%{php_pear_dir}/Image/Text
 %{_examplesdir}/%{name}-%{version}
This page took 0.029087 seconds and 4 git commands to generate.