2 %define pearname Locale
3 %define php_min_version 5.3.3
4 %include /usr/lib/rpm/macros.php
5 Summary: %{pearname} - Symfony2 Locale Component
6 Name: php-symfony2-Locale
10 Group: Development/Languages/PHP
11 Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz
12 # Source0-md5: 33c740ad31510ce6187b6f11ea8a4e87
13 URL: http://pear.symfony.com/package/Locale/
14 BuildRequires: php-channel(pear.symfony.com)
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.610
18 Requires: php(core) >= %{php_min_version}
19 Requires: php-channel(pear.symfony.com)
20 Requires: php-pear >= 4:1.3.10
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Symfony2 Locale Component
27 In PEAR status of this package is: %{status}.
32 # no packaging of tests
33 rm -r .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests
34 rm .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist
37 mv .%{php_pear_dir}/Symfony/Component/%{pearname}/CHANGELOG.md .
38 rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitattributes
39 rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitignore
40 mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{php_pear_dir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc CHANGELOG.md LICENSE README.md install.log
53 %{php_pear_dir}/.registry/.channel.*/*.reg
54 %dir %{php_pear_dir}/Symfony/Component/Locale
55 %{php_pear_dir}/Symfony/Component/Locale/*.php
56 %{php_pear_dir}/Symfony/Component/Locale/Stub
57 %{php_pear_dir}/Symfony/Component/Locale/Exception
58 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources
59 %{php_pear_dir}/Symfony/Component/Locale/Resources/stubs
60 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data
61 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49
62 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/lang
63 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/locales
64 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/names
65 %dir %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/region
68 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/lang/*.res
69 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/locales/*.res
70 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/names/*.res
71 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/region/*.res
72 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/stub
73 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/49/svn-info.txt
74 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/UPDATE.txt
75 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/build-data.php
76 %{php_pear_dir}/Symfony/Component/Locale/Resources/data/icu.ini