summaryrefslogtreecommitdiffstats
path: root/php-pecl-stats.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-17 10:43:50 +0100
committerRemi Collet <remi@remirepo.net>2018-02-17 10:43:50 +0100
commit570cd9c94ef12ec567c715e72bb3f12958feb0c2 (patch)
tree8cd7bab0a110ec5c2f55aa0a4440c28c1c8246e4 /php-pecl-stats.spec
parent7980c5176c43e11e241043aad2aa2f4f4cab8cd7 (diff)
cleanupphp5
Diffstat (limited to 'php-pecl-stats.spec')
-rw-r--r--php-pecl-stats.spec13
1 files changed, 2 insertions, 11 deletions
diff --git a/php-pecl-stats.spec b/php-pecl-stats.spec
index 30f9d85..5e8b413 100644
--- a/php-pecl-stats.spec
+++ b/php-pecl-stats.spec
@@ -1,6 +1,6 @@
# spec file for php-pecl-stats
#
-# Copyright (c) 2013-2017 Remi Collet
+# Copyright (c) 2013-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -21,11 +21,9 @@ Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 1.0.5
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}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
@@ -123,8 +121,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -147,7 +143,7 @@ done
%{!?_licensedir:install -Dpm 644 LICENSE %{buildroot}%{pecl_docdir}/%{pecl_name}/LICENSE}
-%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
@@ -198,12 +194,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