From 4446c9f01066d3aaa64878c14e1d3806a54726c1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Jan 2013 14:42:17 +0100 Subject: php-pear-Text-CAPTCHA: add LICENSE and fix rpmlint --- php-pear-Text-CAPTCHA.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'php-pear-Text-CAPTCHA.spec') diff --git a/php-pear-Text-CAPTCHA.spec b/php-pear-Text-CAPTCHA.spec index c732210..b478521 100644 --- a/php-pear-Text-CAPTCHA.spec +++ b/php-pear-Text-CAPTCHA.spec @@ -11,6 +11,8 @@ Group: Development/Libraries License: BSD URL: http://pear.php.net/package/Text_CAPTCHA Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz +# https://pear.php.net/bugs/19790 +Source1: LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -36,8 +38,14 @@ computers and humans apart) %prep %setup -q -c +cp %{SOURCE1} LICENSE + cd %{pear_name}-%{version} -mv ../package.xml %{name}.xml +# 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 %build @@ -75,6 +83,7 @@ fi %files %defattr(-,root,root,-) +%doc LICENSE %doc %{pear_docdir}/%{pear_name} %{pear_xmldir}/%{name}.xml %{pear_phpdir}/Text/CAPTCHA -- cgit