[packages/Smarty-plugin-gettext] up to 1.0.1, new home

glen glen at pld-linux.org
Thu Nov 21 22:06:56 CET 2013


commit bb17d5c26d46ba3f81647fab27543aa697f64d83
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 21 23:06:49 2013 +0200

    up to 1.0.1, new home

 Smarty-plugin-gettext.spec | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/Smarty-plugin-gettext.spec b/Smarty-plugin-gettext.spec
index 535dbe5..801035f 100644
--- a/Smarty-plugin-gettext.spec
+++ b/Smarty-plugin-gettext.spec
@@ -1,24 +1,21 @@
-%define		subver	b1
-%define		rel		12
 %include	/usr/lib/rpm/macros.php
 %define		php_min_version 5.2.1
 Summary:	Gettext support for Smarty
 Summary(pl.UTF-8):	Obsługa gettexta dla systemu Smarty
 Name:		Smarty-plugin-gettext
-Version:	1.0
-Release:	0.%{subver}.%{rel}
+Version:	1.0.1
+Release:	1
 License:	LGPL v2+
 Group:		Development/Languages/PHP
-Source0:	http://downloads.sourceforge.net/smarty-gettext/smarty-gettext-%{version}%{subver}.tgz
-# Source0-md5:	3795d4ce1a391e8eace9bd2adb5b1abb
-Source1:	http://bazaar.launchpad.net/~eventum-developers/eventum/trunk/download/head%3A/tsmarty2c-20091105141507-sh36mrwjgo63hzxk-1/tsmarty2c
-# Source1-md5:	589fd057a8dec5ee9796849885bb93c4
-URL:		http://smarty.incutio.com/?page=SmartyGettext
+Source0:	https://github.com/glensc/smarty-gettext/archive/%{version}/smarty-gettext-%{version}.tar.gz
+# Source0-md5:	3b44479b461a066d705807dd4d3ecae7
+URL:		https://github.com/glensc/smarty-gettext
 BuildRequires:	rpm-php-pearprov
 BuildRequires:	sed >= 4.0
 Requires:	Smarty >= 2.6.10-4
 Requires:	php(core) >= %{php_min_version}
 Requires:	php(gettext)
+Requires:	sed >= 4.0
 Provides:	smarty-gettext = %{version}-%{release}
 Obsoletes:	smarty-gettext
 Obsoletes:	smarty-gettext-devel
@@ -56,26 +53,28 @@ 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}
+%setup -q -n smarty-gettext-%{version}
+
+%{__sed} -i -e '1s,^#!.*php,#!/usr/bin/php,' tsmarty2c.php
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_smartyplugindir},%{_smarty3plugindir},%{_bindir}}
 cp -p block.t.php $RPM_BUILD_ROOT%{_smartyplugindir}
 cp -p block.t.php $RPM_BUILD_ROOT%{_smarty3plugindir}
-install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
+cp -p tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc README.md ChangeLog.md
 %attr(755,root,root) %{_bindir}/tsmarty2c
 %{_smartyplugindir}/*.php
 
 %files -n php-Smarty-plugin-gettext
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc README.md ChangeLog.md
 %attr(755,root,root) %{_bindir}/tsmarty2c
 %{_smarty3plugindir}/*.php
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Smarty-plugin-gettext.git/commitdiff/bb17d5c26d46ba3f81647fab27543aa697f64d83



More information about the pld-cvs-commit mailing list