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