From dc7ba069f8d78191921be0b09af4d59937090359 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 17 Feb 2018 10:31:58 +0100 Subject: cleanup --- php-pecl-mogilefs.spec | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'php-pecl-mogilefs.spec') 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} -- cgit