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
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _smartyplugindir %{_datadir}/php/Smarty/plugins
21 smarty-gettext provides gettext support for Smarty, the popular PHP
22 templating engine <http://smarty.php.net/>.
25 %setup -q -n %{name}-%{version}%{_beta}
26 %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
32 install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
33 install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
41 %{_smartyplugindir}/*.php
42 %attr(755,root,root) %{_bindir}/tsmarty2c