Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Remi Collet
c03c1f9a3f v5.1.4
(cherry picked from commit 86c94812d0)
2021-11-04 08:27:22 +01:00
Remi Collet
c8ea6bfcb9 v5.1.3
(cherry picked from commit 9b414cd786)
2021-11-04 08:05:21 +01:00
3 changed files with 19 additions and 14 deletions

2
.gitignore vendored
View file

@ -2,3 +2,5 @@
/php-sabre-event5-5.1.0-d00a175.tgz
/php-sabre-event5-5.1.1-a37c73e.tgz
/php-sabre-event5-5.1.2-c120bec.tgz
/php-sabre-event5-5.1.3-6d86fd1.tgz
/php-sabre-event5-5.1.4-d7da228.tgz

View file

@ -6,8 +6,11 @@
#
# Please, preserve the changelog entries
#
%bcond_without tests
# Github
%global gh_commit c120bec57c17b6251a496efc82b732418b49d50a
%global gh_commit d7da22897125d34d7eddf7977758191c06a74497
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sabre-io
%global gh_project event
@ -19,12 +22,11 @@
%global ns_project Event
# For RPM
%global major 5
%global with_tests 0%{!?_without_tests:1}
Name: php-%{pk_vendor}-%{pk_project}%{major}
Summary: Lightweight library for event-based programming
Version: 5.1.2
Release: 2%{?dist}
Version: 5.1.4
Release: 1%{?dist}
URL: http://sabre.io/event
License: BSD
@ -32,20 +34,15 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
%if %{with_tests}
%if %{with tests}
BuildRequires: php(language) >= 7.1
BuildRequires: php-spl
# From composer.json, "require-dev": {
# "friendsofphp/php-cs-fixer": "~2.16.1",
# "friendsofphp/php-cs-fixer": "~2.17.1",
# "phpstan/phpstan": "^0.12",
# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0"
%if 0%{?fedora} >= 31 || 0%{?rhel} >= 9
BuildRequires: phpunit9
%global phpunit %{_bindir}/phpunit9
%else
BuildRequires: phpunit8
%global phpunit %{_bindir}/phpunit8
%endif
# Autoloader
BuildRequires: php-composer(fedora/autoloader)
%endif
@ -101,10 +98,10 @@ cp -pr lib %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}
%check
%if %{with_tests}
%if %{with tests}
: Run upstream test suite against installed library
ret=0
for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
for cmdarg in "php %{phpunit}" php73 php74 php80 php81; do
if which $cmdarg; then
set $cmdarg
$1 ${2:-%{_bindir}/phpunit9} \
@ -128,6 +125,12 @@ exit $ret
%changelog
* Thu Nov 4 2021 Remi Collet <remi@remirepo.net> - 5.1.4-1
- update to 5.1.4
* Thu Nov 4 2021 Remi Collet <remi@remirepo.net> - 5.1.3-1
- update to 5.1.3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (php-sabre-event5-5.1.2-c120bec.tgz) = 6fd10a49d961af36ca36c2dc3ea08ea5a4144b82fe19c88d2aab31bc7739b67071aa06ba8782012f40de3b8781e0db17cb769663fe9f7067ca197c38d9ccb757
SHA512 (php-sabre-event5-5.1.4-d7da228.tgz) = 56736c3ca8ce192407a61d2540a683aa7b568d93577fd771f66f3453e62dd19e74c44c41e470ed216ded4b439b95cf00ea6077b206a91528ece9a68c47d82140