]> git.pld-linux.org Git - packages/php-phpmailer.git/commitdiff
- php autodeps prepare, fill them manually now too
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 12 Jan 2010 14:47:13 +0000 (14:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-phpmailer.spec -> 1.14

php-phpmailer.spec

index 56f71495db4e58d4d60a4ad68d3a8bea6e17c78c..3ef6a553cbb4d716146a9e79c195b866db2cd33b 100644 (file)
@@ -1,5 +1,5 @@
-# TODO:
-# - better requires with proper php modules.
+%define                php_min_version 5.1.0
+%include       /usr/lib/rpm/macros.php
 Summary:       Full featured email transfer class for PHP
 Summary(pl.UTF-8):     W pełni funkcjonalna klasa PHP do przesyłania e-maili
 Name:          php-phpmailer
@@ -9,16 +9,24 @@ License:      LGPL
 Group:         Development/Languages/PHP
 Source0:       http://dl.sourceforge.net/phpmailer/phpMailer_v%{version}.tar.gz
 # Source0-md5: 897f53ab746c48f372364b7745d8d468
+Patch0:                paths.patch
 URL:           http://phpmailer.codeworxtech.com/
-BuildRequires: rpmbuild(macros) >= 1.461
-Requires:      php-common >= 4:5.0
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.520
+Requires:      php-common >= 4:%{php_min_version}
+Requires:      php-pcre
+Suggests:      php-hash
+Suggests:      php-mbstring
+Suggests:      php-openssl
 Obsoletes:     phpmailer
-Patch0:                paths.patch
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _appdir         %{php_data_dir}/phpmailer
 
+# Exclude optional PHP extension dependencies
+%define                _noautoreq      php-hash php-openssl php-mbstring
+
 %description
 PHP email transport class featuring multiple file attachments, SMTP
 servers, CCs, BCCs, HTML messages, and word wrap, and more. It can
This page took 0.073645 seconds and 4 git commands to generate.