[packages/php/PHP_5_3: 2/2] obsolete old package name in th

glen glen at pld-linux.org
Tue Oct 8 14:25:55 CEST 2013


commit 779d221e626af2f6df351c1d2c9c35820ce34b70
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Oct 8 15:25:26 2013 +0300

    obsolete old package name in th

 php.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index 7a71d7b..99d539b 100644
--- a/php.spec
+++ b/php.spec
@@ -117,9 +117,16 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %if 0%{!?_with_default_php:1}
 %undefine	with_default_php
 %endif
+%else
+# redefine package to obsolete old names
+%define	old_version 4:5.3.27-4
+%define	package(n:l:) \
+%%package %{!?-n:%1}%{?-n:-n %{-n*}} %{-l:-l %{-l*}} \
+Obsoletes: %{!?-n:php-%1}%{?-n:%(echo %{-n*} | sed -e 's,%{php_suffix}$,,')} < %{old_version} \
+%{nil}
 %endif
 
-%define		rel	4
+%define		rel	5
 %define		orgname	php
 %define		ver_suffix 53
 %define		php_suffix %{!?with_default_php:%{ver_suffix}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/779d221e626af2f6df351c1d2c9c35820ce34b70



More information about the pld-cvs-commit mailing list