]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blob - Smarty-plugin-gettext.spec
- new
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
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
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _smartyplugindir        %{_datadir}/php/Smarty/plugins
19
20 %description
21 smarty-gettext provides gettext support for Smarty, the popular PHP
22 templating engine <http://smarty.php.net/>.
23
24 %prep
25 %setup -q -n %{name}-%{version}%{_beta}
26 %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
31
32 install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
33 install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 %files
39 %defattr(644,root,root,755)
40 %doc ChangeLog README
41 %{_smartyplugindir}/*.php
42 %attr(755,root,root) %{_bindir}/tsmarty2c
This page took 0.131984 seconds and 4 git commands to generate.