]> git.pld-linux.org Git - packages/php-symfony2-Locale.git/blob - php-symfony2-Locale.spec
up to 2.3.4; deprecated as of 2.3
[packages/php-symfony2-Locale.git] / php-symfony2-Locale.spec
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
6 Version:        2.3.4
7 Release:        1
8 License:        MIT
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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
28
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
31 instead.
32
33 %prep
34 %pear_package_setup
35
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 .
39
40 # fixups
41 mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}
46 %pear_package_install
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
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
This page took 0.080595 seconds and 3 git commands to generate.