Compare commits
19 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d202705f63 | ||
|
|
66c65bde75 | ||
|
|
1a96271fc2 | ||
|
|
20b03a7bcb | ||
|
|
0718351991 | ||
|
|
59d3487e61 | ||
|
|
9f064b1f1f | ||
|
|
9c43afb170 | ||
|
|
1f03d825cc | ||
|
|
32e45d3eb3 | ||
|
|
1b2f685532 | ||
|
|
ba769b0fe4 | ||
|
|
2e297a35b7 | ||
|
|
9e9909ae01 | ||
|
|
4f52135ce5 | ||
|
|
40eced1462 | ||
|
|
35fd7de984 | ||
|
|
d4ab3bfe4a | ||
|
|
e3171d450d |
9 changed files with 364 additions and 307 deletions
55
.gitignore
vendored
55
.gitignore
vendored
|
|
@ -1,31 +1,26 @@
|
|||
clog
|
||||
*spec~
|
||||
package-*.xml
|
||||
/PHP_CompatInfo-2.1.0.tgz
|
||||
/PHP_CompatInfo-2.2.1.tgz
|
||||
/PHP_CompatInfo-2.2.2.tgz
|
||||
/PHP_CompatInfo-2.2.3.tgz
|
||||
/PHP_CompatInfo-2.2.4.tgz
|
||||
/PHP_CompatInfo-2.2.5.tgz
|
||||
/PHP_CompatInfo-2.3.0.tgz
|
||||
/PHP_CompatInfo-2.4.0.tgz
|
||||
/PHP_CompatInfo-2.5.0.tgz
|
||||
/PHP_CompatInfo-2.6.0.tgz
|
||||
/PHP_CompatInfo-2.7.0.tgz
|
||||
/PHP_CompatInfo-2.8.0.tgz
|
||||
/PHP_CompatInfo-2.8.1.tgz
|
||||
/PHP_CompatInfo-2.11.0.tgz
|
||||
/PHP_CompatInfo-2.12.1.tgz
|
||||
/PHP_CompatInfo-2.13.0.tgz
|
||||
/PHP_CompatInfo-2.13.2.tgz
|
||||
/PHP_CompatInfo-2.14.0.tgz
|
||||
/PHP_CompatInfo-2.14.1.tgz
|
||||
/PHP_CompatInfo-2.15.0.tgz
|
||||
/PHP_CompatInfo-2.16.0.tgz
|
||||
/PHP_CompatInfo-2.17.0.tgz
|
||||
/PHP_CompatInfo-2.18.0.tgz
|
||||
/PHP_CompatInfo-2.19.0.tgz
|
||||
/PHP_CompatInfo-2.20.0.tgz
|
||||
/PHP_CompatInfo-2.21.0.tgz
|
||||
/PHP_CompatInfo-2.22.0.tgz
|
||||
/PHP_CompatInfo-2.23.1.tgz
|
||||
/php-compat-info-3.2.0.tar.gz
|
||||
/php-compat-info-3.3.0.tar.gz
|
||||
/php-compat-info-3.4.0.tar.gz
|
||||
/php-compat-info-3.5.0.tar.gz
|
||||
/php-compat-info-3.6.0.tar.gz
|
||||
/php-compat-info-3.6.1.tar.gz
|
||||
/php-compat-info-3.7.1.tar.gz
|
||||
/php-compat-info-3.7.2.tar.gz
|
||||
/php-compat-info-3.7.3.tar.gz
|
||||
/php-compat-info-4.2.0-4026f69.tar.gz
|
||||
/php-compat-info-4.3.0-c4bfef8.tar.gz
|
||||
/php-compat-info-4.4.0-92ee634.tar.gz
|
||||
/php-compat-info-4.5.0-31d781a.tar.gz
|
||||
/php-compat-info-4.5.1-e4c5d42.tar.gz
|
||||
/php-compat-info-4.5.2-4fc02f5.tar.gz
|
||||
/php-compat-info-5.0.0-1b65ee3.tar.gz
|
||||
/php-compat-info-5.0.1-300a168.tar.gz
|
||||
/php-compat-info-5.0.2-49d6752.tar.gz
|
||||
/php-compat-info-5.0.3-8e875d5.tar.gz
|
||||
/php-compat-info-5.0.4-8a49d05.tar.gz
|
||||
/php-compat-info-5.0.5-cbd0389.tar.gz
|
||||
/php-compat-info-5.0.6-3878275.tar.gz
|
||||
/php-compat-info-5.0.7-1a615a1.tar.gz
|
||||
/php-compat-info-5.0.8-18913e8.tar.gz
|
||||
/php-compat-info-5.0.9-23db55a.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
--- PHP_CompatInfo-2.19.0/phpcompatinfo.xml.dist 2013-07-11 22:21:27.000000000 +0200
|
||||
+++ PHP_CompatInfo-2.19.0/phpcompatinfo.xml 2013-07-12 08:22:34.529605184 +0200
|
||||
@@ -5,13 +5,14 @@
|
||||
reportFileAppend="false"
|
||||
cacheDriver="file"
|
||||
recursive="false"
|
||||
- fileExtensions="php, inc, phtml"
|
||||
+ fileExtensions="php, inc, phtml, module, install"
|
||||
consoleProgress="true"
|
||||
verbose="false"
|
||||
>
|
||||
|
||||
<cache id="file">
|
||||
<options>
|
||||
+ <save_path>/tmp/phpci-%{USER}</save_path>
|
||||
<gc_probability>1</gc_probability>
|
||||
<gc_maxlifetime>86400</gc_maxlifetime>
|
||||
</options>
|
||||
8
fedora-review-check
Executable file
8
fedora-review-check
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -eq 2 ]
|
||||
then exec /usr/bin/phpcompatinfo analyser:run $2 --output $1 --no-ansi
|
||||
|
||||
else echo "usage $0 logname dirname"
|
||||
exit 1
|
||||
fi
|
||||
13
php-bartlett-PHP-CompatInfo-5.0.0-autoload.php
Normal file
13
php-bartlett-PHP-CompatInfo-5.0.0-autoload.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Autoloader for bartlett/php-compatinfo and its dependencies
|
||||
*/
|
||||
|
||||
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Autoload::addPsr4('Bartlett\\CompatInfo\\', __DIR__);
|
||||
\Fedora\Autoloader\Dependencies::required(array(
|
||||
'/usr/share/php/Bartlett/Reflect/autoload.php',
|
||||
'/usr/share/php/Bartlett/CompatInfoDb/autoload.php',
|
||||
));
|
||||
|
||||
85
php-bartlett-PHP-CompatInfo-5.0.0-rpm.patch
Normal file
85
php-bartlett-PHP-CompatInfo-5.0.0-rpm.patch
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist
|
||||
--- ./bin/phpcompatinfo.json.dist.rpm 2015-12-05 10:11:45.000000000 +0100
|
||||
+++ ./bin/phpcompatinfo.json.dist 2015-12-07 09:08:39.785273332 +0100
|
||||
@@ -6,6 +6,19 @@
|
||||
}
|
||||
],
|
||||
"plugins": [
|
||||
+ {
|
||||
+ "name": "Cache",
|
||||
+ "class": "Bartlett\\Reflect\\Plugin\\CachePlugin",
|
||||
+ "options": {
|
||||
+ "adapter": "DoctrineCacheAdapter",
|
||||
+ "backend": {
|
||||
+ "class": "Doctrine\\Common\\Cache\\FilesystemCache",
|
||||
+ "args": [
|
||||
+ "%{HOME}/.cache/php-reflect"
|
||||
+ ]
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
],
|
||||
"analysers" : [
|
||||
],
|
||||
diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
|
||||
--- ./bin/phpcompatinfo.rpm 2015-12-05 10:11:45.000000000 +0100
|
||||
+++ ./bin/phpcompatinfo 2015-12-07 09:14:17.072783363 +0100
|
||||
@@ -1,52 +1,21 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
$appName = 'phpCompatInfo';
|
||||
+$vendorDir = '/usr/share/php';
|
||||
|
||||
-if (\Phar::running()) {
|
||||
- $vendorDir = 'phar://' . strtolower($appName) . '.phar/vendor';
|
||||
-} else {
|
||||
- $baseDir = dirname(__DIR__);
|
||||
- $vendorDir = $baseDir . '/vendor';
|
||||
-
|
||||
- if (!file_exists($vendorDir . '/autoload.php')) {
|
||||
- $vendorDir = dirname(dirname($baseDir));
|
||||
- }
|
||||
-
|
||||
- if (!getenv("BARTLETTRC")) {
|
||||
- putenv("BARTLETTRC=" . strtolower($appName) . '.json');
|
||||
- }
|
||||
-}
|
||||
-$loader = require_once $vendorDir . '/autoload.php';
|
||||
-$loader->setUseIncludePath(true);
|
||||
-
|
||||
-if (\Phar::running()) {
|
||||
- if ($home) {
|
||||
- // when optional resources are not embedded in phar distribution,
|
||||
- // avoid PHP Warnings, and lookup first in global vendor dir (COMPOSER_HOME) if exists
|
||||
- $classMapfiltered = $fallbackClassMap($loader->getClassMap(), 'Net_Growl');
|
||||
- $loader->addClassMap($classMapfiltered);
|
||||
-
|
||||
- // try to find PEAR Net_Growl classes package in folder $fallbackNetGrowlDir (see phar-stub.php)
|
||||
- $loader->add(false, $fallbackNetGrowlDir);
|
||||
- }
|
||||
+require_once $vendorDir . '/Bartlett/CompatInfo/autoload.php';
|
||||
+if (!getenv("BARTLETTRC")) {
|
||||
+ putenv("BARTLETTRC=" . strtolower($appName) . '.json');
|
||||
}
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
return;
|
||||
}
|
||||
|
||||
-if (\Phar::running()) {
|
||||
- try {
|
||||
- Bartlett\CompatInfoDb\Environment::checkRequirements();
|
||||
- } catch (\RuntimeException $e) {
|
||||
- die ($e->getMessage());
|
||||
- }
|
||||
-}
|
||||
-
|
||||
use Bartlett\Reflect\Environment;
|
||||
use Bartlett\CompatInfo\Console\Application;
|
||||
|
||||
Environment::setScanDir();
|
||||
|
||||
-$application = new Application($appName, '5.0');
|
||||
+$application = new Application($appName, '@package_version@');
|
||||
$application->run();
|
||||
|
||||
48
php-bartlett-PHP-CompatInfo-upstream.patch
Normal file
48
php-bartlett-PHP-CompatInfo-upstream.patch
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
From 392b4889f236326115516c680415cef5c02a5c23 Mon Sep 17 00:00:00 2001
|
||||
From: Laurent Laville <laurent.laville@gmail.com>
|
||||
Date: Tue, 14 Jul 2015 21:00:38 +0200
|
||||
Subject: [PATCH] fixed issue GH-206
|
||||
|
||||
---
|
||||
data/references/Intl1.classes.json | 8 --------
|
||||
data/references/Intl5.classes.json | 8 ++++++++
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/data/references/Intl1.classes.json b/data/references/Intl1.classes.json
|
||||
index 568bf5d..d9abb1c 100644
|
||||
--- a/data/references/Intl1.classes.json
|
||||
+++ b/data/references/Intl1.classes.json
|
||||
@@ -17,14 +17,6 @@
|
||||
},
|
||||
{
|
||||
"ext_name_fk": 32,
|
||||
- "name": "IntlException",
|
||||
- "ext_min": "1.0.0beta",
|
||||
- "ext_max": "",
|
||||
- "php_min": "5.2.0",
|
||||
- "php_max": ""
|
||||
- },
|
||||
- {
|
||||
- "ext_name_fk": 32,
|
||||
"name": "Locale",
|
||||
"ext_min": "1.0.0beta",
|
||||
"ext_max": "",
|
||||
diff --git a/data/references/Intl5.classes.json b/data/references/Intl5.classes.json
|
||||
index 8ad32c5..b5fdfb5 100644
|
||||
--- a/data/references/Intl5.classes.json
|
||||
+++ b/data/references/Intl5.classes.json
|
||||
@@ -70,5 +70,13 @@
|
||||
"ext_max": "",
|
||||
"php_min": "5.5.0",
|
||||
"php_max": ""
|
||||
+ },
|
||||
+ {
|
||||
+ "ext_name_fk": 32,
|
||||
+ "name": "IntlException",
|
||||
+ "ext_min": "5.5.0",
|
||||
+ "ext_max": "",
|
||||
+ "php_min": "5.5.0",
|
||||
+ "php_max": ""
|
||||
}
|
||||
]
|
||||
\ No newline at end of file
|
||||
|
|
@ -1,67 +1,98 @@
|
|||
# spec file for php-bartlett-PHP-CompatInfo
|
||||
# remirepo/fedora spec file for php-bartlett-PHP-CompatInfo
|
||||
#
|
||||
# Copyright (c) 2011-2013 Remi Collet
|
||||
# Copyright (c) 2011-2017 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/3.0/
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
||||
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
||||
%global pear_name PHP_CompatInfo
|
||||
%global channel bartlett.laurent-laville.org
|
||||
|
||||
# TODO : link /usr/share/pear/data/PHP_CompatInfo/misc/jquery-min.js
|
||||
# to system jquery when available, then fix License (BSD only)
|
||||
|
||||
%{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)}
|
||||
%global gh_commit 23db55a1c8f8a078e691bc66524fcb73eabbcb2c
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
#global gh_date 20151005
|
||||
%global gh_owner llaville
|
||||
%global gh_project php-compat-info
|
||||
#global prever RC2
|
||||
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
|
||||
|
||||
Name: php-bartlett-PHP-CompatInfo
|
||||
Version: 2.23.1
|
||||
Release: 1%{?dist}
|
||||
Version: 5.0.9
|
||||
%global specrel 1
|
||||
Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
|
||||
Summary: Find out version and the extensions required for a piece of code to run
|
||||
|
||||
Group: Development/Libraries
|
||||
# PHP-CompatInfo is BSD, bundled jquery is MIT (or GPL)
|
||||
License: BSD and MIT
|
||||
License: BSD
|
||||
URL: http://php5.laurent-laville.org/compatinfo/
|
||||
Source0: http://bartlett.laurent-laville.org/get/%{pear_name}-%{version}%{?prever}.tgz
|
||||
Source1: https://raw.github.com/llaville/php-compat-info/master/misc/phpcompatinfo.1
|
||||
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}%{?prever}-%{gh_short}.tar.gz
|
||||
|
||||
# Update configuration for best experience
|
||||
# Reference = ALL known extension (instead of installed ones)
|
||||
# Make cache / save_path user specific
|
||||
# Add .install .module to fileExtensions (for drupal)
|
||||
Patch0: %{pear_name}-conf.patch
|
||||
# Script for fedora-review
|
||||
Source1: fedora-review-check
|
||||
|
||||
# Autoloader for RPM - die composer !
|
||||
Source2: %{name}-5.0.0-autoload.php
|
||||
|
||||
# Autoload and sqlite database path
|
||||
Patch0: %{name}-5.0.0-rpm.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 5.3.0
|
||||
BuildRequires: php-pear(PEAR) >= 1.9.0
|
||||
BuildRequires: php-channel(%{channel})
|
||||
BuildRequires: php(language) >= 5.4.0
|
||||
%if %{with_tests}
|
||||
# to run test suite
|
||||
BuildRequires: php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
|
||||
BuildRequires: php-pear(%{channel}/PHP_Reflect) >= 1.8.0
|
||||
BuildRequires: %{_bindir}/phpunit
|
||||
BuildRequires: php-pdo_sqlite
|
||||
BuildRequires: php-composer(bartlett/php-reflect) >= 4.0
|
||||
BuildRequires: php-composer(bartlett/php-compatinfo-db) >= 1.15
|
||||
# For our patch / autoloader
|
||||
BuildRequires: php-composer(fedora/autoloader)
|
||||
%endif
|
||||
|
||||
Requires(post): %{__pear}
|
||||
Requires(postun): %{__pear}
|
||||
Requires: php(language) >= 5.3.0
|
||||
Requires: php-date
|
||||
Requires: php-dom
|
||||
# From composer.json, "require"
|
||||
# "php": ">=5.4.0",
|
||||
# "ext-libxml": "*",
|
||||
# "ext-pcre": "*",
|
||||
# "ext-spl": "*",
|
||||
# "ext-json": "*",
|
||||
# "ext-pdo_sqlite": "*",
|
||||
# "symfony/console": "~2.5",
|
||||
# "bartlett/php-reflect": "^4.0",
|
||||
# "bartlett/php-compatinfo-db": "^1.23"
|
||||
Requires: php(language) >= 5.4.0
|
||||
Requires: php-cli
|
||||
Requires: php-json
|
||||
Requires: php-libxml
|
||||
Requires: php-pcre
|
||||
Requires: php-reflection
|
||||
Requires: php-pdo_sqlite
|
||||
Requires: php-spl
|
||||
Requires: php-pear(PEAR) >= 1.9.0
|
||||
Requires: php-pear(%{channel}/PHP_Reflect) >= 1.8.0
|
||||
Requires: php-pear(%{channel}/PHP_Reflect) < 2
|
||||
Requires: php-pear(Console_CommandLine) >= 1.2.0
|
||||
# Optional
|
||||
Requires: php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
|
||||
Requires: php-pear(pear.phpunit.de/PHP_Timer) >= 1.0.0
|
||||
# Optional and not yet availalble php-pear(Net_Growl) >= 2.2.2
|
||||
Requires: php-composer(bartlett/php-reflect) >= 4.0
|
||||
Requires: php-composer(bartlett/php-reflect) < 5
|
||||
Requires: php-composer(bartlett/php-compatinfo-db) >= 1.23
|
||||
Requires: php-composer(bartlett/php-compatinfo-db) < 2
|
||||
Requires: php-composer(symfony/console) >= 2.5
|
||||
Requires: php-composer(symfony/console) < 3
|
||||
# From composer.json, "require-dev": {
|
||||
# "doctrine/cache": "^1.3",
|
||||
# "psr/log": "^1.0",
|
||||
# "monolog/monolog": "^1.10",
|
||||
# "bartlett/monolog-callbackfilterhandler": "^1.0",
|
||||
# "bartlett/monolog-growlhandler": "^1.0",
|
||||
# "bartlett/phpunit-loggertestlistener": "^1.5",
|
||||
# "bartlett/umlwriter": "^1.0"
|
||||
# From composer.json, "suggest"
|
||||
# "doctrine/cache": "Allow caching results, since bartlett/php-reflect 2.2",
|
||||
# "psr/log": "Allow logging events with the LogPlugin",
|
||||
# "monolog/monolog": "Allow logging events with the LogPlugin",
|
||||
# "bartlett/monolog-callbackfilterhandler": "Advanced filtering strategies for Monolog",
|
||||
# "bartlett/monolog-growlhandler": "Sends notifications to Growl for Monolog",
|
||||
# "bartlett/phpunit-loggertestlistener": "Allow logging unit tests to your favorite PSR-3 logger interface",
|
||||
# "bartlett/umlwriter": "Allow writing UML class diagrams (Graphviz or PlantUML)"
|
||||
# "doctrine/cache": "Allow caching results, since bartlett/php-reflect 2.2"
|
||||
# "bartlett/umlwriter": "Allow writing UML class diagrams (Graphviz or PlantUML)"
|
||||
# Required by autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
|
||||
Provides: php-pear(%{channel}/%{pear_name}) = %{version}%{?prever}
|
||||
Provides: phpci = %{version}%{?prever}
|
||||
Provides: phpcompatinfo = %{version}%{?prever}
|
||||
Provides: phpcompatinfo = %{version}
|
||||
Provides: php-composer(bartlett/php-compatinfo) = %{version}
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -70,102 +101,146 @@ 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.
|
||||
|
||||
HTML Documentation: %{pear_docdir}/%{pear_name}/html/index.html
|
||||
Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
%setup -q -n %{gh_project}-%{gh_commit}
|
||||
#setup -q -n %{gh_project}-%{version}
|
||||
|
||||
cd %{pear_name}-%{version}%{?prever}
|
||||
%patch0 -p1 -b .rpm
|
||||
cp %{SOURCE2} src/Bartlett/CompatInfo/autoload.php
|
||||
|
||||
# Copy upstream default configuration
|
||||
cp phpcompatinfo.xml.dist phpcompatinfo.xml
|
||||
# Apply our changes
|
||||
%patch0 -p1 -b .rpm
|
||||
# Cleanup patched files
|
||||
find src -name \*rpm -delete -print
|
||||
|
||||
cp ../package.xml %{name}.xml
|
||||
# Set package version
|
||||
sed -e 's/@package_version@/%{version}%{?prever}/' \
|
||||
-i $(find src -name \*.php) bin/phpcompatinfo
|
||||
|
||||
|
||||
%build
|
||||
cd %{pear_name}-%{version}%{?prever}
|
||||
# Nothing
|
||||
|
||||
|
||||
%install
|
||||
cd %{pear_name}-%{version}%{?prever}
|
||||
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
|
||||
mkdir -p %{buildroot}%{_datadir}/php
|
||||
cp -pr src/Bartlett %{buildroot}%{_datadir}/php/Bartlett
|
||||
|
||||
# Clean up unnecessary files
|
||||
rm -rf %{buildroot}%{pear_metadir}/.??*
|
||||
install -D -p -m 755 bin/phpcompatinfo %{buildroot}%{_bindir}/phpcompatinfo
|
||||
install -D -p -m 644 bin/phpcompatinfo.json.dist %{buildroot}%{_sysconfdir}/phpcompatinfo.json
|
||||
install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/phpcompatinfo.1
|
||||
|
||||
# Install XML package description
|
||||
mkdir -p %{buildroot}%{pear_xmldir}
|
||||
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
|
||||
|
||||
# Create default package configuration
|
||||
install -pm 644 phpcompatinfo.xml %{buildroot}%{pear_cfgdir}/%{pear_name}/
|
||||
|
||||
# Install the man page
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -pm 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/phpcompatinfo.1
|
||||
|
||||
# Keep old phpci command for compatibility (will be remove later)
|
||||
cd %{buildroot}%{_bindir}
|
||||
ln -s phpcompatinfo phpci
|
||||
install -D -p -m 755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/fedora-review-check
|
||||
|
||||
|
||||
%if %{with_tests}
|
||||
%check
|
||||
cd %{pear_name}-%{version}%{?prever}
|
||||
mkdir vendor
|
||||
ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/
|
||||
|
||||
%if 0%{?rhel} == 6
|
||||
# php-5.3.3-CVE-2012-0057.patch add new constants from php 5.3.9
|
||||
# so drop this test which fails with
|
||||
# Constant 'XSL_SECPREF_CREATE_DIRECTORY', found in Reference (5.3.9,), exists.
|
||||
rm -f tests/Reference/XslTest.php
|
||||
%endif
|
||||
|
||||
# OK, but incomplete or skipped tests!
|
||||
# Tests: 810, Assertions: 10996, Skipped: 80, when most extensions installed
|
||||
# Tests: 551, Assertions: 6833, Skipped: 378, in mock
|
||||
# Reference tests need some fixes for EL-5, so ignore result for now
|
||||
%{_bindir}/phpunit \
|
||||
-d date.timezone=UTC \
|
||||
-d memory_limit=-1 \
|
||||
--bootstrap %{buildroot}%{pear_phpdir}/Bartlett/PHP/CompatInfo/Autoload.php \
|
||||
%if 0%{?rhel} < 6 && 0%{?fedora} < 8
|
||||
tests || exit 0
|
||||
%else
|
||||
tests
|
||||
ret=0
|
||||
for cmd in php php56 php70 php71 php72; do
|
||||
if which $cmd; then
|
||||
$cmd %{_bindir}/phpunit --include-path %{buildroot}%{_datadir}/php --verbose || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
%endif
|
||||
|
||||
|
||||
%post
|
||||
%{__pear} install --nodeps --soft --force --register-only \
|
||||
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
||||
%{channel}/%{pear_name} >/dev/null || :
|
||||
if [ -x %{_bindir}/pear ]; then
|
||||
%{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \
|
||||
bartlett.laurent-laville.org/PHP_CompatInfo >/dev/null || :
|
||||
fi
|
||||
|
||||
|
||||
%files
|
||||
%doc %{pear_docdir}/%{pear_name}
|
||||
%dir %{pear_cfgdir}/%{pear_name}
|
||||
# Editable configuration
|
||||
%config(noreplace) %{pear_cfgdir}/%{pear_name}/phpcompatinfo.xml
|
||||
# Default configuration
|
||||
%{pear_cfgdir}/%{pear_name}/phpcompatinfo.xml.dist
|
||||
%{pear_xmldir}/%{name}.xml
|
||||
%{pear_phpdir}/Bartlett/PHP/Compat*
|
||||
%{pear_testdir}/%{pear_name}
|
||||
%{pear_datadir}/%{pear_name}
|
||||
%{_bindir}/phpci
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE
|
||||
%doc composer.json README.*
|
||||
%config(noreplace) %{_sysconfdir}/phpcompatinfo.json
|
||||
%{_bindir}/phpcompatinfo
|
||||
%{_mandir}/man1/phpcompatinfo.*
|
||||
%{_datadir}/php/Bartlett/CompatInfo
|
||||
%{_mandir}/man1/phpcompatinfo.1*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Dec 6 2017 Remi Collet <remi@remirepo.net> - 5.0.9-1
|
||||
- Update to 5.0.9
|
||||
|
||||
* Mon Aug 7 2017 Remi Collet <remi@remirepo.net> - 5.0.8-1
|
||||
- Update to 5.0.8
|
||||
|
||||
* Sat Jun 10 2017 Remi Collet <remi@remirepo.net> - 5.0.7-1
|
||||
- Update to 5.0.7
|
||||
|
||||
* Mon Mar 27 2017 Remi Collet <remi@remirepo.net> - 5.0.6-1
|
||||
- Update to 5.0.6
|
||||
|
||||
* Fri Mar 17 2017 Remi Collet <remi@remirepo.net> - 5.0.5-1
|
||||
- Update to 5.0.5
|
||||
|
||||
* Tue Jan 17 2017 Remi Collet <remi@fedoraproject.org> - 5.0.4-1
|
||||
- update to 5.0.4
|
||||
|
||||
* Wed Jan 11 2017 Remi Collet <remi@fedoraproject.org> - 5.0.3-1
|
||||
- update to 5.0.3
|
||||
|
||||
* Fri Dec 16 2016 Remi Collet <remi@fedoraproject.org> - 5.0.2-1
|
||||
- update to 5.0.2
|
||||
- switch to fedora/autoloader
|
||||
|
||||
* Wed Jul 6 2016 Remi Collet <remi@fedoraproject.org> - 5.0.1-1
|
||||
- update to 5.0.1
|
||||
- display DB version instead of build date
|
||||
|
||||
* Thu Dec 10 2015 Remi Collet <remi@fedoraproject.org> - 5.0.0-1
|
||||
- update to 5.0.0
|
||||
- raise dependency on bartlett/php-reflect ~4.0
|
||||
- raise minimal php version to 5.4
|
||||
- add dependency on bartlett/php-compatinfo-db
|
||||
|
||||
* Wed Nov 25 2015 Remi Collet <remi@fedoraproject.org> - 4.5.2-1
|
||||
- update to 4.5.2
|
||||
|
||||
* Sun Oct 11 2015 Remi Collet <remi@fedoraproject.org> - 4.5.1-1
|
||||
- update to 4.5.1
|
||||
|
||||
* Tue Oct 6 2015 Remi Collet <remi@fedoraproject.org> - 4.5.0-1
|
||||
- update to 4.5.0
|
||||
|
||||
* Mon Jul 20 2015 Remi Collet <remi@fedoraproject.org> - 4.4.0-2
|
||||
- add upstream patch for Intl reference
|
||||
- update to 4.4.0
|
||||
- rewrite autoloader
|
||||
|
||||
* Tue Jun 16 2015 Remi Collet <remi@fedoraproject.org> - 4.3.0-1
|
||||
- update to 4.3.0
|
||||
|
||||
* Tue May 19 2015 Remi Collet <remi@fedoraproject.org> - 4.2.0-1
|
||||
- update to 4.2.0
|
||||
- raise dependency on bartlett/php-reflect 3.1
|
||||
- add dependency on bartlett/umlwriter
|
||||
- add fedora-review-check script
|
||||
- handle --without tests option to skip test suite during build
|
||||
- add dependency on justinrainbow/json-schema
|
||||
- add dependency on sebastian/version
|
||||
- add dependency on seld/jsonlint
|
||||
|
||||
* Fri Dec 13 2013 Remi Collet <remi@fedoraproject.org> - 2.26.0-1
|
||||
- Update to 2.26.0 (stable)
|
||||
|
||||
* Thu Nov 14 2013 Remi Collet <remi@fedoraproject.org> - 2.25.0-1
|
||||
- Update to 2.25.0
|
||||
|
||||
* Fri Oct 18 2013 Remi Collet <remi@fedoraproject.org> - 2.24.0-1
|
||||
- update to 2.24.0
|
||||
- raise dependency, PHP_Reflect 1.9.0
|
||||
|
||||
* Mon Sep 23 2013 Remi Collet <remi@fedoraproject.org> - 2.23.1-1
|
||||
- Update to 2.23.1
|
||||
- raise dependencies: PHP 5.3.0, PHP_Reflect 1.8.0 (and < 2)
|
||||
|
|
|
|||
149
phpcompatinfo.1
149
phpcompatinfo.1
|
|
@ -1,149 +0,0 @@
|
|||
'\" t
|
||||
.\" Title: phpcompatinfo
|
||||
.\" Author: [see the "AUTHORS" section]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
||||
.\" Date: 05/28/2013
|
||||
.\" Manual: \ \&
|
||||
.\" Source: \ \&
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "PHPCOMPATINFO" "1" "05/28/2013" "\ \&" "\ \&"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.\" http://bugs.debian.org/507673
|
||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ie \n(.g .ds Aq \(aq
|
||||
.el .ds Aq '
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * set default formatting
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * MAIN CONTENT STARTS HERE *
|
||||
.\" -----------------------------------------------------------------
|
||||
.SH "NAME"
|
||||
phpcompatinfo \- parse any data source to find out the minimum version and extensions required for it to run
|
||||
.SH "SYNOPSIS"
|
||||
.sp
|
||||
\fBphpcompatinfo\fR [\fIOPTIONS\fR] \fICOMMAND\fR [\fIOPTS\fR] [\fIDATASOURCE\fR]
|
||||
.SH "DESCRIPTION"
|
||||
.sp
|
||||
The phpcompatinfo(1) command parse any \fIDATASOURCE\fR to find out the minimum PHP version and extensions required\&.
|
||||
.SH "OPTIONS"
|
||||
.PP
|
||||
\fB\-\-configuration\fR=\fIXMLFILE\fR
|
||||
.RS 4
|
||||
Read configuration options from
|
||||
\fIXMLFILE\fR\&. All command line options will overrides those that are defined in this xml file\&.
|
||||
.RE
|
||||
.PP
|
||||
\fB\-\-no\-configuration\fR
|
||||
.RS 4
|
||||
Ignore default configuration files:
|
||||
\fIphpcompatinfo\&.xml\fR,
|
||||
\fIphpcompatinfo\&.xml\&.dist\fR\&.
|
||||
.RE
|
||||
.PP
|
||||
\fB\-d, \-\-ini\-set\fR=\fIINI_SET\fR
|
||||
.RS 4
|
||||
Sets a php\&.ini directive value\&. This option may be specified more than once\&.
|
||||
.RE
|
||||
.PP
|
||||
\fB\-v, \-\-verbose\fR
|
||||
.RS 4
|
||||
Verbosely print processing information and warning messages\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
[\fITOPIC\fR] \-h, \-\-help*:: Print help TOPIC\&.
|
||||
\fItopic\fR\fB\-\-help\fR
|
||||
will print help content about a topic,
|
||||
\fB\-\-help\fR
|
||||
summarizes phpcompatinfo syntax\&.
|
||||
.RE
|
||||
.RE
|
||||
.PP
|
||||
\fB\-\-version\fR
|
||||
.RS 4
|
||||
Print program version number\&.
|
||||
.RE
|
||||
.SH "PRINT COMMAND"
|
||||
.sp
|
||||
The phpcompatinfo(1) \fIPRINT\fR command is used to find out minimum php version to run data source code provided\&. Syntax:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
phpcompatinfo print [OPTION] DATA_SOURCE
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
Where:
|
||||
.PP
|
||||
\fBOPTION\fR
|
||||
.RS 4
|
||||
phpcompatinfo(1)
|
||||
\fB\-\-report\fR
|
||||
option specifying the type of result to print on stdout\&. See
|
||||
\fB\-\-help\-report\fR
|
||||
option for valid choices\&.
|
||||
.RE
|
||||
.PP
|
||||
\fBDATA_SOURCE\fR
|
||||
.RS 4
|
||||
The source path to scan\&.
|
||||
.RE
|
||||
.sp
|
||||
The commands perform as follows:
|
||||
.PP
|
||||
\fBprint\fR
|
||||
.RS 4
|
||||
Print report on stdout or into a file if
|
||||
\fB\-\-report\-file\fR
|
||||
option is in effect\&.
|
||||
.RE
|
||||
.SH "EXIT STATUS"
|
||||
.PP
|
||||
\fB0\fR
|
||||
.RS 4
|
||||
Success
|
||||
.RE
|
||||
.PP
|
||||
\fB1\fR
|
||||
.RS 4
|
||||
Failure (syntax or usage error; configuration error; unexpected error)\&.
|
||||
.RE
|
||||
.SH "BUGS"
|
||||
.sp
|
||||
Report any issue at https://github\&.com/llaville/php\-compat\-info/issues
|
||||
.SH "AUTHORS"
|
||||
.sp
|
||||
PHP_CompatInfo was originally written by Davey Shafik in 2004\&.
|
||||
.sp
|
||||
Remi Collet, contributor of many extensions reference and unit tests, joined the project since version 2\&.0\&.0RC2
|
||||
.sp
|
||||
This CLI version was introduced and written by Laurent Laville\&.
|
||||
.SH "SEE ALSO"
|
||||
.sp
|
||||
Main web site: http://php5\&.laurent\-laville\&.org/compatinfo/
|
||||
.SH "COPYRIGHT"
|
||||
.sp
|
||||
Copyright (C) 2010\-2013 Laurent Laville\&.
|
||||
.SH "LICENSE"
|
||||
.sp
|
||||
Free use of this software is granted under the terms of the BSD 3\-clause license\&.
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
7ded2ef550bf99ea703af79dfe0064c4 PHP_CompatInfo-2.23.1.tgz
|
||||
SHA512 (php-compat-info-5.0.9-23db55a.tar.gz) = 143acef028404a49c479ca1bfd3157ceecfdb29c019539bc0183aa361cb861c8220287fd79b832550cfc6a4f0f3bda2a228ba23d03a01baf6603f3c76fe8c6b5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue