Hello community, here is the log from the commit of package php5-smarty3 for openSUSE:Factory checked in at 2015-03-27 09:40:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php5-smarty3 (Old) and /work/SRC/openSUSE:Factory/.php5-smarty3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php5-smarty3" Changes: -------- --- /work/SRC/openSUSE:Factory/php5-smarty3/php5-smarty3.changes 2015-02-13 08:35:05.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.php5-smarty3.new/php5-smarty3.changes 2015-03-27 09:40:47.000000000 +0100 @@ -1,0 +2,13 @@ +Wed Mar 25 15:50:58 UTC 2015 - [email protected] + +- Use update-alternatives to create symlinks to %phpdir/Smarty +- Adjust spec to match php5-smarty2 +- Added -doc sub package + +------------------------------------------------------------------- +Thu Feb 19 07:52:39 UTC 2015 - [email protected] + +- Moved into Smarty3 directory +- Changed provides sections not to conflict with Smarty2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php5-smarty3.spec ++++++ --- /var/tmp/diff_new_pack.1rVunX/_old 2015-03-27 09:40:47.000000000 +0100 +++ /var/tmp/diff_new_pack.1rVunX/_new 2015-03-27 09:40:47.000000000 +0100 @@ -19,25 +19,32 @@ Name: php5-smarty3 Version: 3.1.21 Release: 0 -License: LGPL-3.0+ Summary: Template/Presentation Framework for PHP +License: LGPL-3.0+ Group: Productivity/Networking/Web/Servers Url: http://www.smarty.net Source0: http://www.smarty.net/files/Smarty-%{version}.tar.gz BuildArch: noarch BuildRequires: php >= 5.2 BuildRoot: %{_tmppath}/%{name}-%{version}-build + Requires: php >= 5.2 +Requires(post): update-alternatives +Requires(postun): update-alternatives +# When a version is requried explicitly +Provides: Smarty3 = %{version} +Provides: php-Smarty3 = %{version} +Provides: php-smarty3 = %{version} +Provides: php5-Smarty3 = %{version} + +# When any Smarty fulfills the requirements Provides: Smarty = %{version} -Provides: smarty = %{version} Provides: php-Smarty = %{version} Provides: php-smarty = %{version} Provides: php5-Smarty = %{version} Provides: php5-smarty = %{version} -Obsoletes: php5-smarty < %{version} - %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 @@ -48,23 +55,57 @@ painless development and deployment of your application, while maintaining high-performance, scalability, security and future growth. +%package doc +Summary: Docs for Smarty +Group: Productivity/Networking/Web/Servers + +%description doc +Documentation for Smarty. +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 -# install smarty libs -install -d %{buildroot}%{_datadir}/php5/Smarty -cp -a libs/* %{buildroot}%{_datadir}/php5/Smarty/ +install -d %{buildroot}%{_datadir}/php5/Smarty3 +cp -a libs/* %{buildroot}%{_datadir}/php5/Smarty3/ + +# create a dummy target for /etc/alternatives/Smarty +install -d %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/Smarty +ln -sf %{_sysconfdir}/alternatives/Smarty %{buildroot}%{_datadir}/php5/Smarty + +%post +%{_sbindir}/update-alternatives --install %{_datadir}/php5/Smarty Smarty %{_datadir}/php5/Smarty3 3 + +%postun +if [ "$1" = 0 ]; then + %{_sbindir}/update-alternatives --remove Smarty %{_datadir}/php5/Smarty3 +fi %files %defattr(-,root,root,-) -%doc change_log.txt COPYING.lib demo README -%doc SMARTY_2_BC_NOTES.txt SMARTY_3.0_BC_NOTES.txt SMARTY_3.1_NOTES.txt +%doc COPYING.lib +%dir %{_datadir}/php5/Smarty3 +%{_datadir}/php5/Smarty3/* +# update-alternatives +%ghost %{_sysconfdir}/alternatives/Smarty %{_datadir}/php5/Smarty +%files doc +%defattr(-,root,root,-) +%doc change_log.txt demo/ README +%doc SMARTY_2_BC_NOTES.txt SMARTY_3.0_BC_NOTES.txt SMARTY_3.1_NOTES.txt + %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
