]>
Commit | Line | Data |
---|---|---|
94d6dd8c ER |
1 | %define status stable |
2 | %define pearname Templating | |
3 | %define php_min_version 5.3.3 | |
4 | %include /usr/lib/rpm/macros.php | |
5 | Summary: %{pearname} - Symfony2 Templating Component | |
6 | Name: php-symfony2-Templating | |
7 | Version: 2.1.4 | |
8 | Release: 1 | |
9 | License: MIT | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
12 | # Source0-md5: b7b2b8fec167bb7eb9079742510adecb | |
154f404e | 13 | URL: http://symfony.com/doc/current/components/templating.html |
94d6dd8c ER |
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 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Symfony2 Templating Component | |
26 | ||
27 | In PEAR status of this package is: %{status}. | |
28 | ||
29 | %prep | |
30 | %pear_package_setup | |
31 | ||
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 | |
35 | ||
36 | # fixups | |
37 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/CHANGELOG.md . | |
38 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitattributes | |
39 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
44 | %pear_package_install | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGELOG.md LICENSE README.md install.log | |
52 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
53 | %dir %{php_pear_dir}/Symfony/Component/Templating | |
54 | %{php_pear_dir}/Symfony/Component/Templating/*.php | |
55 | %{php_pear_dir}/Symfony/Component/Templating/Asset | |
56 | %{php_pear_dir}/Symfony/Component/Templating/Helper | |
57 | %{php_pear_dir}/Symfony/Component/Templating/Loader | |
58 | %{php_pear_dir}/Symfony/Component/Templating/Storage |