From a95401429f8e7bc4a461bff0b7e7299c6f52839c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Sep 2012 08:47:05 +0200 Subject: rename to php-Smarty2 and update to 2.6.27 for remi repo --- Makefile | 4 +++ php-Smarty.spec | 107 ------------------------------------------------------- php-Smarty2.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 107 deletions(-) create mode 100644 Makefile delete mode 100644 php-Smarty.spec create mode 100644 php-Smarty2.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/php-Smarty.spec b/php-Smarty.spec deleted file mode 100644 index 05f35ee..0000000 --- a/php-Smarty.spec +++ /dev/null @@ -1,107 +0,0 @@ -Name: php-Smarty -Summary: Template/Presentation Framework for PHP -Version: 2.6.26 -Release: 2%{?dist} - -Source0: http://www.smarty.net/distributions/Smarty-%{version}.tar.gz -URL: http://www.smarty.net -License: LGPLv2+ -Group: Development/Libraries - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildArch: noarch - -%if 0%{?rhel} -Requires: php >= 5.1.6-3.5 -%else -Requires: php >= 5.2.0-9 -%endif - -%description -Although Smarty is known as a "Template Engine", it would be more accurately -described as a "Template/Presentation Framework." That is, it provides the -programmer and template designer with a wealth of tools to automate tasks -commonly dealt with at the presentation layer of an application. I stress the -word Framework because Smarty is not a simple tag-replacing template engine. -Although it can be used for such a simple purpose, its focus is on quick and -painless development and deployment of your application, while maintaining -high-performance, scalability, security and future growth. - - -%prep -%setup -qn Smarty-%{version} -iconv -f iso8859-1 -t utf-8 NEWS > NEWS.conv && mv -f NEWS.conv NEWS -iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog - - -%build -# empty build section, nothing required - - -%install -rm -rf $RPM_BUILD_ROOT - -# install smarty libs -install -d $RPM_BUILD_ROOT%{_datadir}/php/Smarty -cp -a libs/* $RPM_BUILD_ROOT%{_datadir}/php/Smarty/ - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -%defattr(-,root,root,-) -%doc BUGS ChangeLog COPYING.lib demo FAQ NEWS QUICK_START README -%doc RELEASE_NOTES TODO -%{_datadir}/php/Smarty - - -%changelog -* Wed Feb 09 2011 Fedora Release Engineering - 2.6.26-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun Oct 11 2009 Christopher Stone 2.6.26-1 -- Upstream sync -- Update %%source0 and %%URL - -* Sun Jul 26 2009 Fedora Release Engineering - 2.6.25-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Mon May 25 2009 Christopher Stone 2.6.25-1 -- Upstream sync - -* Thu Feb 26 2009 Fedora Release Engineering - 2.6.20-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Mon Nov 02 2008 Christopher Stone 2.6.20-2 -- Add security patch (bz #469648) -- Add RHL dist tag conditional for Requires - -* Mon Oct 13 2008 Christopher Stone 2.6.20-1 -- Upstream sync - -* Wed Feb 20 2008 Christopher Stone 2.6.19-1 -- Upstream sync -- Update %%license -- Fix file encoding - -* Sun Apr 29 2007 Christopher Stone 2.6.18-1 -- Upstream sync - -* Wed Feb 21 2007 Christopher Stone 2.6.16-2 -- Minor spec file changes/cleanups - -* Fri Feb 09 2007 Orion Poplawski 2.6.16-1 -- Update to 2.6.16 -- Install in /usr/share/php/Smarty -- Update php version requirement - -* Tue May 16 2006 Orion Poplawski 2.6.13-1 -- Update to 2.6.13 - -* Tue Nov 1 2005 Orion Poplawski 2.6.10-2 -- Fix Source0 URL. - -* Thu Oct 13 2005 Orion Poplawski 2.6.10-1 -- Initial Fedora Extras version diff --git a/php-Smarty2.spec b/php-Smarty2.spec new file mode 100644 index 0000000..4308b02 --- /dev/null +++ b/php-Smarty2.spec @@ -0,0 +1,107 @@ +Name: php-Smarty2 +Summary: Template/Presentation Framework for PHP +Version: 2.6.27 +Release: 1%{?dist} + +Source0: http://www.smarty.net/files/Smarty-%{version}.tar.gz +URL: http://www.smarty.net +License: LGPLv2+ +Group: Development/Libraries + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: php-date, php-mbstring, php-pcre, php-spl + + +%description +Although Smarty is known as a "Template Engine", it would be more accurately +described as a "Template/Presentation Framework." That is, it provides the +programmer and template designer with a wealth of tools to automate tasks +commonly dealt with at the presentation layer of an application. I stress the +word Framework because Smarty is not a simple tag-replacing template engine. +Although it can be used for such a simple purpose, its focus is on quick and +painless development and deployment of your application, while maintaining +high-performance, scalability, security and future growth. + + +%prep +%setup -qn Smarty-%{version} +iconv -f iso8859-1 -t utf-8 NEWS > NEWS.conv && mv -f NEWS.conv NEWS +iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog + + +%build +# empty build section, nothing required + + +%install +rm -rf $RPM_BUILD_ROOT + +# install smarty libs +install -d $RPM_BUILD_ROOT%{_datadir}/php/Smarty2 +cp -a libs/* $RPM_BUILD_ROOT%{_datadir}/php/Smarty2/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc BUGS ChangeLog COPYING.lib demo FAQ NEWS QUICK_START README +%doc RELEASE_NOTES TODO +%{_datadir}/php/Smarty2 + + +%changelog +* Sat Sep 29 2012 Remi Collet - 2.6.27-1 +- rename to php-Smarty2 and update to 2.6.27 for remi repo + +* Wed Feb 09 2011 Fedora Release Engineering - 2.6.26-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Oct 11 2009 Christopher Stone 2.6.26-1 +- Upstream sync +- Update %%source0 and %%URL + +* Sun Jul 26 2009 Fedora Release Engineering - 2.6.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon May 25 2009 Christopher Stone 2.6.25-1 +- Upstream sync + +* Thu Feb 26 2009 Fedora Release Engineering - 2.6.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Nov 02 2008 Christopher Stone 2.6.20-2 +- Add security patch (bz #469648) +- Add RHL dist tag conditional for Requires + +* Mon Oct 13 2008 Christopher Stone 2.6.20-1 +- Upstream sync + +* Wed Feb 20 2008 Christopher Stone 2.6.19-1 +- Upstream sync +- Update %%license +- Fix file encoding + +* Sun Apr 29 2007 Christopher Stone 2.6.18-1 +- Upstream sync + +* Wed Feb 21 2007 Christopher Stone 2.6.16-2 +- Minor spec file changes/cleanups + +* Fri Feb 09 2007 Orion Poplawski 2.6.16-1 +- Update to 2.6.16 +- Install in /usr/share/php/Smarty +- Update php version requirement + +* Tue May 16 2006 Orion Poplawski 2.6.13-1 +- Update to 2.6.13 + +* Tue Nov 1 2005 Orion Poplawski 2.6.10-2 +- Fix Source0 URL. + +* Thu Oct 13 2005 Orion Poplawski 2.6.10-1 +- Initial Fedora Extras version -- cgit