Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61563d1a7f | ||
|
|
d755744b5f | ||
|
|
630ce0185f | ||
|
|
b0e24e1c0f |
2 changed files with 27 additions and 15 deletions
|
|
@ -1,12 +1,12 @@
|
|||
# remirepo/fedora spec file for php-myclabs-php-enum
|
||||
#
|
||||
# Copyright (c) 2017-2018 Remi Collet
|
||||
# Copyright (c) 2017-2019 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
%global gh_commit 550d2334d77f91b0816a5cbd6965272fe20146b8
|
||||
%global gh_commit 45f01adf6922df6082bcda36619deb466e826acf
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner myclabs
|
||||
%global gh_project php-enum
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
%global with_tests 0%{!?_without_tests:1}
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}
|
||||
Version: 1.6.4
|
||||
Version: 1.7.2
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP Enum implementation
|
||||
|
||||
|
|
@ -33,29 +33,26 @@ Source1: makesrc.sh
|
|||
BuildArch: noarch
|
||||
%if %{with_tests}
|
||||
# For tests
|
||||
BuildRequires: php(language) >= 5.4
|
||||
BuildRequires: php(language) >= 7.1
|
||||
BuildRequires: php-reflection
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^4.8.35|^5.7|^6.0",
|
||||
# "squizlabs/php_codesniffer": "1.*"
|
||||
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
|
||||
%global phpunit %{_bindir}/phpunit6
|
||||
%else
|
||||
%global phpunit %{_bindir}/phpunit
|
||||
%endif
|
||||
BuildRequires: %{phpunit}
|
||||
# Required by autoloader
|
||||
BuildRequires: php-composer(fedora/autoloader)
|
||||
%endif
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": ">=5.4"
|
||||
Requires: php(language) >= 5.4
|
||||
# "php": ">=7.1",
|
||||
# "ext-json": "*"
|
||||
Requires: php(language) >= 7.1
|
||||
Requires: php-json
|
||||
# From phpcompatinfo report for version 1.6.1
|
||||
Requires: php-reflection
|
||||
Requires: php-json
|
||||
Requires: php-spl
|
||||
# Required by autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
|
|
@ -93,17 +90,18 @@ cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}
|
|||
%check
|
||||
%if %{with_tests}
|
||||
mkdir vendor
|
||||
cat << 'EOF' | tee vendor/autoload.php
|
||||
cat << 'EOF' | tee tests/autoload.php
|
||||
<?php
|
||||
require '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
|
||||
\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\Tests\\%{ns_project}\\', __DIR__ . '/../tests');
|
||||
require __DIR__ . '/bootstrap.php';
|
||||
EOF
|
||||
|
||||
ret=0
|
||||
for cmd in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72 php73; do
|
||||
for cmd in "php %{phpunit}" php71 php72 php73 php74; do
|
||||
if which $cmd; then
|
||||
set $cmd
|
||||
$1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1
|
||||
$1 ${2:-%{_bindir}/phpunit6} --verbose --bootstrap tests/autoload.php || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -122,6 +120,20 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 20 2019 Remi Collet <remi@remirepo.net> - 1.7.2-1
|
||||
- update to 1.7.2
|
||||
|
||||
* Mon May 6 2019 Remi Collet <remi@remirepo.net> - 1.7.1-1
|
||||
- update to 1.7.1
|
||||
- lower dependency on PHP 7.1
|
||||
|
||||
* Wed Apr 24 2019 Remi Collet <remi@remirepo.net> - 1.7.0-1
|
||||
- update to 1.7.0
|
||||
- raise dependency on PHP 7.2
|
||||
|
||||
* Tue Feb 5 2019 Remi Collet <remi@remirepo.net> - 1.6.6-1
|
||||
- update to 1.6.6
|
||||
|
||||
* Tue Oct 30 2018 Remi Collet <remi@remirepo.net> - 1.6.4-1
|
||||
- update to 1.6.4
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-myclabs-php-enum-1.6.4-550d233.tgz) = a50d144c3ea424b1d28d77b93f61881b1724c51000de1c04ad614d506df2b04813c770983d3f42ec9dbaa7a68fca1399baba518742b57c291c6c193141f1e205
|
||||
SHA512 (php-myclabs-php-enum-1.7.2-45f01ad.tgz) = 3daeea18bca30c1bb1d0acd06a26775b271b06c236e393df23984b0104d151234e5c96ac2344767dfdd0ebb9f7434f1490c700f66c3dae10925cd92ea4512a8b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue