summaryrefslogtreecommitdiffstats
path: root/php-pecl-uopz-php7.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-13 07:51:43 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-13 07:51:43 +0200
commitcab293be55ac8c21551b5fb77a27d9e3e5d861d9 (patch)
tree0f29bd13c00e62ee7f58f6c306e213a0677af816 /php-pecl-uopz-php7.spec
parent16c19a661dbfcc8416f44443b5988a5600cbe460 (diff)
php-pecl-uopz: cleanup for Fedora review
Diffstat (limited to 'php-pecl-uopz-php7.spec')
-rw-r--r--php-pecl-uopz-php7.spec16
1 files changed, 4 insertions, 12 deletions
diff --git a/php-pecl-uopz-php7.spec b/php-pecl-uopz-php7.spec
index e696a60..b6f9d35 100644
--- a/php-pecl-uopz-php7.spec
+++ b/php-pecl-uopz-php7.spec
@@ -1,4 +1,4 @@
-# spec file for php-pecl-uopz
+# remirepo spec file for php-pecl-uopz
#
# Copyright (c) 2014-2016 Remi Collet
# License: CC-BY-SA
@@ -36,8 +36,7 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Patch0: %{pecl_name}-upstream.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: %{?scl_prefix}php-devel > 5.4
+BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -162,8 +161,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -212,7 +209,7 @@ cd NTS
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
-TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php
@@ -226,19 +223,14 @@ cd ../ZTS
: Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \
-TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{_bindir}/zts-php -n run-tests.php
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/LICENSE}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml