From db4dc937d96c557e6e1d3a7ef13252d0f3117252 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Aug 2013 15:07:02 +0200 Subject: php-pear-Text-CAPTCHA: 0.5.0 --- php-pear-Text-CAPTCHA.spec | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'php-pear-Text-CAPTCHA.spec') diff --git a/php-pear-Text-CAPTCHA.spec b/php-pear-Text-CAPTCHA.spec index 3efe976..f3e847e 100644 --- a/php-pear-Text-CAPTCHA.spec +++ b/php-pear-Text-CAPTCHA.spec @@ -1,15 +1,27 @@ +# spec file for php-pear-Text-CAPTCHA +# +# Copyright (c) 2013 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %global pear_name Text_CAPTCHA Name: php-pear-Text-CAPTCHA -Version: 0.4.6 +Version: 0.5.0 Release: 1%{?dist} Summary: Generation of CAPTCHAs Group: Development/Libraries License: BSD URL: http://pear.php.net/package/Text_CAPTCHA -Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz +# remove tests which use non-free stuff (fonts) +# pear download Text_CAPTCHA-%{version} +# ./strip.sh %{version} +Source0: %{pear_name}-%{version}-strip.tgz +Source1: strip.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -19,11 +31,11 @@ Requires(post): %{__pear} Requires(postun): %{__pear} Requires: php-gd Requires: php-pear(PEAR) -Requires: php-pear(Text_Password) +Requires: php-pear(Text_Password) >= 1.1.1 # Optional Requires: php-pear(Numbers_Words) Requires: php-pear(Text_Figlet) -Requires: php-pear(Image_Text) +Requires: php-pear(Image_Text) >= 0.7.0 Provides: php-pear(%{pear_name}) = %{version} @@ -36,11 +48,7 @@ computers and humans apart) %setup -q -c cd %{pear_name}-%{version} -# fix wrong-file-end-of-line-encoding -sed -e 's/\r//' -i examples/CAPTCHA_Word_test.php -# remove checksum for altered file -sed -e '/CAPTCHA_Word_test.php/s/md5sum.*name/name/' \ - ../package.xml >%{name}.xml +mv ../package.xml %{name}.xml %build @@ -85,6 +93,10 @@ fi %changelog +* Wed Aug 07 2013 Remi Collet - 0.5.0-1 +- Update to 0.5.0 +- strip sources from non-free stuff (fonts) + * Mon Mar 18 2013 Remi Collet - 0.4.6-1 - Version 0.4.6 (alpha) - API 0.4.0 (alpha) -- cgit