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