From dc106d631aad5402251fd1242d1d50d1eb332143 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 12 May 2014 19:27:22 +0200 Subject: php-bartlett-PHP-Reflect: add config file --- php-bartlett-PHP-Reflect-rpm.patch | 50 +++++++++++++++++++++++++++++++++----- php-bartlett-PHP-Reflect.spec | 5 ++-- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/php-bartlett-PHP-Reflect-rpm.patch b/php-bartlett-PHP-Reflect-rpm.patch index 6fa05a5..6c5138b 100644 --- a/php-bartlett-PHP-Reflect-rpm.patch +++ b/php-bartlett-PHP-Reflect-rpm.patch @@ -1,12 +1,15 @@ diff -up php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.rpm php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect ---- php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.rpm 2014-05-12 18:01:23.000000000 +0200 -+++ php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect 2014-05-12 18:20:35.000000000 +0200 -@@ -1,31 +1,26 @@ +--- php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.rpm 2014-04-04 23:06:38.000000000 +0200 ++++ php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect 2014-05-12 19:13:22.826673156 +0200 +@@ -1,31 +1,28 @@ -#!/usr/bin/env php +#!/usr/bin/php register(); diff -up php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php.rpm php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php ---- php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php.rpm 2014-05-12 17:53:12.000000000 +0200 -+++ php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php 2014-05-12 17:56:53.000000000 +0200 +--- php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php.rpm 2014-04-04 23:06:38.000000000 +0200 ++++ php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/tests/bootstrap.php 2014-05-12 19:06:46.462068049 +0200 @@ -1,20 +1,19 @@ useIncludePath(true); $loader->register(); +diff -up php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.json.rpm php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.json +--- php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.json.rpm 2014-05-12 19:21:03.396558078 +0200 ++++ php-reflect-b45be1d0d1b5a46253f9cda894dd7717f0a64abd/bin/reflect.json 2014-05-12 19:21:06.336569232 +0200 +@@ -1,31 +1,5 @@ + { + "source-providers": [ +- { +- "in": "phar:///var/compatinfo/branches/v3/examples/archives/PHP_CompatInfo-2.0.0.zip as CompatInfo", +- "name": "*.php", +- "path": "PHP/" +- }, +- { +- "in": "phar:///var/compatinfo/branches/v3/examples/archives/PHP_Reflect-1.0.0.tar as Reflect", +- "path": "PHP/", +- "name": "*.php" +- }, +- { +- "in": "phar:///var/compatinfo/branches/v3/examples/archives/PHP_Reflect-1.0.0.tar as ReflectAL", +- "path": "PHP/", +- "name": "Autoload.php" +- }, +- { +- "in": "phar:///var/compatinfo/branches/v3/examples/archives/phing-2.6.1.tgz as phing", +- "name": "*.php", +- "path": "tasks/system", +- "notPath": "contrib/", +- "size": "< 4K" +- }, +- { +- "in": "phar:///var/compatinfo/branches/v3/examples/archives/Zend-1.12.3.tgz as ZF1", +- "name": "*.php" +- } + ], + "plugins": [ + { diff --git a/php-bartlett-PHP-Reflect.spec b/php-bartlett-PHP-Reflect.spec index ef56182..3d2141c 100644 --- a/php-bartlett-PHP-Reflect.spec +++ b/php-bartlett-PHP-Reflect.spec @@ -80,8 +80,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/php cp -pr src/Bartlett %{buildroot}%{_datadir}/php/Bartlett -install -D -p -m 755 bin/reflect %{buildroot}%{_bindir}/phpreflect - +install -D -p -m 755 bin/reflect %{buildroot}%{_bindir}/phpreflect +install -D -p -m 644 bin/reflect.json %{buildroot}%{_sysconfdir}/phpreflect.json %check # Version 2.0.0 : OK (128 tests, 128 assertions) @@ -103,6 +103,7 @@ fi %files %defattr(-,root,root,-) %doc LICENSE +%config(noreplace) %{_sysconfdir}/phpreflect.json %{_bindir}/phpreflect %{_datadir}/php/Bartlett -- cgit