From 6c0af04882b78715614b25d920d7ab57d4582246 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Nov 2013 07:58:26 +0100 Subject: php-pecl-imagick: 3.2.0RC1 (beta) with devel sub-package, for remi-test --- php-pecl-imagick.spec | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec index 74937eb..e939bde 100644 --- a/php-pecl-imagick.spec +++ b/php-pecl-imagick.spec @@ -1,15 +1,15 @@ %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %global pecl_name imagick -#global prever b2 +%global prever RC1 # We don't really rely on upstream ABI %global imbuildver %(pkg-config --silence-errors --modversion ImageMagick 2>/dev/null || echo 65536) Summary: Extension to create and modify images using ImageMagick Name: php-pecl-imagick -Version: 3.1.2 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Version: 3.2.0 +Release: 0.2.RC1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/imagick @@ -37,16 +37,20 @@ Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}%{?prever} Conflicts: php-pecl-gmagick # Other third party repo stuff +%if "%{php_version}" > "5.4" Obsoletes: php53-pecl-imagick Obsoletes: php53u-pecl-imagick Obsoletes: php54-pecl-imagick +%endif %if "%{php_version}" > "5.5" Obsoletes: php55u-pecl-imagick %endif +%if 0%{?fedora} < 20 # Filter private shared %{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} %{?filter_setup} +%endif %description @@ -54,6 +58,16 @@ Imagick is a native php extension to create and modify images using the ImageMagick API. +%package devel +Summary: %{pecl_name} extension developer files (header) +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: php-devel%{?_isa} + +%description devel +These are the files needed to compile programs using %{pecl_name} extension. + + %prep echo TARGET is %{name}-%{version}-%{release} %setup -q -c @@ -67,9 +81,6 @@ mv %{pecl_name}-%{version}%{?prever} NTS sed -e '/anonymous_pro_minus.ttf/d' \ -e '/015-imagickdrawsetresolution.phpt/d' \ -e '/OFL.txt/d' \ - -e '/INSTALL/d' \ - -e '/d41d8cd98f00b204e9800998ecf8427e/d' \ - -e '/name="tests/s/role="doc"/role="test"/' \ -i package.xml if grep '\.ttf' package.xml @@ -130,9 +141,9 @@ mkdir -p %{buildroot}%{pecl_xmldir} install -pm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml # Test & Documentation -#for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') -#do install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i -#done +for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i +done for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -196,18 +207,24 @@ rm -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc %{pecl_docdir}/%{pecl_name} -#doc %{pecl_testdir}/%{pecl_name} %config(noreplace) %{php_inidir}/%{pecl_name}.ini %config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so %{php_ztsextdir}/%{pecl_name}.so %{pecl_xmldir}/%{name}.xml -# should be in devel + +%files devel +%defattr(-, root, root, 0755) +%doc %{pecl_testdir}/%{pecl_name} %{php_incldir}/ext/%{pecl_name} %{php_ztsincldir}/ext/%{pecl_name} %changelog +* Tue Nov 26 2013 Remi Collet - 3.2.0-0.2.RC1 +- Update to 3.2.0RC1 (beta) +- add devel sub-package + * Sat Nov 2 2013 Remi Collet - 3.1.2-2 - rebuild against new ImageMagick-last version 6.8.7-4 - install doc in pecl doc_dir -- cgit