Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fb89a0774 | ||
|
|
7aa0027835 |
3 changed files with 27 additions and 18 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -19,3 +19,5 @@
|
|||
/php-league-flysystem-1.0.38-4ba6e13.tgz
|
||||
/php-league-flysystem-1.0.39-2474325.tgz
|
||||
/php-league-flysystem-1.0.40-3828f0b.tgz
|
||||
/php-league-flysystem-1.0.41-f400aa9.tgz
|
||||
/php-league-flysystem-1.0.42-09eabc5.tgz
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
# remirepo/fedora spec file for php-league-flysystem
|
||||
#
|
||||
# Copyright (c) 2016-2017 Remi Collet
|
||||
# Copyright (c) 2016-2018 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
# Github
|
||||
%global gh_commit 3828f0b24e2c1918bb362d57a53205d6dc8fde61
|
||||
%global gh_commit 09eabc54e199950041aef258a85847676496fe8e
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner thephpleague
|
||||
%global gh_project flysystem
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
%global ns_project Flysystem
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_name}
|
||||
Version: 1.0.40
|
||||
Version: 1.0.42
|
||||
Release: 1%{?dist}
|
||||
Summary: Filesystem abstraction: Many filesystems, one API
|
||||
|
||||
|
|
@ -31,7 +31,8 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
|
|||
Source1: makesrc.sh
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 5.5.9
|
||||
# As we use phpunit 6 and phpspec 4
|
||||
BuildRequires: php(language) >= 7
|
||||
BuildRequires: php-date
|
||||
BuildRequires: php-fileinfo
|
||||
BuildRequires: php-ftp
|
||||
|
|
@ -40,12 +41,10 @@ BuildRequires: php-mbstring
|
|||
BuildRequires: php-pcre
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "~4.8 || ~5.0",
|
||||
# "mockery/mockery": "~0.9",
|
||||
# "phpspec/phpspec": "^2.2"
|
||||
BuildRequires: php-composer(phpunit/phpunit) >= 4.0
|
||||
BuildRequires: php-composer(mockery/mockery) >= 0.9
|
||||
BuildRequires: php-composer(phpspec/phpspec) >= 2.2
|
||||
# "phpspec/phpspec": "^3.4",
|
||||
# "phpunit/phpunit": "^5.7"
|
||||
BuildRequires: php-composer(phpspec/phpspec) >= 3.4
|
||||
BuildRequires: phpunit6
|
||||
# Autoloader
|
||||
BuildRequires: php-composer(fedora/autoloader)
|
||||
|
||||
|
|
@ -101,11 +100,9 @@ cat << 'EOF' | tee vendor/autoload.php
|
|||
// Installed library
|
||||
require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php';
|
||||
|
||||
// Dependency
|
||||
require_once '%{_datadir}/php/Mockery/autoload.php';
|
||||
|
||||
// Test suite
|
||||
\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\Stub\\', dirname(__DIR__).'/stub');
|
||||
require_once dirname(__DIR__) . '/tests/PHPUnitHacks.php';
|
||||
EOF
|
||||
|
||||
: Fix bootstraping
|
||||
|
|
@ -113,17 +110,20 @@ sed -e 's/file="[^"]*"//' -i phpunit.xml
|
|||
echo 'bootstrap: vendor/autoload.php' >>phpspec.yml
|
||||
|
||||
PHPSPECVER=$(%{_bindir}/phpspec --version | sed 's/.* //;s/\..*//')
|
||||
if [ "$PHPSPECVER" -ge 3 ]
|
||||
if [ "$PHPSPECVER" -lt 3 ]
|
||||
then PHPSPEC=/dev/null
|
||||
else PHPSPEC=%{_bindir}/phpspec
|
||||
fi
|
||||
|
||||
# Known to fail test
|
||||
sed -e 's/testPathinfoHandlesUtf8/skipPathinfoHandlesUtf8/' -i tests/UtilTests.php
|
||||
|
||||
ret=0
|
||||
for cmd in php php56 php70 php71 php72; do
|
||||
for cmd in php php70 php71 php72; do
|
||||
if which $cmd; then
|
||||
: Run upstream test suite with PHP 5
|
||||
: Run upstream test suite
|
||||
$cmd $PHPSPEC run || ret=1
|
||||
$cmd %{_bindir}/phpunit --verbose || ret=1
|
||||
$cmd %{_bindir}/phpunit6 --exclude-group integration --no-coverage --verbose || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -138,6 +138,13 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 29 2018 Remi Collet <remi@remirepo.net> - 1.0.42-1
|
||||
- Update to 1.0.42
|
||||
- switch to phpunit 6 and phpspec 4
|
||||
|
||||
* Mon Aug 7 2017 Remi Collet <remi@remirepo.net> - 1.0.41-1
|
||||
- Update to 1.0.41
|
||||
|
||||
* Fri Apr 28 2017 Remi Collet <remi@remirepo.net> - 1.0.40-1
|
||||
- Update to 1.0.40
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-league-flysystem-1.0.40-3828f0b.tgz) = 405b5e99a2ad462b2ea5b7fb3d8086c4bae9643da45b2d46947cd8e5117ac77318dd87ce2a85896ad862039efa8ae713f8669acdf683efe0e3da0702a5d64a22
|
||||
SHA512 (php-league-flysystem-1.0.42-09eabc5.tgz) = 808b68a02a5b8db0506a00cbd8cab98410295fd95c36b0c53c2d5481c3cfc1477f2778f41d0cc388925201e4e6a5c065d20cb3a4fc63c71c08cc7304ec863879
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue