summaryrefslogtreecommitdiffstats
path: root/php-sabre-event5.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-04 08:31:59 +0100
committerRemi Collet <remi@php.net>2021-11-04 08:31:59 +0100
commit7cb3b444e0306eb894b83ed817db134421d7308f (patch)
tree82924ee3ec3577d2e669226ad35672221da3dbbf /php-sabre-event5.spec
parent3ad5f4caa77bff7286ec74604e89e254b4006dd2 (diff)
check version
Diffstat (limited to 'php-sabre-event5.spec')
-rw-r--r--php-sabre-event5.spec7
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