]>
Commit | Line | Data |
---|---|---|
4573fc82 ER |
1 | %define pearname Intl |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
4 | Summary: Symfony2 Intl Component | |
5 | Name: php-symfony2-Intl | |
d896cacc | 6 | Version: 2.4.8 |
4573fc82 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
d896cacc ER |
10 | Source0: https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz |
11 | # Source0-md5: cee0e1e9ace6b9651c6d940ab6988a03 | |
eab577f6 | 12 | URL: http://symfony.com/doc/2.4/components/intl.html |
d896cacc | 13 | BuildRequires: phpab |
4573fc82 ER |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
15 | BuildRequires: rpmbuild(macros) >= 1.674 | |
16 | Requires: php(core) >= %{php_min_version} | |
eab577f6 ER |
17 | Requires: php(date) |
18 | Requires: php(pcre) | |
19 | Requires: php(simplexml) | |
20 | Requires: php(spl) | |
4573fc82 | 21 | Requires: php-pear >= 4:1.3.10 |
d1f7fd63 | 22 | Requires: php-symfony2-Icu >= 1.0 |
4573fc82 ER |
23 | Suggests: php(intl) |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | A PHP replacement layer for the C intl extension that also provides | |
29 | access to the localization data of the ICU library. | |
30 | ||
31 | The replacement layer is limited to the locale "en". If you want to | |
32 | use other locales, you should install the intl extension instead. | |
33 | ||
34 | %prep | |
d896cacc | 35 | %setup -q -n %{pearname}-%{version} |
4573fc82 | 36 | |
d896cacc | 37 | %build |
9b51ab84 | 38 | phpab -n -e '*/Tests/*' -o autoloader.php . |
4573fc82 ER |
39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
d896cacc ER |
42 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} |
43 | cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} | |
44 | rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Tests | |
45 | # dev tools for Intl package maintainer | |
46 | rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Resources/bin | |
4573fc82 ER |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
d896cacc | 53 | %doc LICENSE README.md CONTRIBUTING.md |
4573fc82 ER |
54 | %dir %{php_pear_dir}/Symfony/Component/Intl |
55 | %{php_pear_dir}/Symfony/Component/Intl/*.php | |
56 | %{php_pear_dir}/Symfony/Component/Intl/Collator | |
57 | %{php_pear_dir}/Symfony/Component/Intl/DateFormatter | |
58 | %{php_pear_dir}/Symfony/Component/Intl/Exception | |
59 | %{php_pear_dir}/Symfony/Component/Intl/Globals | |
60 | %{php_pear_dir}/Symfony/Component/Intl/Locale | |
61 | %{php_pear_dir}/Symfony/Component/Intl/NumberFormatter | |
62 | %{php_pear_dir}/Symfony/Component/Intl/ResourceBundle | |
63 | %{php_pear_dir}/Symfony/Component/Intl/Util | |
64 | ||
65 | %dir %{php_pear_dir}/Symfony/Component/Intl/Resources | |
66 | %{php_pear_dir}/Symfony/Component/Intl/Resources/stubs |