]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blob - Smarty-plugin-gettext.spec
- move tsmarty2c to -devel
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
1 %define         _beta b1
2 %define         _rel 2
3 Summary:        Gettext support for Smarty
4 Summary(pl):    Obs³uga gettexta dla systemu Smarty
5 Name:           smarty-gettext
6 Version:        1.0
7 Release:        0.%{_beta}.%{_rel}
8 License:        LGPL v2+
9 Group:          Development/Languages/PHP
10 Source0:        http://dl.sourceforge.net/smarty-gettext/%{name}-%{version}%{_beta}.tgz
11 # Source0-md5:  3795d4ce1a391e8eace9bd2adb5b1abb
12 URL:            http://smarty.incutio.com/?page=SmartyGettext
13 BuildRequires:  sed >= 4.0
14 Requires:       Smarty >= 2.6.10-4
15 Requires:       php-common
16 Requires:       php-gettext
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _smartyplugindir        %{_datadir}/php/Smarty/plugins
21
22 %description
23 smarty-gettext provides gettext support for Smarty, the popular PHP
24 templating engine <http://smarty.php.net/>.
25
26 %description -l pl
27 smarty-gettext dodaje obs³ugê gettexta do systemu Smarty - popularnego
28 silnika szablonów dla PHP - <http://smarty.php.net/>.
29
30 %package devel
31 Summary:        Development tools for smarty-gettext
32 Group:          Development
33 # does not require base
34
35 %description devel
36 This package contains tsmarty2c program which can be used to extract
37 gettext compatible strings.
38
39 %prep
40 %setup -q -n %{name}-%{version}%{_beta}
41 %{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
46
47 install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
48 install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc ChangeLog README
56 %{_smartyplugindir}/*.php
57
58 %files devel
59 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/tsmarty2c
This page took 0.105134 seconds and 4 git commands to generate.