3 Summary: Gettext support for Smarty
4 Summary(pl): Obs³uga gettexta dla systemu Smarty
7 Release: 0.%{_beta}.%{_rel}
9 Group: Development/Languages/PHP
10 Source0: http://dl.sourceforge.net/smarty-gettext/%{name}-%{version}%{_beta}.tgz
11 # Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
12 URL: http://smarty.incutio.com/?page=SmartyGettext
13 BuildRequires: sed >= 4.0
14 Requires: Smarty >= 2.6.10-4
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _smartyplugindir %{_datadir}/php/Smarty/plugins
23 smarty-gettext provides gettext support for Smarty, the popular PHP
24 templating engine <http://smarty.php.net/>.
27 smarty-gettext dodaje obs³ugê gettexta do systemu Smarty - popularnego
28 silnika szablonów dla PHP - <http://smarty.php.net/>.
31 %setup -q -n %{name}-%{version}%{_beta}
32 %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
38 install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
39 install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/tsmarty2c
48 %{_smartyplugindir}/*.php