]>
Commit | Line | Data |
---|---|---|
dc97cf7b ER |
1 | # NOTE: |
2 | # [DEPRECATED] This repository only exists for BC compatibility with old | |
3 | # versions of Symfony. Recent versions comes with ICU data. | |
4 | ||
9c67ce6c ER |
5 | %define pearname Icu |
6 | %define php_min_version 5.3.3 | |
7 | %include /usr/lib/rpm/macros.php | |
8 | Summary: Symfony2 Icu Component | |
9 | Name: php-symfony2-Icu | |
8e17266a | 10 | Version: 1.2.2 |
9c67ce6c ER |
11 | Release: 1 |
12 | License: MIT | |
13 | Group: Development/Languages/PHP | |
8e17266a ER |
14 | Source0: https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz |
15 | # Source0-md5: 66893e27c0d49f8d829c7791b0a947e6 | |
9c67ce6c | 16 | URL: https://github.com/symfony/Icu |
8e17266a | 17 | BuildRequires: phpab |
9c67ce6c ER |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
19 | BuildRequires: rpmbuild(macros) >= 1.610 | |
20 | Requires: libicu >= 4.4 | |
21 | Requires: php(core) >= %{php_min_version} | |
86af750c | 22 | Requires: php(ctype) |
9c67ce6c ER |
23 | Requires: php-pear >= 4:1.3.10 |
24 | Requires: php-symfony2-Intl >= 2.3 | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Contains the data of the ICU library in a specific version. Use it | |
30 | through the API of the Intl component. | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{pearname}-%{version} | |
34 | ||
35 | mv Resources/data/*.txt . | |
36 | ||
8e17266a | 37 | %build |
9746439b | 38 | phpab -n -e '*/Tests/*' -o autoloader.php . |
8e17266a | 39 | |
9c67ce6c ER |
40 | %install |
41 | rm -rf $RPM_BUILD_ROOT | |
8e17266a ER |
42 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} |
43 | cp -a Icu*.php Resources $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} | |
9c67ce6c ER |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc LICENSE README.md *.txt | |
51 | %dir %{php_pear_dir}/Symfony/Component/Icu | |
52 | %{php_pear_dir}/Symfony/Component/Icu/IcuCurrencyBundle.php | |
53 | %{php_pear_dir}/Symfony/Component/Icu/IcuData.php | |
54 | %{php_pear_dir}/Symfony/Component/Icu/IcuLanguageBundle.php | |
55 | %{php_pear_dir}/Symfony/Component/Icu/IcuLocaleBundle.php | |
56 | %{php_pear_dir}/Symfony/Component/Icu/IcuRegionBundle.php | |
57 | ||
58 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources | |
59 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data | |
60 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr | |
61 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang | |
62 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales | |
63 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/region | |
64 | ||
65 | # TODO: lang tags | |
66 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr/*.res | |
67 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang/*.res | |
68 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales/*.res | |
69 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/region/*.res |