]>
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 | |
6 | Version: 1.2.0 | |
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 | |
11 | # Source0-md5: c8f4620029e716602d3c0699a0ae2569 | |
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} | |
17 | Requires: php-pear >= 4:1.3.10 | |
18 | Requires: php-symfony2-Intl >= 2.3 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Contains the data of the ICU library in a specific version. Use it | |
24 | through the API of the Intl component. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{pearname}-%{version} | |
28 | ||
29 | mv Resources/data/*.txt . | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/Icu | |
34 | cp -a Icu*.php Resources $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/Icu | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc LICENSE README.md *.txt | |
42 | %dir %{php_pear_dir}/Symfony/Component/Icu | |
43 | %{php_pear_dir}/Symfony/Component/Icu/IcuCurrencyBundle.php | |
44 | %{php_pear_dir}/Symfony/Component/Icu/IcuData.php | |
45 | %{php_pear_dir}/Symfony/Component/Icu/IcuLanguageBundle.php | |
46 | %{php_pear_dir}/Symfony/Component/Icu/IcuLocaleBundle.php | |
47 | %{php_pear_dir}/Symfony/Component/Icu/IcuRegionBundle.php | |
48 | ||
49 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources | |
50 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data | |
51 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr | |
52 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang | |
53 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales | |
54 | %dir %{php_pear_dir}/Symfony/Component/Icu/Resources/data/region | |
55 | ||
56 | # TODO: lang tags | |
57 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/curr/*.res | |
58 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/lang/*.res | |
59 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/locales/*.res | |
60 | %{php_pear_dir}/Symfony/Component/Icu/Resources/data/region/*.res |