]>
Commit | Line | Data |
---|---|---|
a6bc4cb1 ER |
1 | %define pearname Translation |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
8379e376 | 4 | Summary: Symfony2 Translation Component |
a6bc4cb1 | 5 | Name: php-symfony2-Translation |
8379e376 | 6 | Version: 2.3.4 |
a6bc4cb1 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
8379e376 | 11 | # Source0-md5: f7fca75e975abc5035d8a4851b37dd5d |
a6bc4cb1 ER |
12 | URL: http://pear.symfony.com/package/Translation/ |
13 | BuildRequires: php-channel(pear.symfony.com) | |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.610 | |
17 | Requires: php(core) >= %{php_min_version} | |
18 | Requires: php-channel(pear.symfony.com) | |
19 | Requires: php-pear >= 4:1.3.10 | |
20 | Suggests: php-symfony2-Config | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
8379e376 ER |
25 | Translation provides tools for loading translation files and |
26 | generating translated strings from these including support for | |
27 | pluralization. | |
a6bc4cb1 ER |
28 | |
29 | %prep | |
30 | %pear_package_setup | |
31 | ||
32 | # no packaging of tests | |
8379e376 ER |
33 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
34 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
a6bc4cb1 ER |
35 | |
36 | # fixups | |
a6bc4cb1 ER |
37 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
42 | %pear_package_install | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc CHANGELOG.md LICENSE README.md install.log | |
50 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
51 | %dir %{php_pear_dir}/Symfony/Component/Translation | |
52 | %{php_pear_dir}/Symfony/Component/Translation/*.php | |
8379e376 | 53 | %{php_pear_dir}/Symfony/Component/Translation/Catalogue |
a6bc4cb1 | 54 | %{php_pear_dir}/Symfony/Component/Translation/Dumper |
8379e376 | 55 | %{php_pear_dir}/Symfony/Component/Translation/Exception |
a6bc4cb1 ER |
56 | %{php_pear_dir}/Symfony/Component/Translation/Extractor |
57 | %{php_pear_dir}/Symfony/Component/Translation/Loader | |
58 | %{php_pear_dir}/Symfony/Component/Translation/Writer |