summaryrefslogtreecommitdiffstats
path: root/php-pecl-mailparse.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-17 08:41:00 +0100
committerRemi Collet <remi@remirepo.net>2018-02-17 08:41:00 +0100
commitbb5801d61ed9fa4c3b1229bc759fca23ce208130 (patch)
tree80f85b0b4dd602bfa04f6750d99eee4b12fc33bb /php-pecl-mailparse.spec
parentc431bb85e8269a972b9403bccb6a49a8b2da55a3 (diff)
cleanupphp5
Diffstat (limited to 'php-pecl-mailparse.spec')
-rw-r--r--php-pecl-mailparse.spec12
1 files changed, 2 insertions, 10 deletions
diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec
index 09c6027..a5566dd 100644
--- a/php-pecl-mailparse.spec
+++ b/php-pecl-mailparse.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-mailparse
#
-# Copyright (c) 2008-2017 Remi Collet
+# Copyright (c) 2008-2018 Remi Collet
# Copyright (c) 2004-2007 Matthias Saou
#
# License: MIT
@@ -36,7 +36,6 @@ Name: %{?sub_prefix}php-pecl-mailparse
Version: 2.1.6
Release: 10%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
-Group: Development/Languages
URL: http://pecl.php.net/package/mailparse
Source0: http://pecl.php.net/get/mailparse-%{version}.tgz
@@ -44,7 +43,6 @@ Source0: http://pecl.php.net/get/mailparse-%{version}.tgz
# URL from mailparse.c header
Source1: http://www.php.net/license/2_02.txt
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
# mbstring need for tests
@@ -141,7 +139,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
make -C NTS install INSTALL_ROOT=%{buildroot}
# Drop in the bit of configuration
install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -196,11 +193,7 @@ php -n run-tests.php \
%endif
-%clean
-rm -rf %{buildroot}
-
-
-%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
@@ -221,7 +214,6 @@ fi
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/LICENSE}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml