[projects/template-specs] php: add _noautoreq_pear sample
glen
glen at pld-linux.org
Thu Jun 2 12:00:19 CEST 2016
commit ae6e9c003264cdf29c410cffe2d17fb2d632910f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jun 2 13:00:17 2016 +0300
php: add _noautoreq_pear sample
php-package.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/php-package.spec b/php-package.spec
index 886464a..36bfef2 100644
--- a/php-package.spec
+++ b/php-package.spec
@@ -18,27 +18,19 @@ URL: -
BuildRequires: /usr/bin/php
BuildRequires: rpm-php-pearprov >= 4.4.2-11
%endif
-BuildRequires: rpmbuild(macros) >= 1.461
-# for %%undos macro
-BuildRequires: rpmbuild(macros) >= 1.553
+BuildRequires: rpmbuild(macros) >= 1.654
Requires: php(core) >= %{php_min_version}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# exclude PEAR deps
+%define _noautoreq_pear Excluded.php PEAR/Something.php
+
%define _appdir %{php_data_dir}/%{pkgname}
# _phpdocdir / php_docdir / phpdoc_dir ?
%define _phpdocdir %{_docdir}/phpdoc
-# bad depsolver
-%define _noautopear pear
-
-# exclude optional php dependencies
-%define _noautophp php-curl
-
-# put it together for rpmbuild
-%define _noautoreq %{?_noautophp} %{?_noautopear}
-
%description
...
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/ae6e9c003264cdf29c410cffe2d17fb2d632910f
More information about the pld-cvs-commit
mailing list