]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blob - Smarty-plugin-gettext.spec
- rename to Smarty-plugin-gettext
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
1 %define         subver  b1
2 %define         rel             6
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
8 Version:        1.0
9 Release:        0.%{subver}.%{rel}
10 License:        LGPL v2+
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:  sed >= 4.0
18 Requires:       Smarty >= 2.6.10-4
19 Requires:       php-common >= 4:%{php_min_version}
20 Requires:       php-gettext
21 Provides:       smarty-gettext = %{version}-%{release}
22 Obsoletes:      smarty-gettext
23 Obsoletes:      smarty-gettext-devel
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _smartyplugindir        %{_datadir}/php/Smarty/plugins
28
29 %description
30 smarty-gettext provides gettext support for Smarty, the popular PHP
31 templating engine <http://smarty.php.net/>.
32
33 %description -l pl.UTF-8
34 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
35 silnika szablonów dla PHP - <http://smarty.php.net/>.
36
37 %prep
38 %setup -q -n smarty-gettext-%{version}%{subver}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
43 cp -a block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
44 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc ChangeLog README
52 %attr(755,root,root) %{_bindir}/tsmarty2c
53 %{_smartyplugindir}/*.php
This page took 0.268568 seconds and 4 git commands to generate.