]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blame - Smarty-plugin-gettext.spec
- uses gettext extension
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
CommitLineData
63723715
ER
1%define _beta b1
2%define _rel 1
3Summary: Gettext support for Smarty
4Name: smarty-gettext
5Version: 1.0
6Release: 0.%{_beta}.%{_rel}
7License: LGPL v2+
8Group: Development/Languages/PHP
9Source0: http://dl.sourceforge.net/smarty-gettext/%{name}-%{version}%{_beta}.tgz
10# Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
11URL: http://smarty.incutio.com/?page=SmartyGettext
12BuildRequires: sed >= 4.0
13Requires: Smarty >= 2.6.10-4
14Requires: php-common
9dec9008 15Requires: php-gettext
63723715
ER
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _smartyplugindir %{_datadir}/php/Smarty/plugins
20
21%description
22smarty-gettext provides gettext support for Smarty, the popular PHP
23templating 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
30rm -rf $RPM_BUILD_ROOT
31install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
32
33install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
34install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
35
36%clean
37rm -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
This page took 0.056739 seconds and 4 git commands to generate.