Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 9b67d87709893fcd151c1660c6866125 > files > 2

php-smarty-gettext-0.9.1-3.mga3.src.rpm

%define		name	php-smarty-gettext
%define		version 0.9.1
%define		release %mkrel 3
%define		_smartyplugindir	%{_datadir}/php/smarty/plugins

Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	LGPL v2+
Summary:	Gettext support for Smarty
Group:		Development/PHP
Source0:	smarty-gettext-%{version}.tgz
Patch0:		%{name}-path.patch
URL:		http://smarty.incutio.com/?page=SmartyGettext
Requires:	php-smarty 
BuildArch:	noarch

%description
smarty-gettext provides gettext support for Smarty, the popular PHP
templating engine <http://smarty.php.net/>.

%package devel
Summary:	Development tools for smarty-gettext
Group:		Development/PHP

%description devel
This package contains tsmarty2c program which can be used to extract
gettext compatible strings.

%prep
%setup -q -n smarty-gettext-%{version}
%patch0 -p0

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_smartyplugindir}
install -d $RPM_BUILD_ROOT%{_bindir}

install smarty-gettext.php $RPM_BUILD_ROOT%{_smartyplugindir}
install tsmarty2c.php $RPM_BUILD_ROOT%{_bindir}/tsmarty2c

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChangeLog README
%{_smartyplugindir}/*.php

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/tsmarty2c


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.9.1-3.mga3
+ Revision: 377575
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Oct 03 2012 malo <malo> 0.9.1-2.mga3
+ Revision: 302249
- fix RPM group

* Wed Jul 20 2011 ennael <ennael> 0.9.1-1.mga2
+ Revision: 127157
- imported package php-smarty-gettext