diff options
author | Remi Collet <remi@remirepo.net> | 2021-11-04 08:31:59 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-11-04 08:31:59 +0100 |
commit | 7cb3b444e0306eb894b83ed817db134421d7308f (patch) | |
tree | 82924ee3ec3577d2e669226ad35672221da3dbbf | |
parent | 3ad5f4caa77bff7286ec74604e89e254b4006dd2 (diff) |
check version
-rw-r--r-- | php-sabre-event5.spec | 7 |
1 files changed, 7 insertions, 0 deletions
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 |