packages: php-idna_convert/php-idna_convert.spec (NEW) - new
glen
glen at pld-linux.org
Tue Mar 30 08:58:23 CEST 2010
Author: glen Date: Tue Mar 30 06:58:23 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/php-idna_convert:
php-idna_convert.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-idna_convert/php-idna_convert.spec
diff -u /dev/null packages/php-idna_convert/php-idna_convert.spec:1.1
--- /dev/null Tue Mar 30 08:58:23 2010
+++ packages/php-idna_convert/php-idna_convert.spec Tue Mar 30 08:58:18 2010
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%include /usr/lib/rpm/macros.php
+%define php_min_version 5.0.0
+%define pkgname idna_convert
+%define ver %(echo %{version} | tr -d .)
+Summary: PHP class to encode/decode IDN
+Name: php-%{pkgname}
+Version: 0.6.3
+Release: 1
+License: LGPL v2.1
+Group: Development/Languages/PHP
+Source0: http://phlymail.com/download/Goodies/idna_convert_%{ver}.zip
+# Source0-md5: 142bf88fb10a3a7a64238dd4b0226def
+URL: http://www.charset.org/punycode.php
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.461
+Requires: php-common >= 4:%{php_min_version}
+Requires: php-mbstring
+Requires: php-pcre
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The class idna_convert allows to convert internationalized domain
+names (see RFC 3490, 3491, 3492 and 3454 for detials) as they can be
+used with various registries worldwide to be translated between their
+original (localized) form and their encoded form as it will be used in
+the DNS (Domain Name System).
+
+%prep
+%setup -qc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}
+cp -a idna_convert.class.php $RPM_BUILD_ROOT%{php_data_dir}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ReadMe.txt
+%{php_data_dir}/idna_convert.class.php
+%{_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 2010/03/30 06:58:18 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list