summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json8
-rw-r--r--php-sebastian-diff8.spec39
2 files changed, 25 insertions, 22 deletions
diff --git a/composer.json b/composer.json
index 124d8ed..b437d8a 100644
--- a/composer.json
+++ b/composer.json
@@ -21,16 +21,16 @@
"prefer-stable": true,
"config": {
"platform": {
- "php": "8.3.0"
+ "php": "8.4.1"
},
"optimize-autoloader": true,
"sort-packages": true
},
"require": {
- "php": ">=8.3"
+ "php": ">=8.4"
},
"require-dev": {
- "phpunit/phpunit": "^12.0",
+ "phpunit/phpunit": "^13.0",
"symfony/process": "^7.2"
},
"autoload": {
@@ -45,7 +45,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "7.0-dev"
+ "dev-main": "8.0-dev"
}
}
}
diff --git a/php-sebastian-diff8.spec b/php-sebastian-diff8.spec
index 86f8754..b949e85 100644
--- a/php-sebastian-diff8.spec
+++ b/php-sebastian-diff8.spec
@@ -1,19 +1,19 @@
# remirepo/fedora spec file for php-sebastian-diff7
#
-# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2013-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-%bcond_without tests
+%bcond_with tests
-%global gh_commit 7ab1ea946c012266ca32390913653d844ecd085f
+%global gh_commit a2b6d09d7729ee87d605a439469f9dcc39be5ea3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project diff
-%global gh_date 2025-02-07
+%global gh_date 2026-02-06
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
@@ -21,12 +21,12 @@
%global ns_vendor SebastianBergmann
%global ns_project Diff
-%global major 7
+%global major 8
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 7.0.0
-Release: 3%{?dist}
+Version: 8.0.0
+Release: 1%{?dist}
Summary: Diff implementation, version %{major}
License: BSD-3-Clause
@@ -34,25 +34,23 @@ URL: https://github.com/%{gh_owner}/%{gh_project}
# run makesrc.sh to create a git snapshot with test suite
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
-# php-symfony4 going to disapear, php-symfony5 not available, only used for tests
-%global symfony_version 7.2.0
+# php-symfony7 not available, only used for tests
+%global symfony_version 7.3.11
Source2: https://github.com/symfony/process/archive/v%{symfony_version}/php-symfony-process-%{symfony_version}.tar.gz
-Patch0: https://github.com/sebastianbergmann/diff/commit/98c299d8486b460efd667d0d64f1a32dd588971d.patch
-
BuildArch: noarch
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
-BuildRequires: php(language) >= 8.3
+BuildRequires: php(language) >= 8.4.1
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^12.0",
+# "phpunit/phpunit": "^13.0",
# "symfony/process": "^7.2"
-BuildRequires: phpunit12
+BuildRequires: phpunit13
%endif
# from composer.json
-# "php": ">=8.3"
-Requires: php(language) >= 8.3
+# "php": ">=8.4.1"
+Requires: php(language) >= 8.4.1
# from phpcompatinfo report for version 5.0.0
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -70,7 +68,6 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit} -a 2
-%patch -P0 -p1
%build
@@ -90,7 +87,7 @@ mkdir vendor
: Run upstream test suite
ret=0
-for cmd in php php83 php84; do
+for cmd in php php84 php85; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
%{_bindir}/phpunit12 --bootstrap vendor/autoload.php || ret=1
@@ -111,6 +108,12 @@ exit $ret
%changelog
+* Fri Feb 6 2026 Remi Collet <remi@remirepo.net> - 8.0.0-1
+- update to 8.0.0
+- raise dependency on PHP 8.4
+- rename to php-sebastian-diff8
+- move to /usr/share/php/SebastianBergmann/Diff8
+
* Thu Jun 26 2025 Remi Collet <remi@remirepo.net> - 7.0.0-3
- add upstream patch for test suite with phpunit 12.2