X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=php-pear-Text_CAPTCHA.spec;h=74b17a3d75cc17ec57b12aa01dd1d7aa5a517b59;hb=9d74a91c77bf34c7244fe847cf264d4299e518af;hp=acad4d58edc988a6e4c41ca5509adc18ebede95e;hpb=04b6d65e83293d77e16bb195491c2d2330394b05;p=packages%2Fphp-pear-Text_CAPTCHA.git diff --git a/php-pear-Text_CAPTCHA.spec b/php-pear-Text_CAPTCHA.spec index acad4d5..74b17a3 100644 --- a/php-pear-Text_CAPTCHA.spec +++ b/php-pear-Text_CAPTCHA.spec @@ -5,33 +5,37 @@ %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - generation of CAPTCHA imgaes -Summary(pl): %{_pearname} - generowanie obrazów CAPTCHA +Summary(pl.UTF-8): %{_pearname} - generowanie obrazów CAPTCHA Name: php-pear-%{_pearname} -Version: 0.1.6 +Version: 0.3.0 Release: 1 License: PHP 2.02 Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz -# Source0-md5: 9d4917c439dfe413988e667c0195b9dc +# Source0-md5: 51902a7ba321ce06fb9487af7ee26500 URL: http://pear.php.net/package/Text_CAPTCHA/ BuildRequires: php-pear-PEAR BuildRequires: rpm-php-pearprov >= 4.4.2-11 -Requires: php-gd +BuildRequires: rpmbuild(macros) >= 1.300 +Requires: php(gd) Requires: php-pear Requires: php-pear-Image_Text Requires: php-pear-Text_Password BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# exclude optional dependencies +%define _noautoreq 'pear(Numbers/Words.*)' 'pear(Text/Figlet.*)' 'pear(Image/Text.*)' + %description Implementation of CAPTCHA (completely automated public Turing test to tell computers and humans apart) images. In PEAR status of this package is: %{_status}. -%description -l pl -Implementacja obrazów CAPTCHA (ca³kowicie zautomatyzowanego -publicznego testu Turinga do odró¿nienia ludzi od komputerów). +%description -l pl.UTF-8 +Implementacja obrazów CAPTCHA (całkowicie zautomatyzowanego +publicznego testu Turinga do odróżnienia ludzi od komputerów). Ta klasa ma w PEAR status: %{_status}. @@ -46,9 +50,14 @@ install -d $RPM_BUILD_ROOT%{php_pear_dir} %clean rm -rf $RPM_BUILD_ROOT +%post +if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then + cat %{_docdir}/%{name}-%{version}/optional-packages.txt +fi + %files %defattr(644,root,root,755) -%doc install.log +%doc install.log optional-packages.txt %doc docs/%{_pearname}/* %{php_pear_dir}/.registry/*.reg %{php_pear_dir}/%{_class}/*.php