[packages/ZendFramework] disable pear generated deps, use the manually defined ones

glen glen at pld-linux.org
Tue Apr 28 22:27:57 CEST 2015


commit f935b20da37ca83e714c6789e135fe63f4e8183b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 28 23:23:55 2015 +0300

    disable pear generated deps, use the manually defined ones

 ZendFramework.spec | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/ZendFramework.spec b/ZendFramework.spec
index e11d970..bc836fc 100644
--- a/ZendFramework.spec
+++ b/ZendFramework.spec
@@ -1,5 +1,5 @@
-# TODO
-# - drop pear autogenerated deps and fill deps based on official doc:
+# NOTE
+# - dependencies are filled according to official doc:
 #   http://framework.zend.com/manual/1.12/en/requirements.introduction.html
 #
 # Conditional build:
@@ -9,7 +9,6 @@
 # - check Zend/Pdf/FileParser/Image/Jpeg.php and Zend/Pdf/FileParser/Image/Tiff.php
 #   presence in Zend/Pdf/Image.php after update [not implemented in 1.10.2)
 %define		php_min_version 5.2.11
-%include	/usr/lib/rpm/macros.php
 Summary:	Zend Framework
 Summary(pl.UTF-8):	Szkielet Zend
 Name:		ZendFramework
@@ -26,7 +25,6 @@ Patch0:		%{name}-additional-locales.patch
 Patch1:		%{name}-deps.patch
 URL:		http://framework.zend.com/manual/1.12/en/manual.html
 BuildRequires:	/usr/bin/php
-BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.654
 BuildRequires:	sed >= 4.0
 Requires:	php(core) >= %{php_min_version}
@@ -36,20 +34,11 @@ Obsoletes:	ZendFramework-doc
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# bad depsolver
-%define		_noautopear	pear(../application/bootstrap.php)
-
-# bad code
-%define		_bad_deps_1_10 Zend/Pdf/FileParser/Image/Jpeg.php Zend/Pdf/FileParser/Image/Tiff.php
-%define		_bad_deps_1_10_2 Zend/Serializer/Excception.php Zend/Services/DeveloperGarden/Response/Exception.php
-%define		_bad_deps_1_12_1 Zend/Service/Rackspace/Exception.php Zend/Service/Rackspace/Files.php Exception/InvalidArgumentException.php Zend/Loader/Exception/../Exception.php Zend/Service/Console/Command.php Zend/Service/Console/Exception.php Zend/Service/Log/Exception.php Zend/Service/Log/Formatter/Interface.php Zend/Service/Log/Writer/Abstract.php Zend/Service/Management/Exception.php
-%define		_noautoreq_pear %{?_bad_deps_1_10} %{?_bad_deps_1_10_2} %{?_bad_deps_1_12_1}
-
 # exclude optional php dependencies
 %define		_noautophp	php-oci8 php-bitset
 
 # put it together for rpmbuild
-%define		_noautoreq	%{?_noautophp} %{?_noautopear} %{?_noautodeps}
+%define		_noautoreq	%{?_noautophp}
 
 %description
 Zend Framework is a high quality and open source framework for
@@ -1723,8 +1712,7 @@ lint_php
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{php_pear_dir}/bin}
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir},%{php_pear_dir}/bin}
 cp -a demos/Zend/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 # library should be in include_path if used, so we use already defined %{php_pear_dir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ZendFramework.git/commitdiff/f935b20da37ca83e714c6789e135fe63f4e8183b



More information about the pld-cvs-commit mailing list