summaryrefslogtreecommitdiffstats
path: root/php-pecl-mogilefs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-mogilefs.spec')
-rw-r--r--php-pecl-mogilefs.spec18
1 files changed, 2 insertions, 16 deletions
diff --git a/php-pecl-mogilefs.spec b/php-pecl-mogilefs.spec
index 0eccf0f..b81da81 100644
--- a/php-pecl-mogilefs.spec
+++ b/php-pecl-mogilefs.spec
@@ -7,14 +7,9 @@
# Please, preserve the changelog entries
#
%if 0%{?scl:1}
-%if "%{scl}" == "rh-php56"
-%global sub_prefix more-php56-
-%else
%global sub_prefix %{scl_prefix}
+%scl_package php-pecl-mogilefs
%endif
-%endif
-
-%{?scl: %scl_package php-pecl-mogilefs}
# Broken for now
%global with_zts 0
@@ -33,11 +28,9 @@ Version: 0.9.2
Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# https://github.com/lstrojny/pecl-mogilefs/issues/15
License: BSD
-Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libxml2-devel
BuildRequires: neon-devel
BuildRequires: %{?scl_prefix}php-devel > 5.2
@@ -140,8 +133,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -196,7 +187,7 @@ REPORT_EXIT_STATUS=1 \
%endif
-%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
@@ -216,12 +207,7 @@ fi
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc %{pecl_docdir}/%{pecl_name}
#{?_licensedir:%license NTS/LICENSE}