Compare commits
46 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6841168731 | ||
|
|
f771797359 | ||
|
|
1ac35df697 | ||
|
|
788b91ce6d | ||
|
|
f17278ece3 | ||
|
|
e51304d5a1 | ||
|
|
8274c89783 | ||
|
|
ae67202b89 | ||
|
|
f7faecf066 | ||
|
|
7316e1d9f0 | ||
|
|
0830fa1dd9 | ||
|
|
fd6eabf939 | ||
|
|
b06f7dd0a8 | ||
|
|
818b4b8588 | ||
|
|
7b0aa52c6d | ||
|
|
c7f5b354ac | ||
|
|
87a6fa4f34 | ||
|
|
d59205839e | ||
|
|
37b0b9b8b1 | ||
|
|
2419c59d4e | ||
|
|
21c9aaaac5 | ||
|
|
e918577e9f | ||
|
|
1bc9d0e9a1 | ||
|
|
564879ef1f | ||
|
|
ed90792fc2 | ||
|
|
4da8eb61a8 | ||
|
|
5075642278 | ||
|
|
bc6ccaf7f6 | ||
|
|
43b7315117 | ||
|
|
ae4eb7b265 | ||
|
|
074c086621 | ||
|
|
e1e8d17107 | ||
|
|
66422b4e3a | ||
|
|
caa29e20e4 | ||
|
|
a9a219dc9e | ||
|
|
13cb37357e | ||
|
|
2c685a276c | ||
|
|
8f8a46629c | ||
|
|
76fb3e2584 | ||
|
|
df1867d394 | ||
|
|
5591debf19 | ||
|
|
245fd80bc6 | ||
|
|
c3435b8afb | ||
|
|
48611e0b17 | ||
|
|
177421242b | ||
|
|
fe4fe9aaf0 |
6 changed files with 308 additions and 264 deletions
26
.gitignore
vendored
26
.gitignore
vendored
|
|
@ -39,3 +39,29 @@ clog
|
|||
/php-bartlett-PHP-CompatInfo-5.5.1-3829490.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-5.5.2-547803e.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-5.5.4-e3b0129.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-6.0.1-5978aea.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-6.0.2-4beab5e.tar.gz
|
||||
/php-bartlett-PHP-CompatInfo-6.0.3-7f878c7.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.1.0-e40303a.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.1.1-553a953.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.1.2-df38ea6.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.2.0-dcb0d52.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.3.0-2b7c3f9.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.4.0-3e23268.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.4.1-07bb648.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.4.2-0413526.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.5.2-832e40e.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.5.3-e2bc72e.tgz
|
||||
/php-bartlett-PHP-CompatInfo-6.5.4-d3e9319.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.0.0-7b05300.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.0.1-c944914.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.0.2-cff8a7a.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.1.0-26b0219.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.1.1-d9504f5.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.1.2-072d0f8.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.1.3-7a74bd0.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.1.4-9875282.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.2.3-25777bc.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.2.4-165460c.tgz
|
||||
/php-bartlett-PHP-CompatInfo-7.2.5-56d3215.tgz
|
||||
|
|
|
|||
44
makesrc.sh
Executable file
44
makesrc.sh
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash
|
||||
|
||||
NAME=$(basename $PWD)
|
||||
DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec)
|
||||
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
|
||||
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
|
||||
VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec)
|
||||
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
|
||||
SHORT=${COMMIT:0:7}
|
||||
|
||||
DATE=$(date -d "$DATE -4 days" +%Y-%m-%d)
|
||||
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT\n"
|
||||
|
||||
echo "Cloning..."
|
||||
rm -rf $HOME/.cache/bartlett
|
||||
git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT || exit 1
|
||||
|
||||
cp composer.json ../
|
||||
module load php81
|
||||
composer config platform.php 8.1.99
|
||||
composer install --no-interaction --no-progress --no-dev --optimize-autoloader
|
||||
cp vendor/composer/installed.json ../
|
||||
|
||||
export DATABASE_URL=sqlite:///$PWD/data/compatinfo-db.sqlite
|
||||
mkdir data
|
||||
bin/phpcompatinfo db:create
|
||||
bin/phpcompatinfo db:init
|
||||
bin/phpcompatinfo diag
|
||||
popd
|
||||
|
||||
echo "Archiving..."
|
||||
tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs $PROJECT-$COMMIT
|
||||
|
||||
echo "Cleaning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
rm -rf $HOME/.cache/bartlett
|
||||
|
||||
echo "Done."
|
||||
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
|
||||
--- ./bin/phpcompatinfo.rpm 2021-04-12 09:54:09.000000000 +0200
|
||||
+++ ./bin/phpcompatinfo 2021-04-13 10:41:27.780928446 +0200
|
||||
@@ -8,12 +8,12 @@ if (PHP_SAPI !== 'cli') {
|
||||
|
||||
gc_disable(); // performance boost
|
||||
|
||||
-require_once dirname(__DIR__) . '/config/bootstrap.php';
|
||||
+require_once '/usr/share/php/Bartlett/CompatInfo/config/bootstrap.php';
|
||||
|
||||
use Bartlett\CompatInfo\Console\ApplicationInterface;
|
||||
|
||||
/** @var \Symfony\Component\DependencyInjection\ContainerBuilder $container */
|
||||
-$container = require dirname(__DIR__) . '/config/container.php';
|
||||
+$container = require '/usr/share/php/Bartlett/CompatInfo/config/container.php';
|
||||
|
||||
$app = $container->get(ApplicationInterface::class);
|
||||
$app->setContainer($container);
|
||||
diff -up ./config/bootstrap.php.rpm ./config/bootstrap.php
|
||||
--- ./config/bootstrap.php.rpm 2021-04-12 09:54:09.000000000 +0200
|
||||
+++ ./config/bootstrap.php 2021-04-13 10:41:27.780928446 +0200
|
||||
@@ -6,6 +6,8 @@ if (\Phar::running()) {
|
||||
];
|
||||
} else {
|
||||
$possibleAutoloadPaths = [
|
||||
+ // RPM
|
||||
+ __DIR__ . '/../autoload.php',
|
||||
// local dev repository
|
||||
__DIR__ . '/../vendor/autoload.php',
|
||||
// dependency
|
||||
diff -up ./config/set/default.php.rpm ./config/set/default.php
|
||||
--- ./config/set/default.php.rpm 2021-04-12 09:54:09.000000000 +0200
|
||||
+++ ./config/set/default.php 2021-04-13 10:41:27.780928446 +0200
|
||||
@@ -33,7 +33,7 @@ use function Symfony\Component\Dependenc
|
||||
*/
|
||||
return static function (ContainerConfigurator $containerConfigurator): void
|
||||
{
|
||||
- $containerConfigurator->import(dirname(__DIR__,2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php');
|
||||
+ $containerConfigurator->import('/usr/share/php/Bartlett/CompatInfoDb/config/set/default.php');
|
||||
$containerConfigurator->import(__DIR__ . '/common.php');
|
||||
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
diff -up ./src/Bartlett/CompatInfo/Console/Application.php.rpm ./src/Bartlett/CompatInfo/Console/Application.php
|
||||
--- ./src/Bartlett/CompatInfo/Console/Application.php.rpm 2021-04-12 09:54:09.000000000 +0200
|
||||
+++ ./src/Bartlett/CompatInfo/Console/Application.php 2021-04-13 10:41:27.780928446 +0200
|
||||
@@ -30,8 +30,6 @@ use Symfony\Component\DependencyInjectio
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface ;
|
||||
|
||||
-use PackageVersions\Versions;
|
||||
-
|
||||
use Phar;
|
||||
use function substr_count;
|
||||
|
||||
@@ -78,14 +76,6 @@ class Application extends BaseApplicatio
|
||||
$version = self::VERSION;
|
||||
} elseif (substr_count($version, '.') === 2) {
|
||||
// release is in X.Y.Z format
|
||||
- } else {
|
||||
- // composer or git strategy
|
||||
- $version = Versions::getVersion('bartlett/php-compatinfo');
|
||||
- list($ver, ) = explode('@', $version);
|
||||
-
|
||||
- if (strpos($ver, 'dev') === false) {
|
||||
- $version = $ver;
|
||||
- }
|
||||
}
|
||||
parent::__construct(self::NAME, $version);
|
||||
|
||||
diff -up ./tests/Reference/ParameterTest.php.rpm ./tests/Reference/ParameterTest.php
|
||||
--- ./tests/Reference/ParameterTest.php.rpm 2021-04-12 09:54:09.000000000 +0200
|
||||
+++ ./tests/Reference/ParameterTest.php 2021-04-13 10:41:27.780928446 +0200
|
||||
@@ -42,7 +42,7 @@ final class ParameterTest extends SniffT
|
||||
*/
|
||||
public function functionProvider()
|
||||
{
|
||||
- $container = require __DIR__ . '/../../config/container.php';
|
||||
+ $container = require '@BUILDPATH@/config/container.php';
|
||||
$repository = $container->get(FunctionRepository::class);
|
||||
$functions = [];
|
||||
foreach ($repository->getAll() as $function) {
|
||||
diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php
|
||||
--- ./tests/TestCase.php.rpm 2021-04-13 10:41:27.780928446 +0200
|
||||
+++ ./tests/TestCase.php 2021-04-13 10:43:04.778512016 +0200
|
||||
@@ -46,7 +46,7 @@ abstract class TestCase extends \PHPUnit
|
||||
*/
|
||||
protected function executeAnalysis(string $dataSource): array
|
||||
{
|
||||
- $container = require __DIR__ . '/../config/container.php';
|
||||
+ $container = require '@BUILDPATH@/config/container.php';
|
||||
$references = $container->get(ReferenceCollectionInterface::class);
|
||||
$sniffs = $container->get(SniffCollection::class);
|
||||
|
||||
14
php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
Normal file
14
php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
|
||||
--- ./bin/phpcompatinfo.rpm 2025-05-04 07:31:28.259594805 +0200
|
||||
+++ ./bin/phpcompatinfo 2025-05-04 07:32:09.736421056 +0200
|
||||
@@ -15,6 +15,10 @@ if (PHP_SAPI !== 'cli') {
|
||||
return;
|
||||
}
|
||||
|
||||
+if (!getenv("DATABASE_URL")) {
|
||||
+ putenv("DATABASE_URL=sqlite:///" . dirname(__DIR__) . "/data/compatinfo-db.sqlite");
|
||||
+}
|
||||
+
|
||||
gc_disable(); // performance boost
|
||||
|
||||
require_once dirname(__DIR__) . '/autoload.php';
|
||||
|
|
@ -1,25 +1,21 @@
|
|||
# remirepo/fedora spec file for php-bartlett-PHP-CompatInfo
|
||||
#
|
||||
# Copyright (c) 2011-2021 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
# SPDX-FileCopyrightText: Copyright 2011-2025 Remi Collet
|
||||
# SPDX-License-Identifier: CECILL-2.1
|
||||
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
# For compatibility with SCL
|
||||
%undefine __brp_mangle_shebangs
|
||||
|
||||
%{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)}
|
||||
%global gh_commit 7353738b51e38b0763e2bf154d05c55ad2fdc105
|
||||
%global gh_commit 56d3215bcf8acb2e822fc9ce21fa934cd6129637
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
#global gh_date 20151005
|
||||
%global gh_date 2025-11-23
|
||||
%global gh_owner llaville
|
||||
%global gh_project php-compat-info
|
||||
#global prever RC2
|
||||
%bcond_without tests
|
||||
%global gh_project php-compatinfo
|
||||
|
||||
%global upstream_version 5.5.3
|
||||
%global upstream_version 7.2.5
|
||||
#global upstream_prever RC1
|
||||
|
||||
Name: php-bartlett-PHP-CompatInfo
|
||||
|
|
@ -27,86 +23,34 @@ Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
|
|||
Release: 1%{?dist}
|
||||
Summary: Find out version and the extensions required for a piece of code to run
|
||||
|
||||
License: BSD
|
||||
URL: http://php5.laurent-laville.org/compatinfo/
|
||||
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}%{?prever}-%{gh_short}.tar.gz
|
||||
|
||||
# SPDX: see bundled libraries list below
|
||||
License: BSD-3-Clause and MIT
|
||||
URL: https://github.com/llaville/php-compatinfo
|
||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||
# Script for fedora-review
|
||||
Source1: fedora-review-check
|
||||
# Generate the archive will all dependencies
|
||||
Source9: makesrc.sh
|
||||
|
||||
# Autoload and config path
|
||||
# avoid jean85/pretty-package-versions
|
||||
Patch0: %{name}-5.5.2-rpm.patch
|
||||
# Relocate the database
|
||||
Patch0: %{name}-7.2.3-rpm.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 7.2
|
||||
%if %{with tests}
|
||||
# to run test suite
|
||||
BuildRequires: php-pdo_sqlite
|
||||
BuildRequires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5)
|
||||
BuildRequires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4)
|
||||
BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2)
|
||||
BuildRequires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5)
|
||||
BuildRequires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6)
|
||||
BuildRequires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6)
|
||||
BuildRequires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6)
|
||||
BuildRequires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6)
|
||||
BuildRequires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6)
|
||||
BuildRequires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6)
|
||||
BuildRequires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6)
|
||||
BuildRequires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2)
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
BuildRequires: %{phpunit}
|
||||
# For our patch / autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
%endif
|
||||
BuildRequires: php(language) >= 8.1
|
||||
BuildRequires: php-cli
|
||||
BuildRequires: composer-generators
|
||||
|
||||
# From composer.json, "require"
|
||||
# "php": "^7.2|^8.0",
|
||||
# "ext-libxml": "*",
|
||||
# "ext-pcre": "*",
|
||||
# "ext-spl": "*",
|
||||
# "ext-json": "*",
|
||||
# "ext-pdo": "*",
|
||||
# "ext-pdo_sqlite": "*",
|
||||
# "bartlett/php-reflect": "^4.4",
|
||||
# "bartlett/php-compatinfo-db": "^3.4",
|
||||
# "doctrine/collections": "^1.4",
|
||||
# "composer/package-versions-deprecated": "^1.8",
|
||||
# "psr/log": "^1.0",
|
||||
# "ramsey/uuid": "^3.9|^4.0",
|
||||
# "symfony/config": "^4.4|^5.0",
|
||||
# "symfony/console": "^4.4|^5.0",
|
||||
# "symfony/event-dispatcher": "^4.4|^5.0",
|
||||
# "symfony/finder": "^4.4|^5.0",
|
||||
# "symfony/dependency-injection": "^4.4|^5.0",
|
||||
# "symfony/serializer": "^4.4|^5.0",
|
||||
# "symfony/stopwatch": "^4.4|^5.0"
|
||||
Requires: php(language) >= 7.2
|
||||
Requires: php(language) >= 8.1
|
||||
Requires: php-cli
|
||||
Requires: php-json
|
||||
Requires: php-dom
|
||||
Requires: php-libxml
|
||||
Requires: php-pcre
|
||||
Requires: php-phar
|
||||
Requires: php-pdo
|
||||
Requires: php-pdo_sqlite
|
||||
Requires: php-spl
|
||||
Requires: (php-composer(bartlett/php-reflect) >= 4.4 with php-composer(bartlett/php-reflect) < 5)
|
||||
Requires: (php-composer(bartlett/php-compatinfo-db) >= 3.4 with php-composer(bartlett/php-compatinfo-db) < 4)
|
||||
Requires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2)
|
||||
Requires: (php-composer(ramsey/uuid) >= 4.0 with php-composer(ramsey/uuid) < 5)
|
||||
Requires: (php-composer(symfony/config) >= 4.4 with php-composer(symfony/config) < 6)
|
||||
Requires: (php-composer(symfony/console) >= 4.4 with php-composer(symfony/console) < 6)
|
||||
Requires: (php-composer(symfony/dependency-injection) >= 4.4 with php-composer(symfony/dependency-injection) < 6)
|
||||
Requires: (php-composer(symfony/event-dispatcher) >= 4.4 with php-composer(symfony/event-dispatcher) < 6)
|
||||
Requires: (php-composer(symfony/finder) >= 4.4 with php-composer(symfony/finder) < 6)
|
||||
Requires: (php-composer(symfony/serializer) >= 4.4 with php-composer(symfony/serializer) < 6)
|
||||
Requires: (php-composer(symfony/stopwatch) >= 4.4 with php-composer(symfony/stopwatch) < 6)
|
||||
Requires: (php-composer(doctrine/collections) >= 1.4 with php-composer(doctrine/collections) < 2)
|
||||
# Required by autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
Requires: php-simplexml
|
||||
Requires: php-xmlreader
|
||||
|
||||
Provides: phpcompatinfo = %{version}
|
||||
Provides: php-composer(bartlett/php-compatinfo) = %{version}
|
||||
Provides: phpcompatinfo = %{version}
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -115,63 +59,27 @@ version and extensions required for it to run. CLI version has many reports
|
|||
(extension, interface, class, function, constant) to display and ability to
|
||||
show content of dictionary references.
|
||||
|
||||
Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gh_project}-%{gh_commit}
|
||||
%patch -P0 -p1 -b .rpm
|
||||
rm bin/*rpm
|
||||
|
||||
%patch0 -p1 -b .rpm
|
||||
# https://github.com/llaville/php-compatinfo-db/issues/112
|
||||
sed -e 's/touch/@touch/' -i vendor/bartlett/php-compatinfo-db/config/set/default.php
|
||||
|
||||
phpab \
|
||||
--template fedora \
|
||||
--output src/Bartlett/CompatInfo/autoload.php \
|
||||
src/Bartlett/CompatInfo
|
||||
cat << 'EOF' | tee -a src/Bartlett/CompatInfo/autoload.php
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'%{_datadir}/php/Bartlett/Reflect/autoload.php',
|
||||
'%{_datadir}/php/Bartlett/CompatInfoDb/autoload.php',
|
||||
'%{_datadir}/php/Psr/Log/autoload.php',
|
||||
'%{_datadir}/php/Ramsey/Uuid/autoload.php',
|
||||
[
|
||||
'%{_datadir}/php/Symfony5/Component/Config/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/Config/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/Console/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/Console/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/DependencyInjection/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/DependencyInjection/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/EventDispatcher/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/EventDispatcher/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/Finder/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/Finder/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/Serializer/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/Serializer/autoload.php',
|
||||
], [
|
||||
'%{_datadir}/php/Symfony5/Component/Stopwatch/autoload.php',
|
||||
'%{_datadir}/php/Symfony4/Component/Stopwatch/autoload.php',
|
||||
],
|
||||
'%{_datadir}/php/Doctrine/Common/Collections/autoload.php',
|
||||
]);
|
||||
EOF
|
||||
|
||||
# Cleanup patched files
|
||||
find src -name \*rpm -delete -print
|
||||
|
||||
# fix path in configuration
|
||||
sed -e 's:src/Bartlett/CompatInfo/::' -i config/set/*php
|
||||
mv config src/Bartlett/CompatInfo/config
|
||||
|
||||
# Check package version
|
||||
FILE=src/Bartlett/CompatInfo/Console/Application.php
|
||||
sed -e 's/5.5.1/%{version}/' -i $FILE
|
||||
grep " VERSION" $FILE
|
||||
grep %{version} $FILE
|
||||
: Gather all license files and cleanup tests
|
||||
mv vendor/composer/LICENSE composer_LICENSE
|
||||
for vendor in $(ls vendor)
|
||||
do
|
||||
for proj in $(ls vendor/$vendor)
|
||||
do
|
||||
[ -d vendor/$vendor/$proj/tests ] && rm -r vendor/$vendor/$proj/tests
|
||||
[ -f vendor/$vendor/$proj/LICENSE ] && mv vendor/$vendor/$proj/LICENSE ${vendor}_${proj}_LICENSE
|
||||
done
|
||||
done
|
||||
rm -r vendor/bartlett/*/.github
|
||||
rm -r vendor/bartlett/*/.changes
|
||||
|
||||
|
||||
%build
|
||||
|
|
@ -179,55 +87,200 @@ grep %{version} $FILE
|
|||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_datadir}/php
|
||||
cp -pr src/Bartlett %{buildroot}%{_datadir}/php/Bartlett
|
||||
|
||||
install -D -p -m 755 bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo
|
||||
install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/phpcompatinfo.1
|
||||
|
||||
install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
mkdir config
|
||||
cat << 'EOF' | tee config/bootstrap.php
|
||||
<?php
|
||||
require_once "%{buildroot}%{_datadir}/php/Bartlett/CompatInfo/config/bootstrap.php";
|
||||
\Fedora\Autoloader\Autoload::addPsr4('Bartlett\\Tests\\CompatInfo\\', dirname(__DIR__) . '/tests');
|
||||
EOF
|
||||
|
||||
sed -e 's:@BUILDPATH@:%{buildroot}%{_datadir}/php/Bartlett/CompatInfo:' \
|
||||
-i tests/TestCase.php tests/Sniffs/SniffTestCase.php tests/Reference/ParameterTest.php
|
||||
|
||||
ret=0
|
||||
for cmdarg in "php %{phpunit}" php73 php74 php80; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1
|
||||
fi
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||
for i in bin config data resources src vendor composer.* autoload.php
|
||||
do cp -pr $i %{buildroot}%{_datadir}/%{name}/$i
|
||||
done
|
||||
exit $ret
|
||||
%endif
|
||||
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
ln -s ../share/%{name}/bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
mv %{buildroot}%{_datadir}/%{name}/bin/phpcompatinfo.1 \
|
||||
%{buildroot}%{_mandir}/man1/phpcompatinfo.1
|
||||
|
||||
install -D -p -m 755 %{SOURCE1} \
|
||||
%{buildroot}%{_datadir}/%{name}/fedora-review-check
|
||||
|
||||
|
||||
%post
|
||||
if [ -x %{_bindir}/pear ]; then
|
||||
%{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \
|
||||
bartlett.laurent-laville.org/PHP_CompatInfo >/dev/null || :
|
||||
fi
|
||||
%check
|
||||
%{buildroot}%{_bindir}/phpcompatinfo --version | grep %{version} && exit 0
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc composer.json README.*
|
||||
%license *LICENSE
|
||||
%doc *md
|
||||
%doc docs
|
||||
%doc examples
|
||||
%doc composer.json
|
||||
%doc vendor/composer/installed.json
|
||||
%{_bindir}/phpcompatinfo
|
||||
%{_datadir}/php/Bartlett/CompatInfo
|
||||
%{_mandir}/man1/phpcompatinfo.1*
|
||||
%{_datadir}/%{name}
|
||||
%{_mandir}/man1/phpcompatinfo.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Nov 25 2025 Remi Collet <remi@remirepo.net> - 7.2.5-1
|
||||
- update to 7.2.5
|
||||
- update bundled bartlett/php-compatinfo-db to 6.26.0
|
||||
|
||||
* Thu Oct 9 2025 Remi Collet <remi@remirepo.net> - 7.2.4-1
|
||||
- update to 7.2.4
|
||||
- update bundled bartlett/php-compatinfo-db to 6.24.1
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Mon May 5 2025 Remi Collet <remi@remirepo.net> - 7.2.3-1
|
||||
- update to 7.2.3
|
||||
- re-license spec file to CECILL-2.1
|
||||
- always build with composer-generators
|
||||
- update bundled bartlett/php-compatinfo-db to 6.16.0
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Nov 7 2024 Remi Collet <remi@remirepo.net> - 7.1.4-4
|
||||
- hack for PHP 8.4
|
||||
|
||||
* Thu Nov 7 2024 Remi Collet <remi@remirepo.net> - 7.1.4-3
|
||||
- update bundled bartlett/php-compatinfo-db to 6.12.0
|
||||
- update bundled dependencies
|
||||
- optional support build with composer-generators
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Apr 24 2024 Remi Collet <remi@remirepo.net> - 7.1.4-1
|
||||
- update to 7.1.4
|
||||
- update bundled bartlett/php-compatinfo-db to 6.5.0
|
||||
|
||||
* Tue Mar 19 2024 Remi Collet <remi@remirepo.net> - 7.1.3-1
|
||||
- update to 7.1.3
|
||||
- update bundled bartlett/php-compatinfo-db to 6.4.2
|
||||
|
||||
* Thu Feb 8 2024 Remi Collet <remi@remirepo.net> - 7.1.2-1
|
||||
- update to 7.1.2
|
||||
- update bundled bartlett/php-compatinfo-db to 6.2.1
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jan 18 2024 Remi Collet <remi@remirepo.net> - 7.1.1-1
|
||||
- update to 7.1.1
|
||||
- cleanup installation tree
|
||||
- move docs and examples in package documentation
|
||||
|
||||
* Tue Jan 2 2024 Remi Collet <remi@remirepo.net> - 7.1.0-1
|
||||
- update to 7.1.0
|
||||
|
||||
* Wed Dec 6 2023 Remi Collet <remi@remirepo.net> - 7.0.2-1
|
||||
- update to 7.0.2
|
||||
- update bundled bartlett/php-compatinfo-db to 6.0.0
|
||||
- open https://github.com/llaville/php-compatinfo/issues/365 8.0 compatibility
|
||||
- raise dependency on PHP 8.1
|
||||
|
||||
* Tue Nov 14 2023 Remi Collet <remi@remirepo.net> - 7.0.1-1
|
||||
- update to 7.0.1
|
||||
- update bundled bartlett/php-compatinfo-db to 5.13.0
|
||||
|
||||
* Mon Nov 13 2023 Remi Collet <remi@remirepo.net> - 7.0.0-3
|
||||
- update bundled bartlett/php-compatinfo-db to 5.12.0
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue May 16 2023 Remi Collet <remi@remirepo.net> - 7.0.0-1
|
||||
- update to 7.0.0
|
||||
- raise dependency on PHP 8.0
|
||||
- update bundled bartlett/php-compatinfo-db to 5.5.0
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Jan 10 2023 Remi Collet <remi@remirepo.net> - 6.5.4-2
|
||||
- update bundled bartlett/php-compatinfo-db to 4.11.0
|
||||
|
||||
* Wed Dec 14 2022 Remi Collet <remi@remirepo.net> - 6.5.4-1
|
||||
- update to 6.5.4
|
||||
- update bundled bartlett/php-compatinfo-db to 4.10.0
|
||||
|
||||
* Mon Nov 7 2022 Remi Collet <remi@remirepo.net> - 6.5.3-1
|
||||
- update to 6.5.3
|
||||
- update bundled bartlett/php-compatinfo-db to 4.8.0
|
||||
|
||||
* Tue Oct 25 2022 Remi Collet <remi@remirepo.net> - 6.5.2-1
|
||||
- update to 6.5.2
|
||||
|
||||
* Tue Sep 27 2022 Remi Collet <remi@remirepo.net> - 6.4.2-1
|
||||
- update to 6.4.2
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Apr 20 2022 Remi Collet <remi@remirepo.net> - 6.4.1-2
|
||||
- update bundled bartlett/php-compatinfo-db to 4.2.0
|
||||
|
||||
* Thu Apr 7 2022 Remi Collet <remi@remirepo.net> - 6.4.1-1
|
||||
- update to 6.4.1
|
||||
|
||||
* Wed Apr 6 2022 Remi Collet <remi@remirepo.net> - 6.4.0-1
|
||||
- update to 6.4.0
|
||||
- update bundled bartlett/php-compatinfo-db to 4.2.0
|
||||
|
||||
* Mon Mar 7 2022 Remi Collet <remi@remirepo.net> - 6.3.0-1
|
||||
- update to 6.3.0
|
||||
- update bundled bartlett/php-compatinfo-db to 4.1.0
|
||||
|
||||
* Mon Feb 7 2022 Remi Collet <remi@remirepo.net> - 6.2.0-1
|
||||
- update to 6.2.0
|
||||
- update bundled bartlett/php-compatinfo-db to 4.0.0
|
||||
|
||||
* Fri Jan 28 2022 Remi Collet <remi@remirepo.net> - 6.1.2-1
|
||||
- update to 6.1.2
|
||||
|
||||
* Thu Jan 27 2022 Remi Collet <remi@remirepo.net> - 6.1.1-5
|
||||
- update bundled bartlett/php-compatinfo-db 3.18.0
|
||||
- use better process to create the database, as discussed on
|
||||
https://github.com/llaville/php-compatinfo-db/issues/113
|
||||
- silent touch on read only database, reported as
|
||||
https://github.com/llaville/php-compatinfo-db/issues/112
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Jan 18 2022 Remi Collet <remi@remirepo.net> - 6.1.1-1
|
||||
- update to 6.1.1
|
||||
- update bundled bartlett/php-compatinfo-db 3.17.1
|
||||
|
||||
* Thu Jan 6 2022 Remi Collet <remi@remirepo.net> - 6.1.0-1
|
||||
- update to 6.1.0
|
||||
|
||||
* Wed Jan 5 2022 Remi Collet <remi@remirepo.net> - 6.0.3-1
|
||||
- update to 6.0.3
|
||||
- use all PHP bundled libraries instead of system ones
|
||||
|
||||
* Mon Jan 3 2022 Remi Collet <remi@remirepo.net> - 6.0.2-1
|
||||
- update to 6.0.2
|
||||
- open https://github.com/llaville/php-compatinfo/issues/316
|
||||
regression, compatibility with Symfony 4
|
||||
|
||||
* Mon Dec 13 2021 Remi Collet <remi@remirepo.net> - 6.0.1-1
|
||||
- update to 6.0.1
|
||||
- raise dependency on PHP 7.4
|
||||
- drop dependency on bartlett/php-reflect
|
||||
- add dependency on nikic/php-parser
|
||||
|
||||
* Fri Dec 10 2021 Remi Collet <remi@remirepo.net> - 5.5.4-1
|
||||
- update to 5.5.4
|
||||
- raise dependency on bartlett/php-compatinfo-db 3.6
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon May 3 2021 Remi Collet <remi@remirepo.net> - 5.5.3-1
|
||||
- update to 5.5.3
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-bartlett-PHP-CompatInfo-5.5.3-7353738.tar.gz) = ae0d12353505763a55594d98a9856a277f4badd5f654a031c156f3da45f81de7b05920d076f7d3ebcd396050514d57a8ed3655ebe79a54558af81e6c28a91973
|
||||
SHA512 (php-bartlett-PHP-CompatInfo-7.2.5-56d3215.tgz) = 51b2715fccc20ab6fafadf9f9e0d60cc8103f2d435e0133f6020b05d7449761042dd4be30d2a0b141664d6e4193692cc9800b35ccc25d4144b03bae603ec26fe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue