[packages/php-symfony2-Icu] new, version 1.2.0

glen glen at pld-linux.org
Mon Sep 23 23:17:58 CEST 2013


commit 9c67ce6ccffb1eba3418c316f5cd8e3fe716cec7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 24 00:17:40 2013 +0300

    new, version 1.2.0

 php-symfony2-Icu.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/php-symfony2-Icu.spec b/php-symfony2-Icu.spec
new file mode 100644
index 0000000..976b7c0
--- /dev/null
+++ b/php-symfony2-Icu.spec
@@ -0,0 +1,60 @@
+%define		pearname	Icu
+%define		php_min_version 5.3.3
+%include	/usr/lib/rpm/macros.php
+Summary:	Symfony2 Icu Component
+Name:		php-symfony2-Icu
+Version:	1.2.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/PHP
+Source0:	https://github.com/symfony/Icu/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5:	c8f4620029e716602d3c0699a0ae2569
+URL:		https://github.com/symfony/Icu
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.610
+Requires:	libicu >= 4.4
+Requires:	php(core) >= %{php_min_version}
+Requires:	php-pear >= 4:1.3.10
+Requires:	php-symfony2-Intl >= 2.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Contains the data of the ICU library in a specific version. Use it
+through the API of the Intl component.
+
+%prep
+%setup -q -n %{pearname}-%{version}
+
+mv Resources/data/*.txt .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/Icu
+cp -a Icu*.php Resources $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/Icu
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md *.txt
+%dir %{php_pear_dir}/Symfony/Component/Icu
+%{php_pear_dir}/Symfony/Component/Icu/IcuCurrencyBundle.php
+%{php_pear_dir}/Symfony/Component/Icu/IcuData.php
+%{php_pear_dir}/Symfony/Component/Icu/IcuLanguageBundle.php
+%{php_pear_dir}/Symfony/Component/Icu/IcuLocaleBundle.php
+%{php_pear_dir}/Symfony/Component/Icu/IcuRegionBundle.php
+
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales
+%dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/region
+
+# TODO: lang tags
+%{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr/*.res
+%{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang/*.res
+%{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales/*.res
+%{php_pear_dir}/Symfony/Component/Icu/Resources/data/region/*.res
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-Icu.git/commitdiff/9c67ce6ccffb1eba3418c316f5cd8e3fe716cec7



More information about the pld-cvs-commit mailing list