1 %define pearname Locale
2 %define php_min_version 5.3.3
3 %include /usr/lib/rpm/macros.php
4 Summary: Symfony2 Locale Component
5 Name: php-symfony2-Locale
9 Group: Development/Languages/PHP
10 Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz
11 # Source0-md5: adb78ff97232f68c2e1e7097fbd0b146
12 URL: http://symfony.com/doc/2.2/components/locale.html
13 BuildRequires: php-channel(pear.symfony.com)
14 BuildRequires: php-pear-PEAR
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.610
17 Requires: php(core) >= %{php_min_version}
18 Requires: php-channel(pear.symfony.com)
19 Requires: php-pear >= 4:1.3.10
20 Requires: php-symfony2-Intl >= 2.3
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Locale component provides fallback code to handle cases when the intl
26 extension is missing. Additionally it extends the implementation of a
27 native Locale class with several handy methods.
29 The Locale component is deprecated since version 2.3 and will be
30 removed in Symfony 3.0. You should use the more capable Intl component
36 # no packaging of tests
37 mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests .
38 mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist .
41 mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc CHANGELOG.md LICENSE README.md install.log
54 %{php_pear_dir}/.registry/.channel.*/*.reg
55 %dir %{php_pear_dir}/Symfony/Component/Locale
56 %{php_pear_dir}/Symfony/Component/Locale/*.php
57 %{php_pear_dir}/Symfony/Component/Locale/Stub
58 %{php_pear_dir}/Symfony/Component/Locale/Exception