]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blame - Smarty-plugin-gettext.spec
- tabs in preamble
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
CommitLineData
63723715 1%define _beta b1
fcc99ad1 2%define _rel 3
63723715 3Summary: Gettext support for Smarty
924f14f7 4Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
63723715
ER
5Name: smarty-gettext
6Version: 1.0
7Release: 0.%{_beta}.%{_rel}
8License: LGPL v2+
9Group: Development/Languages/PHP
10Source0: http://dl.sourceforge.net/smarty-gettext/%{name}-%{version}%{_beta}.tgz
11# Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
12URL: http://smarty.incutio.com/?page=SmartyGettext
13BuildRequires: sed >= 4.0
14Requires: Smarty >= 2.6.10-4
fcc99ad1 15Requires: php(gettext)
63723715
ER
16Requires: php-common
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _smartyplugindir %{_datadir}/php/Smarty/plugins
21
22%description
23smarty-gettext provides gettext support for Smarty, the popular PHP
24templating engine <http://smarty.php.net/>.
25
103be048
JR
26%description -l pl.UTF-8
27smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
28silnika szablonów dla PHP - <http://smarty.php.net/>.
6886e5dc 29
827d9419
ER
30%package devel
31Summary: Development tools for smarty-gettext
924f14f7 32Summary(pl.UTF-8): Narzędzia programistyczne dla pakietu smarty-gettext
827d9419
ER
33Group: Development
34# does not require base
35
36%description devel
37This package contains tsmarty2c program which can be used to extract
38gettext compatible strings.
39
103be048
JR
40%description devel -l pl.UTF-8
41Ten pakiet zawiera program tsmarty2c, którego można użyć do wyciągania
42łańcuchów kompatybilnych z gettextem.
0f19e515 43
63723715
ER
44%prep
45%setup -q -n %{name}-%{version}%{_beta}
46%{__sed} -i -e '1s,#!.*php,#!%{_bindir}/php,' tsmarty2c.php
47
48%install
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
51
52install block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
53install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc ChangeLog README
6886e5dc 61%{_smartyplugindir}/*.php
827d9419
ER
62
63%files devel
64%defattr(644,root,root,755)
65%attr(755,root,root) %{_bindir}/tsmarty2c
This page took 0.085786 seconds and 4 git commands to generate.