[packages/php-pecl-imagick] provide imagick library version built against

glen glen at pld-linux.org
Wed Oct 31 19:08:15 CET 2018


commit 4f00096bcbc016ab592e71005bc00b35b65dc1b7
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Oct 31 19:56:05 2018 +0200

    provide imagick library version built against
    
    example: Provides: php(lib-imagick) = 7.0.8

 php-pecl-imagick.spec | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec
index fd50ab8..22b2c94 100644
--- a/php-pecl-imagick.spec
+++ b/php-pecl-imagick.spec
@@ -5,17 +5,18 @@
 %define		php_name	php%{?php_suffix}
 %define		modname		imagick
 %define		status		stable
+%define		libversion	%(pkg-config --modversion MagickCore || echo ERROR)
 Summary:	%{modname} - PHP wrapper to the Image Magick Library
 Summary(pl.UTF-8):	%{modname} - PHP-owy wrapper do biblioteki Image Magick
 Name:		%{php_name}-pecl-%{modname}
 Version:	3.4.3
-Release:	5
+Release:	6
 License:	PHP 3.01
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	d0ee25c007cd2a28cefccc0b9ee63a28
 Patch0:		skip_version_check.patch
-URL:		http://pecl.php.net/package/imagick/
+URL:		https://pecl.php.net/package/imagick
 BuildRequires:	%{php_name}-devel >= 4:5.3
 BuildRequires:	ImageMagick-devel >= 1:6.2.4.0
 BuildRequires:	pkgconfig
@@ -36,6 +37,7 @@ Suggests:	ImageMagick-coder-jpeg
 Suggests:	ImageMagick-coder-png
 Suggests:	ImageMagick-coder-tiff
 Provides:	php(imagick) = %{version}
+Provides:	php(lib-imagick) = %{libversion}
 Obsoletes:	php-pecl-imagick < 3.1.2-2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-imagick.git/commitdiff/4f00096bcbc016ab592e71005bc00b35b65dc1b7



More information about the pld-cvs-commit mailing list