]> git.pld-linux.org Git - packages/Smarty-plugin-gettext.git/blame - Smarty-plugin-gettext.spec
help rpm5 out: tsmarty2c is deliberately packaged to both packages with same name
[packages/Smarty-plugin-gettext.git] / Smarty-plugin-gettext.spec
CommitLineData
d0e2a83a 1%define subver b1
2fb1a223 2%define rel 12
48ef24da
ER
3%include /usr/lib/rpm/macros.php
4%define php_min_version 5.2.1
63723715 5Summary: Gettext support for Smarty
924f14f7 6Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
48ef24da 7Name: Smarty-plugin-gettext
63723715 8Version: 1.0
d0e2a83a 9Release: 0.%{subver}.%{rel}
63723715
ER
10License: LGPL v2+
11Group: Development/Languages/PHP
48ef24da 12Source0: http://downloads.sourceforge.net/smarty-gettext/smarty-gettext-%{version}%{subver}.tgz
63723715 13# Source0-md5: 3795d4ce1a391e8eace9bd2adb5b1abb
d0e2a83a
ER
14Source1: http://bazaar.launchpad.net/~eventum-developers/eventum/trunk/download/head%3A/tsmarty2c-20091105141507-sh36mrwjgo63hzxk-1/tsmarty2c
15# Source1-md5: 589fd057a8dec5ee9796849885bb93c4
63723715 16URL: http://smarty.incutio.com/?page=SmartyGettext
ddf8fc27 17BuildRequires: rpm-php-pearprov
63723715
ER
18BuildRequires: sed >= 4.0
19Requires: Smarty >= 2.6.10-4
1ea57013 20Requires: php(core) >= %{php_min_version}
af38e0ab 21Requires: php(gettext)
48ef24da
ER
22Provides: smarty-gettext = %{version}-%{release}
23Obsoletes: smarty-gettext
24Obsoletes: smarty-gettext-devel
63723715
ER
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
2e412f50
ER
28%define _smartyplugindir %{php_data_dir}/Smarty/plugins
29%define _smarty3plugindir %{php_data_dir}/Smarty3/plugins
30
31# tsmarty2c is deliberately packaged to both packages with same name
32%define _duplicate_files_terminate_build 0
63723715
ER
33
34%description
35smarty-gettext provides gettext support for Smarty, the popular PHP
36templating engine <http://smarty.php.net/>.
37
103be048
JR
38%description -l pl.UTF-8
39smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
40silnika szablonów dla PHP - <http://smarty.php.net/>.
6886e5dc 41
2fb1a223
ER
42%package -n php-Smarty-plugin-gettext
43Summary: Gettext support for Smarty
44Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
45Group: Development/Languages/PHP
2fb1a223
ER
46Requires: php(core) >= %{php_min_version}
47Requires: php(gettext)
2e412f50 48Requires: php-Smarty >= 3.1.8-4
2fb1a223
ER
49
50%description -n php-Smarty-plugin-gettext
51smarty-gettext provides gettext support for Smarty, the popular PHP
52templating engine <http://smarty.php.net/>.
53
54%description -n php-Smarty-plugin-gettext -l pl.UTF-8
55smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
56silnika szablonów dla PHP - <http://smarty.php.net/>.
57
63723715 58%prep
48ef24da 59%setup -q -n smarty-gettext-%{version}%{subver}
63723715
ER
60
61%install
62rm -rf $RPM_BUILD_ROOT
2fb1a223 63install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_smarty3plugindir},%{_bindir}}
2e412f50
ER
64cp -p block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
65cp -p block.t.php $RPM_BUILD_ROOT%{_smarty3plugindir}
d0e2a83a 66install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
63723715
ER
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
73%doc ChangeLog README
827d9419 74%attr(755,root,root) %{_bindir}/tsmarty2c
48ef24da 75%{_smartyplugindir}/*.php
2fb1a223
ER
76
77%files -n php-Smarty-plugin-gettext
78%defattr(644,root,root,755)
79%doc ChangeLog README
80%attr(755,root,root) %{_bindir}/tsmarty2c
81%{_smarty3plugindir}/*.php
This page took 0.063437 seconds and 4 git commands to generate.