2 %define php_min_version 5.2.4
3 Summary: The flexible, fast, and secure template engine for PHP
4 Name: php-twig-%{pearname}
8 Group: Development/Languages/PHP
9 Source0: http://pear.twig-project.org/get/%{pearname}-%{version}.tgz
10 # Source0-md5: 728dd236dfa82f30fcb1d54ab1bf2672
11 URL: http://twig.sensiolabs.org/
12 BuildRequires: php-channel(pear.twig-project.org)
13 BuildRequires: php-pear-PEAR
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.610
16 Requires: php(core) >= %{php_min_version}
22 Requires: php(mbstring)
25 Requires: php-channel(pear.twig-project.org)
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Twig is a template language for PHP.
34 Twig uses a syntax similar to the Django and Jinja template languages
35 which inspired the Twig runtime environment.
37 - Fast: Twig compiles templates down to plain optimized PHP code. The
38 overhead compared to regular PHP code was reduced to the very minimum.
39 - Secure: Twig has a sandbox mode to evaluate untrusted template code.
40 This allows Twig to be used as a template language for applications
41 where users may modify the template design.
42 - Flexible: Twig is powered by a flexible lexer and parser. This
43 allows the developer to define its own custom tags and filters, and
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{php_pear_dir}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %doc README.rst CHANGELOG LICENSE
63 %{php_pear_dir}/.registry/.channel.*/*.reg