From 7cb3b444e0306eb894b83ed817db134421d7308f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Nov 2021 08:31:59 +0100 Subject: check version --- php-sabre-event5.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/php-sabre-event5.spec b/php-sabre-event5.spec index f3dd375..c28a53f 100644 --- a/php-sabre-event5.spec +++ b/php-sabre-event5.spec @@ -98,6 +98,13 @@ cp -pr lib %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %check +: Check version +php -r ' +require "%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php"; +echo Sabre\Event\Version::VERSION . "\n"; +exit (Sabre\Event\Version::VERSION === "%{version}" ? 0 : 1); +' + %if %{with tests} : Run upstream test suite against installed library ret=0 -- cgit