From 67490e9af56693ab4874ff401489b278107a7585 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 11 Sep 2017 10:43:12 +0200 Subject: v2.1.0 from Fedora --- .gitignore | 8 ++++++++ composer.json | 34 ++++++++++++++++++++++++++++++++++ php-evenement.spec | 52 ++++++++++++++++++++++++++++++---------------------- 3 files changed, 72 insertions(+), 22 deletions(-) create mode 100644 .gitignore create mode 100644 composer.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..88849a8 --- /dev/null +++ b/composer.json @@ -0,0 +1,34 @@ +{ + "name": "evenement/evenement", + "description": "Événement is a very simple event dispatching library for PHP", + "keywords": ["event-dispatcher", "event-emitter"], + "license": "MIT", + "authors": [ + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + } + ], + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0||^5.7||^4.8.35" + }, + "autoload": { + "psr-0": { + "Evenement": "src" + } + }, + "autoload-dev": { + "psr-0": { + "Evenement": "tests" + }, + "files": ["tests/Evenement/Tests/functions.php"] + }, + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + } +} diff --git a/php-evenement.spec b/php-evenement.spec index 10abc6c..1768bbc 100644 --- a/php-evenement.spec +++ b/php-evenement.spec @@ -8,23 +8,25 @@ # Please preserve changelog entries # Name: php-evenement -Version: 2.0.0 -Release: 3%{?dist} +Version: 2.1.0 +Release: 1%{?dist} BuildArch: noarch License: MIT Summary: Événement is a very simple event dispatching library for PHP URL: https://github.com/igorw/evenement Source0: %{url}/archive/v%{version}.tar.gz -# https://github.com/igorw/evenement/pull/33 -Patch0: 0000-Fix-a-test-to-catch-TypeError-instead-of-Exception.patch -BuildRequires: phpunit +BuildRequires: php-composer(phpunit/phpunit) BuildRequires: php-composer(fedora/autoloader) +# phpcompatinfo (computed from version 2.1.0) +# Requires: php(language) >= 5.4.0 # This is for the autoloader Requires: php-composer(fedora/autoloader) +# phpcompatinfo (computed from version 2.1.0) +# Provides: php-composer(evenement/evenement) = %{version} @@ -37,14 +39,14 @@ while staying concise and simple. It is very strongly inspired by the EventEmitter API found in node.js. -Autoloader: %{_datadir}/php/Evenement/autoload.php +Autoloader: %{_datadir}/php/Evenement/autoload.php %prep %setup -q -n evenement-%{version} -%patch0 -p1 +%build : Create autoloader cat <<'AUTOLOAD' | tee src/Evenement/autoload.php - 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 -- cgit