]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blob - Smarty-plugin-gettext.spec
c3135a68a659dc8ad72ea64d472e6dc67a8bb7c4
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
1 %define         subver  b1
2 %define         rel             12
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:  rpm-php-pearprov
18 BuildRequires:  sed >= 4.0
19 Requires:       Smarty >= 2.6.10-4
20 Requires:       php(core) >= %{php_min_version}
21 Requires:       php(gettext)
22 Provides:       smarty-gettext = %{version}-%{release}
23 Obsoletes:      smarty-gettext
24 Obsoletes:      smarty-gettext-devel
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _smartyplugindir        %{_datadir}/php/Smarty/plugins
29 %define         _smarty3plugindir       %{_datadir}/php/Smarty3/plugins
30
31 %description
32 smarty-gettext provides gettext support for Smarty, the popular PHP
33 templating engine <http://smarty.php.net/>.
34
35 %description -l pl.UTF-8
36 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
37 silnika szablonów dla PHP - <http://smarty.php.net/>.
38
39 %package -n php-Smarty-plugin-gettext
40 Summary:        Gettext support for Smarty
41 Summary(pl.UTF-8):      Obsługa gettexta dla systemu Smarty
42 Group:          Development/Languages/PHP
43 Requires:       php-Smarty >= 3.1.8-4
44 Requires:       php(core) >= %{php_min_version}
45 Requires:       php(gettext)
46
47 %description -n php-Smarty-plugin-gettext
48 smarty-gettext provides gettext support for Smarty, the popular PHP
49 templating engine <http://smarty.php.net/>.
50
51 %description -n php-Smarty-plugin-gettext -l pl.UTF-8
52 smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
53 silnika szablonów dla PHP - <http://smarty.php.net/>.
54
55 %prep
56 %setup -q -n smarty-gettext-%{version}%{subver}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_smarty3plugindir},%{_bindir}}
61 cp -a block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
62 cp -a block.t.php $RPM_BUILD_ROOT%{_smarty3plugindir}
63 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc ChangeLog README
71 %attr(755,root,root) %{_bindir}/tsmarty2c
72 %{_smartyplugindir}/*.php
73
74 %files -n php-Smarty-plugin-gettext
75 %defattr(644,root,root,755)
76 %doc ChangeLog README
77 %attr(755,root,root) %{_bindir}/tsmarty2c
78 %{_smarty3plugindir}/*.php
This page took 0.252999 seconds and 3 git commands to generate.