[php-ezc-Mail] add requires on all extensions (and drop old pecl requires)

Remi Collet remi at fedoraproject.org
Mon Dec 3 09:55:58 UTC 2012


commit afe39425931603e51806d57cdf49bda84acb0c57
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Dec 3 10:55:51 2012 +0100

    add requires on all extensions (and drop old pecl requires)

 php-ezc-Mail.spec |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/php-ezc-Mail.spec b/php-ezc-Mail.spec
index f90819d..ce33a0a 100644
--- a/php-ezc-Mail.spec
+++ b/php-ezc-Mail.spec
@@ -1,3 +1,4 @@
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
 %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
 
 %global pear_name   Mail
@@ -5,21 +6,27 @@
 
 Name:           php-ezc-Mail
 Version:        1.7.1
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        A component construct and/or parse Mail messages conforming to the mail standard
 
 Group:          Development/Libraries
 License:        BSD
 URL:            http://ezcomponents.org/
 Source0:        http://components.ez.no/get/%{pear_name}-%{version}.tgz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  php-pear >= 1:1.4.9-1.2
 BuildRequires:  php-channel(%{channel})
+
 Requires:       php-common >= 5.2.1
+Requires:       php-date
+Requires:       php-fileinfo
+Requires:       php-hash
+Requires:       php-iconv
 Requires:       php-mcrypt
-Requires:       php-pecl-Fileinfo
+Requires:       php-pcre
+Requires:       php-spl
 Requires:       php-pear(%{channel}/Base) >= 1.8
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
@@ -58,7 +65,7 @@ cd %{pear_name}-%{version}
 %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
 
 # Clean up unnecessary files
-%{__rm} -rf %{buildroot}%{pear_phpdir}/.??*
+%{__rm} -rf %{buildroot}%{pear_metadir}/.??*
 
 # Install XML package description
 %{__mkdir} -p %{buildroot}%{pear_xmldir}
@@ -90,6 +97,9 @@ fi
 
 
 %changelog
+* Mon Dec 03 2012 Remi Collet <remi at fedoraproject.org> - 1.7.1-6
+- add requires on all extensions
+
 * Sun Aug 19 2012 Remi Collet <remi at fedoraproject.org> - 1.7.1-5
 - move data to doc (not used in the code, really doc)
 - doc in /usr/share/doc/pear


More information about the scm-commits mailing list