Hello community, here is the log from the commit of package lua50 checked in at Fri Nov 17 19:05:08 CET 2006. -------- --- lua50/lua50.changes 2006-11-15 11:06:29.000000000 +0100 +++ /mounts/work_src_done/STABLE/lua50/lua50.changes 2006-11-16 21:38:42.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Nov 16 21:29:32 CET 2006 - mrueckert@suse.de + +- the core package now uses update alternatives to allow installation + of 5.0.x and 5.1.x +- devel packages will conflict now + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua50.spec ++++++ --- /var/tmp/diff_new_pack.1bEQe7/_old 2006-11-17 19:05:01.000000000 +0100 +++ /var/tmp/diff_new_pack.1bEQe7/_new 2006-11-17 19:05:01.000000000 +0100 @@ -11,11 +11,14 @@ # norootforbuild Name: lua50 +Version: 5.0.2 +Release: 11 +%define major_version 5.0 License: X11/MIT Group: System/Libraries Autoreqprov: on -Version: 5.0.2 -Release: 9 +BuildRequires: readline-devel update-alternatives +PreReq: update-alternatives Summary: Small Embeddable Language with Simple Procedural Syntax URL: http://www.lua.org Source: %{name}-%{version}.tar.bz2 @@ -41,6 +44,8 @@ Summary: Development files for lua Group: Development/Libraries/C and C++ Requires: %{name} = %{version} +Conflicts: lua-devel +Conflicts: lua51-devel %description devel Lua is a programming language originally designed for extending @@ -80,21 +85,38 @@ %install make install soinstall INSTALL_ROOT="$RPM_BUILD_ROOT/%{_prefix}" INSTALL_LIB="$RPM_BUILD_ROOT/%{_libdir}" INSTALL_MAN="$RPM_BUILD_ROOT/%{_mandir}/man1" STRIP=true +for file in lua luac ; do + mv "%{buildroot}%{_bindir}/${file}" "%{buildroot}%{_bindir}/${file}%{major_version}" + mv "%{buildroot}%{_mandir}/man1/${file}.1" "%{buildroot}%{_mandir}/man1/${file}%{major_version}.1" +done %clean rm -rf $RPM_BUILD_ROOT +%post +/usr/sbin/update-alternatives --install \ + %{_bindir}/lua lua %{_bindir}/lua%{major_version} 5 \ + --slave %{_bindir}/luac luac %{_bindir}/luac%{major_version} \ + --slave %{_mandir}/man1/lua.1.gz lua.1.gz %{_mandir}/man1/lua%{major_version}.1.gz \ + --slave %{_mandir}/man1/luac.1.gz luac.1.gz %{_mandir}/man1/luac%{major_version}.1.gz + +%preun +if [ "$1" = 0 ] ; then + /usr/sbin/update-alternatives --remove lua %{_bindir}/lua%{major_version} +fi + %files %defattr(-,root,root) -%{_prefix}/bin/lua -%{_prefix}/bin/luac -%{_mandir}/man1/lua.1.gz -%{_mandir}/man1/luac.1.gz %doc COPYRIGHT HISTORY README doc/* +%{_mandir}/man1/lua%{major_version}.1* +%{_mandir}/man1/luac%{major_version}.1* +%{_prefix}/bin/lua%{major_version} +%{_prefix}/bin/luac%{major_version} %files libs %defattr(-,root,root) -%{_libdir}/*.so.* +%{_libdir}/liblua.so.%{major_version} +%{_libdir}/liblualib.so.%{major_version} %files devel %defattr(-,root,root) @@ -107,6 +129,10 @@ %{_libdir}/liblualib.so %changelog -n lua50 +* Thu Nov 16 2006 - mrueckert@suse.de +- the core package now uses update alternatives to allow installation + of 5.0.x and 5.1.x +- devel packages will conflict now * Wed Nov 15 2006 - mjancar@suse.cz - link dynamic libraries properly (#186021) * Tue Nov 14 2006 - mrueckert@suse.de ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de