summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-11-26 07:58:26 +0100
committerRemi Collet <fedora@famillecollet.com>2013-11-26 07:58:26 +0100
commit6c0af04882b78715614b25d920d7ab57d4582246 (patch)
treec0b41e463a960c9765908ac5bb9570b1d6bd6b1a
parentd8b668a7eb9897bf1b89ead04db21fb5f64b4418 (diff)
php-pecl-imagick: 3.2.0RC1 (beta) with devel sub-package, for remi-test
-rw-r--r--php-pecl-imagick.spec39
1 files 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 <remi@fedoraproject.org> - 3.2.0-0.2.RC1
+- Update to 3.2.0RC1 (beta)
+- add devel sub-package
+
* Sat Nov 2 2013 Remi Collet <rpms@famillecollet.com> - 3.1.2-2
- rebuild against new ImageMagick-last version 6.8.7-4
- install doc in pecl doc_dir