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