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 --- LICENSE | 26 ++++++++++++++++++++++++++ php-pear-Text-CAPTCHA.spec | 11 ++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9cfbc8b --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) Christian Wenz + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. +* Neither the name of the nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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