From 6eea1a55ad8b67a955293ee5540cf988b0c1e530 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Jan 2019 15:25:33 +0100 Subject: cleanup for EL-8 --- php-pecl-sqlite.spec | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/php-pecl-sqlite.spec b/php-pecl-sqlite.spec index 57a641f..49e8dd0 100644 --- a/php-pecl-sqlite.spec +++ b/php-pecl-sqlite.spec @@ -1,6 +1,6 @@ # spec file for php-pecl-sqlite # -# Copyright (c) 2011-2017 Remi Collet +# Copyright (c) 2011-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -25,7 +25,7 @@ Summary: Extension for the SQLite V2 Embeddable SQL Database Engine Name: %{?scl_prefix}php-pecl-sqlite Version: 2.0.0 -Release: 0.9.svn%{svnver}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 0.10.svn%{svnver}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Group: Development/Languages License: PHP URL: http://pecl.php.net/package/%{pecl_name} @@ -37,8 +37,7 @@ Source0: sqlite-svn%{svnver}.tgz Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: %{?scl_prefix}php-devel +BuildRequires: %{?scl_prefix}php-devel < 7 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-pdo BuildRequires: sqlite2-devel @@ -160,7 +159,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} make install -C NTS INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration @@ -231,11 +229,7 @@ NO_INTERACTION=1 \ %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 @@ -256,7 +250,6 @@ fi %files -%defattr(-,root,root,-) %doc %{pecl_docdir}/%{pecl_name} %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -269,6 +262,9 @@ fi %changelog +* Mon Jan 21 2019 Remi Collet - 2.0.0-0.10.svn332053 +- cleanup for EL-8 + * Tue Mar 8 2016 Remi Collet - 2.0.0-0.9.svn332053 - adapt for F24 - drop runtime dependency on pear, new scriptlets -- cgit