# remirepo spec file for php-evenement, from: # # Fedora spec file for php-evenement # # License: MIT # http://opensource.org/licenses/MIT # # Please preserve changelog entries # %global github_owner igorw %global github_name evenement %global github_version 3.0.1 %global github_commit 531bfb9d15f8aa57454f5f0285b18bec903b8fb7 %global composer_vendor evenement %global composer_project evenement # "php": ">=7.0" %global php_min_ver 7.0 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} %{!?phpdir: %global phpdir %{_datadir}/php} Name: php-%{composer_project} Epoch: 1 Version: %{github_version} Release: 5%{?github_release}%{?dist} License: MIT Summary: Événement is a very simple event dispatching library for PHP URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz BuildArch: noarch # Tests %if %{with_tests} ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: phpunit9 ## phpcompatinfo (computed from version 3.0.1) ## ## Autoloader BuildRequires: php-composer(fedora/autoloader) %endif # composer.json Requires: php(language) >= %{php_min_ver} # phpcompatinfo (computed from version 3.0.1) # # Autoloader Requires: php-composer(fedora/autoloader) # Standard "php-{COMPOSER_VENDOR}-{COMPOSER_PROJECT}" naming Provides: php-%{composer_vendor}-%{composer_project} = %{epoch}:%{version}-%{release} # Composer Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} %description Événement is a very simple event dispatching library for PHP. It has the same design goals as Silex and Pimple, to empower the user while staying concise and simple. It is very strongly inspired by the EventEmitter API found in node.js. Autoloader: %{_datadir}/php/Evenement/autoload.php %prep %setup -qn %{github_name}-%{github_commit} %build : Create autoloader cat <<'AUTOLOAD' | tee src/Evenement/autoload.php - 1:3.0.1-5 - switch to phpunit9 * Sat Dec 14 2019 Shawn Iwinski - 1:3.0.1-1 - Update to 3.0.1 (RHBZ #1480022) - Use PHPUnit 6 * Sun Sep 10 2017 Shawn Iwinski - 2.1.0-1 - Update to 2.1.0 - Remove now unneeded patch - Test with SCLs if available * Tue Jan 24 2017 Remi Collet - 2.0.0-3 - backport for remi repo * Tue Jan 24 2017 Randy Barlow - 2.0.0-3 - Update the patch to work for PHP 5 and PHP 7. * Tue Jan 17 2017 Shawn Iwinski - 2.0.0-2 - Use php-composer(fedora/autoloader) instead of php-composer(symfony/class-loader) - Install to %%{_datadir}/php/Evenement instead of %%{_datadir}/php/Evenement/Evenement * Sat Jan 14 2017 Randy Barlow - 2.0.0-1 - Initial release.