]>
Commit | Line | Data |
---|---|---|
63723715 ER |
1 | %define _beta b1 |
2 | %define _rel 1 | |
3 | Summary: Gettext support for Smarty | |
4 | Name: smarty-gettext | |
5 | Version: 1.0 | |
6 | Release: 0.%{_beta}.%{_rel} | |
7 | License: LGPL v2+ | |
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 | |
14 | Requires: php-common | |
9dec9008 | 15 | Requires: php-gettext |
63723715 ER |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _smartyplugindir %{_datadir}/php/Smarty/plugins | |
20 | ||
21 | %description | |
22 | smarty-gettext provides gettext support for Smarty, the popular PHP | |
23 | templating engine <http://smarty.php.net/>. | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{name}-%{version}%{_beta} | |
27 | %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}} | |
32 | ||
33 | install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir} | |
34 | install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc ChangeLog README | |
42 | %{_smartyplugindir}/*.php | |
43 | %attr(755,root,root) %{_bindir}/tsmarty2c |