diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-01-16 14:42:17 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-01-16 14:42:17 +0100 |
commit | 4446c9f01066d3aaa64878c14e1d3806a54726c1 (patch) | |
tree | 3bfe11d9812ba62eb8378a5698885b0cd324ddbc /php-pear-Text-CAPTCHA.spec | |
parent | 372ecd48c85338ddfcba308f6e995bc88d9a10b0 (diff) |
php-pear-Text-CAPTCHA: add LICENSE and fix rpmlint
Diffstat (limited to 'php-pear-Text-CAPTCHA.spec')
-rw-r--r-- | php-pear-Text-CAPTCHA.spec | 11 |
1 files changed, 10 insertions, 1 deletions
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 |