diff options
Diffstat (limited to 'php-libvirt.spec')
-rw-r--r-- | php-libvirt.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/php-libvirt.spec b/php-libvirt.spec index 49ec6f8..154132f 100644 --- a/php-libvirt.spec +++ b/php-libvirt.spec @@ -36,7 +36,7 @@ Name: %{?sub_prefix}php-libvirt Version: 0.5.5 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP language binding for Libvirt Group: Development/Libraries @@ -45,6 +45,9 @@ License: LGPLv2+ URL: http://libvirt.org/php Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz +Patch0: libvirt-php8.patch + +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: libvirt-devel >= %{req_libvirt_version} @@ -64,7 +67,7 @@ Provides: %{?scl_prefix}php-libvirt = %{version}-%{release} Provides: %{?scl_prefix}php-libvirt%{?_isa} = %{version}-%{release} %endif -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} %if "%{php_version}" > "7.2" Obsoletes: php72u-libvirt <= %{version} Obsoletes: php72w-libvirt <= %{version} @@ -110,6 +113,7 @@ This package contain the document for php-libvirt. %prep %setup -q -n libvirt-php-%{version} +%patch0 -p1 -b .php8 %build @@ -147,7 +151,7 @@ rm %{buildroot}%{php_extdir}/%{extname}.la : simple module load test %{__php} --no-php-ini \ --define extension=%{buildroot}%{php_extdir}/%{extname}.so \ - --modules | grep libvirt + --modules | grep '^libvirt$' %files @@ -162,6 +166,9 @@ rm %{buildroot}%{php_extdir}/%{extname}.la %changelog +* Wed Jan 27 2021 Remi Collet <remi@remirepo.net> - 0.5.5-4 +- add patch for PHP 8 + * Sun Feb 9 2020 Remi Collet <remi@remirepo.net> - 0.5.5-1 - Upgrade to 0.5.5 |