summaryrefslogtreecommitdiffstats
path: root/php-pecl-newt.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-newt.spec')
-rw-r--r--php-pecl-newt.spec29
1 files changed, 20 insertions, 9 deletions
diff --git a/php-pecl-newt.spec b/php-pecl-newt.spec
index daf3b58..a90612c 100644
--- a/php-pecl-newt.spec
+++ b/php-pecl-newt.spec
@@ -1,4 +1,4 @@
-# spec file for php-pecl-newt
+# remirepo spec file for php-pecl-newt
#
# Copyright (c) 2013-2015 Remi Collet
# License: CC-BY-SA
@@ -21,8 +21,8 @@
Summary: Extension for Red Hat Newt window library
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.2.8
-Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1
+Version: 1.2.9
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -33,8 +33,6 @@ BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: newt-devel
-Requires(post): %{__pecl}
-Requires(postun): %{__pecl}
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
@@ -78,6 +76,8 @@ scales, etc.
Use of this extension if very similar to the original
Newt API of C programming language.
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
+
%prep
%setup -q -c
@@ -149,13 +149,20 @@ do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
+# when pear installed alone, after us
+%triggerin -- %{?scl_prefix}php-pear
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
-%post
-%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-
+# posttrans as pear can be installed after us
+%posttrans
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
%postun
-if [ $1 -eq 0 ] ; then
+if [ $1 -eq 0 -a -x %{__pecl} ] ; then
%{pecl_uninstall} %{pecl_name} >/dev/null || :
fi
@@ -194,6 +201,10 @@ rm -rf %{buildroot}
%changelog
+* Sun Sep 13 2015 Remi Collet <remi@fedoraproject.org> - 1.2.9-1
+- Update to 1.2.9 (stable)
+- drop runtime dependency on pear, new scriptlets
+
* Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.2.8-4.1
- Fedora 21 SCL mass rebuild