packages: php-securimage/paths.patch (NEW), php-securimage/php-securimage.s...
glen
glen at pld-linux.org
Wed Jul 29 18:39:59 CEST 2009
Author: glen Date: Wed Jul 29 16:39:59 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/php-securimage:
paths.patch (NONE -> 1.1) (NEW), php-securimage.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-securimage/paths.patch
diff -u /dev/null packages/php-securimage/paths.patch:1.1
--- /dev/null Wed Jul 29 18:39:59 2009
+++ packages/php-securimage/paths.patch Wed Jul 29 18:39:54 2009
@@ -0,0 +1,20 @@
+--- securimage/securimage.php~ 2009-07-29 19:32:14.718682001 +0300
++++ securimage/securimage.php 2009-07-29 19:35:26.683748254 +0300
+@@ -149,7 +149,7 @@
+ *
+ * @var mixed
+ */
+- var $gd_font_file = 'gdfonts/bubblebath.gdf';
++ var $gd_font_file = '/usr/share/php-securimage/gdfonts/bubblebath.gdf';
+
+ /**
+ * The approximate size of the font in pixels.<br />
+@@ -167,7 +167,7 @@
+ *
+ * @var string
+ */
+- var $ttf_file = "./elephant.ttf";
++ var $ttf_file = "/usr/share/php-securimage/elephant.ttf";
+
+ /**
+ * The font size.<br />
================================================================
Index: packages/php-securimage/php-securimage.spec
diff -u /dev/null packages/php-securimage/php-securimage.spec:1.1
--- /dev/null Wed Jul 29 18:40:00 2009
+++ packages/php-securimage/php-securimage.spec Wed Jul 29 18:39:54 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+Summary: PHP CAPTCHA script for generating complex images and CAPTCHA codes
+Name: php-securimage
+Version: 1.0.3.1
+Release: 1
+License: LGPL v2.1+
+Group: Libraries
+Source0: http://www.phpcaptcha.org/latest.tar.gz
+# Source0-md5: 69752053a8ec622c78ebb1303cd83450
+URL: http://www.phpcaptcha.org/
+Patch0: paths.patch
+BuildRequires: rpmbuild(macros) >= 1.461
+BuildRequires: sed >= 4.0
+Requires: php-common >= 3:4.3.0
+Requires: php-gd
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_datadir}/%{name}
+
+%description
+Securimage is a PHP class that is used to generate and validate
+CAPTCHA images. The classes uses an existing PHP session or creates
+its own if none is found to store the CAPTCHA code. Variables within
+the class are used to control the style and display of the image. The
+class supports TTF fonts and effects for strengthening the security of
+the image. If TTF support is not available, GD fonts can be used as
+well, but certain options such as transparent text and angled letters
+cannot be used.
+
+%prep
+%setup -q -n securimage
+%patch0 -p1
+
+# undos the source
+%{__sed} -i -e 's,\r$,,' *.php
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -a securimage.php $RPM_BUILD_ROOT%{php_data_dir}
+cp -a gdfonts $RPM_BUILD_ROOT%{_appdir}
+cp -a *.ttf $RPM_BUILD_ROOT%{_appdir}
+
+# samples
+cp -a securimage_play.php securimage_show.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example_form.php securimage_example.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a images $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%doc example_form.php securimage_example.php
+%{php_data_dir}/securimage.php
+%{_appdir}
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/07/29 16:39:54 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list