]> git.pld-linux.org Git - packages/php-twig-Twig.git/blame - php-twig-Twig.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-twig-Twig.git] / php-twig-Twig.spec
CommitLineData
fa62d6b4 1%define pearname Twig
8e6c4521 2%define php_min_version 5.2.4
8e6c4521
ER
3Summary: The flexible, fast, and secure template engine for PHP
4Name: php-twig-%{pearname}
b27ab11f 5Version: 1.29.0
fa62d6b4
ER
6Release: 1
7License: BSD Style
8Group: Development/Languages/PHP
9Source0: http://pear.twig-project.org/get/%{pearname}-%{version}.tgz
b27ab11f 10# Source0-md5: 728dd236dfa82f30fcb1d54ab1bf2672
8e6c4521 11URL: http://twig.sensiolabs.org/
fa62d6b4 12BuildRequires: php-channel(pear.twig-project.org)
fa62d6b4
ER
13BuildRequires: php-pear-PEAR
14BuildRequires: rpm-php-pearprov >= 4.4.2-11
15BuildRequires: rpmbuild(macros) >= 1.610
f821a87f
ER
16Requires: php(core) >= %{php_min_version}
17Requires: php(ctype)
18Requires: php(date)
19Requires: php(dom)
20Requires: php(hash)
21Requires: php(json)
22Requires: php(mbstring)
23Requires: php(pcre)
24Requires: php(spl)
fa62d6b4
ER
25Requires: php-channel(pear.twig-project.org)
26Requires: php-pear
8e6c4521 27Suggests: php(xdebug)
fa62d6b4
ER
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Twig is a template language for PHP.
33
34Twig uses a syntax similar to the Django and Jinja template languages
35which inspired the Twig runtime environment.
36
8e6c4521
ER
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
44 create its own DSL.
fa62d6b4
ER
45
46%prep
47%pear_package_setup
48
8e6c4521 49mv docs/Twig/* .
fa62d6b4
ER
50
51%install
52rm -rf $RPM_BUILD_ROOT
53install -d $RPM_BUILD_ROOT%{php_pear_dir}
54%pear_package_install
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
8e6c4521
ER
61%doc install.log
62%doc README.rst CHANGELOG LICENSE
fa62d6b4
ER
63%{php_pear_dir}/.registry/.channel.*/*.reg
64%{php_pear_dir}/Twig
This page took 0.08097 seconds and 4 git commands to generate.