Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f02e9b8585 | ||
|
|
2823dacabc |
3 changed files with 17 additions and 11 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@
|
|||
/php-league-mime-type-detection-1.5.0-ea2fbfc.tgz
|
||||
/php-league-mime-type-detection-1.5.1-353f66d.tgz
|
||||
/php-league-mime-type-detection-1.7.0-3b9dff8.tgz
|
||||
/php-league-mime-type-detection-1.8.0-b38b25d.tgz
|
||||
/php-league-mime-type-detection-1.9.0-aa70e81.tgz
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
# Please, preserve the changelog entries
|
||||
#
|
||||
# Github
|
||||
%global gh_commit 3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3
|
||||
%global gh_commit aa70e813a6ad3d1558fc927863d47309b4c23e69
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner thephpleague
|
||||
%global gh_project mime-type-detection
|
||||
|
|
@ -19,8 +19,8 @@
|
|||
%global ns_project MimeTypeDetection
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_name}
|
||||
Version: 1.7.0
|
||||
Release: 2%{?dist}
|
||||
Version: 1.9.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Mime-type detection for Flysystem
|
||||
|
||||
License: MIT
|
||||
|
|
@ -37,14 +37,9 @@ BuildRequires: php-json
|
|||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^8.5.8 || ^9.3",
|
||||
# "phpstan/phpstan": "^0.12.68",
|
||||
# "friendsofphp/php-cs-fixer": "^2.18"
|
||||
%if 0%{?fedora} >= 31 || 0%{?rhel} >= 9
|
||||
# "friendsofphp/php-cs-fixer": "^3.2"
|
||||
BuildRequires: phpunit9 >= 9.3
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
%else
|
||||
BuildRequires: phpunit8 >= 8.5.8
|
||||
%global phpunit %{_bindir}/phpunit8
|
||||
%endif
|
||||
# Autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
|
|
@ -95,10 +90,13 @@ cat << 'EOF' | tee vendor/autoload.php
|
|||
require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php';
|
||||
EOF
|
||||
|
||||
# We don't want PHPStan
|
||||
sed -e 's/PHPStan\\Testing\\TestCase/PHPUnit\\Framework\\TestCase/' -i src/OverridingExtensionToMimeTypeMapTest.php
|
||||
|
||||
: Run upstream test suite
|
||||
# the_generated_map_should_be_up_to_date is online
|
||||
ret=0
|
||||
for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
|
||||
for cmdarg in "php %{phpunit}" php74 php80 php81; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 ${2:-%{_bindir}/phpunit9} \
|
||||
|
|
@ -119,6 +117,12 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 22 2021 Remi Collet <remi@remirepo.net> - 1.9.0-1
|
||||
- update to 1.9.0
|
||||
|
||||
* Mon Sep 27 2021 Remi Collet <remi@remirepo.net> - 1.8.0-1
|
||||
- update to 1.8.0
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-league-mime-type-detection-1.7.0-3b9dff8.tgz) = 0fc96b17c531cd2558483e406ed5a4ca4f455668d8b101e2ac5388eb4949ea00e803c003584616e694a6c5f195987eb084d4628b53a9821d2ce7adff8e9fe2aa
|
||||
SHA512 (php-league-mime-type-detection-1.9.0-aa70e81.tgz) = 09e656b74a8378fdb6f3b37685bb4bfa5c6b65048a8716e2e83ada1bb6da20b8947605c03f4c90f984ac7a446e0e5b73ef9bdcd30b728f611d2fe39ccdedbb54
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue