]>
Commit | Line | Data |
---|---|---|
c18b5924 ER |
1 | %define package Translation |
2 | %define php_min_version 5.3.9 | |
8379e376 | 3 | Summary: Symfony2 Translation Component |
a6bc4cb1 | 4 | Name: php-symfony2-Translation |
8f4fda4a | 5 | Version: 2.8.52 |
94977b1c | 6 | Release: 1 |
a6bc4cb1 ER |
7 | License: MIT |
8 | Group: Development/Languages/PHP | |
c18b5924 | 9 | Source0: https://github.com/symfony/%{package}/archive/v%{version}/%{package}-%{version}.tar.gz |
8f4fda4a | 10 | # Source0-md5: a14255fef69313a738cfdbd28415e499 |
c18b5924 | 11 | URL: http://symfony.com/doc/2.7/book/translation.html |
fb631541 | 12 | BuildRequires: phpab |
a6bc4cb1 ER |
13 | BuildRequires: rpmbuild(macros) >= 1.610 |
14 | Requires: php(core) >= %{php_min_version} | |
23ec39b7 ER |
15 | Requires: php(json) |
16 | Requires: php(mbstring) | |
17 | Requires: php(pcre) | |
18 | Requires: php(simplexml) | |
19 | Requires: php(spl) | |
20 | Requires: php(xml) | |
4e2bd006 | 21 | Requires: php-dirs >= 1.6 |
a6bc4cb1 | 22 | Suggests: php-symfony2-Config |
ca40bf48 | 23 | Suggests: php-symfony2-Yaml |
c18b5924 | 24 | Conflicts: php-symfony2-Config < 2.7 |
a6bc4cb1 ER |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
8379e376 ER |
29 | Translation provides tools for loading translation files and |
30 | generating translated strings from these including support for | |
31 | pluralization. | |
a6bc4cb1 ER |
32 | |
33 | %prep | |
e2a6820d | 34 | %setup -q -n translation-%{version} |
a6bc4cb1 | 35 | |
fb631541 | 36 | %build |
0ca8fdb0 | 37 | phpab -n -e '*/Tests/*' -o autoload.php . |
a6bc4cb1 ER |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
9230bdbd ER |
41 | install -d $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package} |
42 | cp -a *.php */ $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package} | |
43 | rm -r $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}/Tests | |
a6bc4cb1 ER |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
fb631541 | 50 | %doc CHANGELOG.md LICENSE README.md |
9230bdbd ER |
51 | %dir %{php_data_dir}/Symfony/Component/Translation |
52 | %{php_data_dir}/Symfony/Component/Translation/*.php | |
53 | %{php_data_dir}/Symfony/Component/Translation/Catalogue | |
314a77eb | 54 | %{php_data_dir}/Symfony/Component/Translation/DataCollector |
9230bdbd ER |
55 | %{php_data_dir}/Symfony/Component/Translation/Dumper |
56 | %{php_data_dir}/Symfony/Component/Translation/Exception | |
57 | %{php_data_dir}/Symfony/Component/Translation/Extractor | |
58 | %{php_data_dir}/Symfony/Component/Translation/Loader | |
8f4fda4a | 59 | %{php_data_dir}/Symfony/Component/Translation/Util |
9230bdbd | 60 | %{php_data_dir}/Symfony/Component/Translation/Writer |