]> git.pld-linux.org Git - packages/php-symfony2-Templating.git/blob - php-symfony2-Templating.spec
up to 2.4.8, use github source
[packages/php-symfony2-Templating.git] / php-symfony2-Templating.spec
1 %define         pearname        Templating
2 %define         php_min_version 5.3.3
3 %include        /usr/lib/rpm/macros.php
4 Summary:        Symfony2 Templating Component
5 Name:           php-symfony2-Templating
6 Version:        2.4.8
7 Release:        1
8 License:        MIT
9 Group:          Development/Languages/PHP
10 Source0:        https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
11 # Source0-md5:  684b9a946e7dd6dc8a2e32c12fa45039
12 URL:            http://symfony.com/doc/2.4/components/templating.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(ctype)
18 Requires:       php(hash)
19 Requires:       php(mbstring)
20 Requires:       php(pcre)
21 Requires:       php(spl)
22 Requires:       php-pear >= 4:1.3.10
23 Suggests:       php-psr-Log
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Provides all the tools needed to build any kind of template system.
29
30 %prep
31 %setup -q -n %{pearname}-%{version}
32
33 %build
34 phpab -n -e '*/Tests/*' -o autoload.php .
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
39 cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
40 rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Tests
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc CHANGELOG.md LICENSE README.md
48 %dir %{php_pear_dir}/Symfony/Component/Templating
49 %{php_pear_dir}/Symfony/Component/Templating/*.php
50 %{php_pear_dir}/Symfony/Component/Templating/Asset
51 %{php_pear_dir}/Symfony/Component/Templating/Helper
52 %{php_pear_dir}/Symfony/Component/Templating/Loader
53 %{php_pear_dir}/Symfony/Component/Templating/Storage
This page took 0.062914 seconds and 3 git commands to generate.