3 Summary: Gettext support for Smarty
4 Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
7 Release: 0.%{subver}.%{rel}
9 Group: Development/Languages/PHP
10 Source0: http://downloads.sourceforge.net/smarty-gettext/%{name}-%{version}%{subver}.tgz
11 # Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
12 Source1: http://bazaar.launchpad.net/~eventum-developers/eventum/trunk/download/head%3A/tsmarty2c-20091105141507-sh36mrwjgo63hzxk-1/tsmarty2c
13 # Source1-md5: 589fd057a8dec5ee9796849885bb93c4
14 URL: http://smarty.incutio.com/?page=SmartyGettext
15 BuildRequires: sed >= 4.0
16 Requires: Smarty >= 2.6.10-4
17 Requires: php(gettext)
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _smartyplugindir %{_datadir}/php/Smarty/plugins
25 smarty-gettext provides gettext support for Smarty, the popular PHP
26 templating engine <http://smarty.php.net/>.
28 %description -l pl.UTF-8
29 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
30 silnika szablonów dla PHP - <http://smarty.php.net/>.
33 Summary: Development tools for smarty-gettext
34 Summary(pl.UTF-8): Narzędzia programistyczne dla pakietu smarty-gettext
36 # does not require base
39 This package contains tsmarty2c program which can be used to extract
40 gettext compatible strings.
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera program tsmarty2c, którego można użyć do wyciągania
44 łańcuchów kompatybilnych z gettextem.
47 %setup -q -n %{name}-%{version}%{subver}
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
52 cp -a block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
53 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{_smartyplugindir}/*.php
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/tsmarty2c