[packages/Smarty-plugin-gettext] install plugin for smarty3 to separate package
glen
glen at pld-linux.org
Wed Oct 30 17:27:14 CET 2013
commit 2fb1a22323d1e68fc9f3d57483e97c83de20e2eb
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Oct 30 18:26:59 2013 +0200
install plugin for smarty3 to separate package
Smarty-plugin-gettext.spec | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/Smarty-plugin-gettext.spec b/Smarty-plugin-gettext.spec
index c56c062..c3135a6 100644
--- a/Smarty-plugin-gettext.spec
+++ b/Smarty-plugin-gettext.spec
@@ -1,5 +1,5 @@
%define subver b1
-%define rel 11
+%define rel 12
%include /usr/lib/rpm/macros.php
%define php_min_version 5.2.1
Summary: Gettext support for Smarty
@@ -26,6 +26,7 @@ BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _smartyplugindir %{_datadir}/php/Smarty/plugins
+%define _smarty3plugindir %{_datadir}/php/Smarty3/plugins
%description
smarty-gettext provides gettext support for Smarty, the popular PHP
@@ -35,13 +36,30 @@ templating engine <http://smarty.php.net/>.
smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
silnika szablonów dla PHP - <http://smarty.php.net/>.
+%package -n php-Smarty-plugin-gettext
+Summary: Gettext support for Smarty
+Summary(pl.UTF-8): Obsługa gettexta dla systemu Smarty
+Group: Development/Languages/PHP
+Requires: php-Smarty >= 3.1.8-4
+Requires: php(core) >= %{php_min_version}
+Requires: php(gettext)
+
+%description -n php-Smarty-plugin-gettext
+smarty-gettext provides gettext support for Smarty, the popular PHP
+templating engine <http://smarty.php.net/>.
+
+%description -n php-Smarty-plugin-gettext -l pl.UTF-8
+smarty-gettext dodaje obsługę gettexta do systemu Smarty - popularnego
+silnika szablonów dla PHP - <http://smarty.php.net/>.
+
%prep
%setup -q -n smarty-gettext-%{version}%{subver}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_smarty3plugindir},%{_bindir}}
cp -a block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
+cp -a block.t.php $RPM_BUILD_ROOT%{_smarty3plugindir}
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
%clean
@@ -52,3 +70,9 @@ rm -rf $RPM_BUILD_ROOT
%doc ChangeLog README
%attr(755,root,root) %{_bindir}/tsmarty2c
%{_smartyplugindir}/*.php
+
+%files -n php-Smarty-plugin-gettext
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{_bindir}/tsmarty2c
+%{_smarty3plugindir}/*.php
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Smarty-plugin-gettext.git/commitdiff/2fb1a22323d1e68fc9f3d57483e97c83de20e2eb
More information about the pld-cvs-commit
mailing list