[packages/php] make php internal deps based on package basename (php, php52, php54)

glen glen at pld-linux.org
Thu Aug 2 21:48:45 CEST 2012


commit 6ae78f38d9244c89f926d12baf6d2468b3b507c1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 2 22:47:58 2012 +0300

    make php internal deps based on package basename (php, php52, php54)

 php.spec | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/php.spec b/php.spec
index e81fa68..92f988a 100644
--- a/php.spec
+++ b/php.spec
@@ -500,21 +500,21 @@ Requires:	glibc >= 6:2.3.5
 Requires:	php-dirs
 Requires:	rpm-whiteout >= 1.28
 Requires:	tzdata
+Provides:	%{name}(debug) = %{php_debug}
+Provides:	%{name}(modules_api) = %{php_api_version}
+Provides:	%{name}(thread-safety) = %{zend_zts}
+Provides:	%{name}(zend_extension_api) = %{zend_extension_api}
+Provides:	%{name}(zend_module_api) = %{zend_module_api}
+Provides:	%{name}-date
+Provides:	%{name}-ereg
+Provides:	%{name}-reflection
+Provides:	%{name}-standard
 Provides:	php(date)
 Provides:	php(ereg)
 Provides:	php(hash)
 Provides:	php(libxml)
-Provides:	php(modules_api) = %{php_api_version}
 Provides:	php(reflection)
 Provides:	php(standard)
-Provides:	php(zend_extension_api) = %{zend_extension_api}
-Provides:	php(zend_module_api) = %{zend_module_api}
-Provides:	php-date
-Provides:	php-ereg
-Provides:	php-reflection
-Provides:	php-standard
-Provides:	php5(debug) = %{php_debug}
-Provides:	php5(thread-safety) = %{zend_zts}
 %{!?with_mysqlnd:Obsoletes:	php-mysqlnd}
 %{?with_pcre:%requires_ge_to	pcre pcre-devel}
 Obsoletes:	php-pecl-domxml
@@ -693,8 +693,8 @@ URL:		http://www.php.net/manual/en/book.dom.php
 Requires:	%{name}-common = %{epoch}:%{version}-%{release}
 Provides:	php(dom)
 # it has some compatibility functions
+Provides:	%{name}-domxml = %{epoch}:%{version}-%{release}
 Provides:	php(domxml)
-Provides:	php-domxml = %{epoch}:%{version}-%{release}
 Obsoletes:	php-domxml <= 3:4.3.8-1
 
 %description dom


More information about the pld-cvs-commit mailing list