3 %include /usr/lib/rpm/macros.php
4 %define php_min_version 5.2.1
5 Summary: Gettext support for Smarty
6 Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
7 Name: Smarty-plugin-gettext
9 Release: 0.%{subver}.%{rel}
11 Group: Development/Languages/PHP
12 Source0: http://downloads.sourceforge.net/smarty-gettext/smarty-gettext-%{version}%{subver}.tgz
13 # Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
14 Source1: http://bazaar.launchpad.net/~eventum-developers/eventum/trunk/download/head%3A/tsmarty2c-20091105141507-sh36mrwjgo63hzxk-1/tsmarty2c
15 # Source1-md5: 589fd057a8dec5ee9796849885bb93c4
16 URL: http://smarty.incutio.com/?page=SmartyGettext
17 BuildRequires: rpm-php-pearprov
18 BuildRequires: sed >= 4.0
19 Requires: Smarty >= 2.6.10-4
20 Requires: php(core) >= %{php_min_version}
21 Requires: php(gettext)
22 Provides: smarty-gettext = %{version}-%{release}
23 Obsoletes: smarty-gettext
24 Obsoletes: smarty-gettext-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _smartyplugindir %{php_data_dir}/Smarty/plugins
29 %define _smarty3plugindir %{php_data_dir}/Smarty3/plugins
31 # tsmarty2c is deliberately packaged to both packages with same name
32 %define _duplicate_files_terminate_build 0
35 smarty-gettext provides gettext support for Smarty, the popular PHP
36 templating engine <http://smarty.php.net/>.
38 %description -l pl.UTF-8
39 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
40 silnika szablonów dla PHP - <http://smarty.php.net/>.
42 %package -n php-Smarty-plugin-gettext
43 Summary: Gettext support for Smarty
44 Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
45 Group: Development/Languages/PHP
46 Requires: php(core) >= %{php_min_version}
47 Requires: php(gettext)
48 Requires: php-Smarty >= 3.1.8-4
50 %description -n php-Smarty-plugin-gettext
51 smarty-gettext provides gettext support for Smarty, the popular PHP
52 templating engine <http://smarty.php.net/>.
54 %description -n php-Smarty-plugin-gettext -l pl.UTF-8
55 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
56 silnika szablonów dla PHP - <http://smarty.php.net/>.
59 %setup -q -n smarty-gettext-%{version}%{subver}
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_smarty3plugindir},%{_bindir}}
64 cp -p block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
65 cp -p block.t.php $RPM_BUILD_ROOT%{_smarty3plugindir}
66 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_bindir}/tsmarty2c
75 %{_smartyplugindir}/*.php
77 %files -n php-Smarty-plugin-gettext
78 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/tsmarty2c
81 %{_smarty3plugindir}/*.php