]> git.pld-linux.org Git - packages/php-symfony2-Templating.git/blob - php-symfony2-Templating.spec
Update to 2.8.52
[packages/php-symfony2-Templating.git] / php-symfony2-Templating.spec
1 %define         package Templating
2 %define         php_min_version 5.3.9
3 Summary:        Symfony2 Templating Component
4 Name:           php-symfony2-Templating
5 Version:        2.8.52
6 Release:        1
7 License:        MIT
8 Group:          Development/Languages/PHP
9 Source0:        https://github.com/symfony/%{package}/archive/v%{version}/%{package}-%{version}.tar.gz
10 # Source0-md5:  7888fb376a806148eb3ef26c12cc814c
11 URL:            http://symfony.com/doc/2.7/components/templating.html
12 BuildRequires:  phpab
13 BuildRequires:  rpmbuild(macros) >= 1.610
14 Requires:       php(core) >= %{php_min_version}
15 Requires:       php(ctype)
16 Requires:       php(hash)
17 Requires:       php(mbstring)
18 Requires:       php(pcre)
19 Requires:       php(spl)
20 Requires:       php-dirs >= 1.6
21 Suggests:       php-psr-Log
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Provides all the tools needed to build any kind of template system.
27
28 %prep
29 %setup -q -n templating-%{version}
30
31 %build
32 phpab -n -e '*/Tests/*' -o autoload.php .
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}
37 cp -a *.php */ $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}
38 rm -r $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}/Tests
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc CHANGELOG.md LICENSE README.md
46 %dir %{php_data_dir}/Symfony/Component/Templating
47 %{php_data_dir}/Symfony/Component/Templating/*.php
48 %{php_data_dir}/Symfony/Component/Templating/Asset
49 %{php_data_dir}/Symfony/Component/Templating/Helper
50 %{php_data_dir}/Symfony/Component/Templating/Loader
51 %{php_data_dir}/Symfony/Component/Templating/Storage
This page took 0.119071 seconds and 3 git commands to generate.