summaryrefslogtreecommitdiffstats
path: root/php-pecl-propro.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-propro.spec')
-rw-r--r--php-pecl-propro.spec18
1 files changed, 2 insertions, 16 deletions
diff --git a/php-pecl-propro.spec b/php-pecl-propro.spec
index fa205c6..7835662 100644
--- a/php-pecl-propro.spec
+++ b/php-pecl-propro.spec
@@ -10,15 +10,10 @@
# Please, preserve the changelog entries
#
%if 0%{?scl:1}
-%if "%{scl}" == "rh-php56"
-%global sub_prefix more-php56-
-%else
%global sub_prefix %{scl_prefix}
-%endif
+%scl_package php-pecl-raphf
%endif
-%{?scl: %scl_package php-pecl-raphf}
-
%global with_zts 0%{?__ztsphp:1}
%global pecl_name propro
%if "%{php_version}" < "5.6"
@@ -33,11 +28,9 @@ Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.0.2
Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
-Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel > 5.3
BuildRequires: %{?scl_prefix}php-pear
@@ -137,8 +130,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -161,7 +152,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24
+%if 0%{?fedora} < 24 && 0%{?rhel} < 8
# when pear installed alone, after us
%triggerin -- %{?scl_prefix}php-pear
if [ -x %{__pecl} ] ; then
@@ -213,12 +204,7 @@ REPORT_EXIT_STATUS=1 \
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/LICENSE}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml