diff options
-rw-r--r-- | php-sabre-xml2.spec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/php-sabre-xml2.spec b/php-sabre-xml2.spec index d3ee460..e9c1252 100644 --- a/php-sabre-xml2.spec +++ b/php-sabre-xml2.spec @@ -127,6 +127,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\Xml\Version::VERSION . "\n"; +exit (Sabre\Xml\Version::VERSION === "%{version}" ? 0 : 1); +' + %if %{with tests} mkdir vendor cat << 'EOF' | tee vendor/autoload.php |