3 Summary: Gettext support for Smarty
6 Release: 0.%{_beta}.%{_rel}
8 Group: Development/Languages/PHP
9 Source0: http://dl.sourceforge.net/smarty-gettext/%{name}-%{version}%{_beta}.tgz
10 # Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
11 URL: http://smarty.incutio.com/?page=SmartyGettext
12 BuildRequires: sed >= 4.0
13 Requires: Smarty >= 2.6.10-4
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _smartyplugindir %{_datadir}/php/Smarty/plugins
22 smarty-gettext provides gettext support for Smarty, the popular PHP
23 templating engine <http://smarty.php.net/>.
26 %setup -q -n %{name}-%{version}%{_beta}
27 %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
33 install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
34 install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
42 %{_smartyplugindir}/*.php
43 %attr(755,root,root) %{_bindir}/tsmarty2c