From 083add2ea20feb65fce59b5aca2908fc74f6fc74 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sep 12 2018 08:21:13 +0000 Subject: v9.3.1 --- diff --git a/.gitignore b/.gitignore index f58ef6c..780845a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ clog /glpi-9.2.3-84b68ef.tar.gz /glpi-9.2.4-dba3285.tar.gz /glpi-9.3.0-d5017d7.tar.gz +/glpi-9.3.1-a9d1277.tar.gz diff --git a/3391f10eacec880aebcd4297bd2658ae13473947.patch b/3391f10eacec880aebcd4297bd2658ae13473947.patch deleted file mode 100644 index 85ab682..0000000 --- a/3391f10eacec880aebcd4297bd2658ae13473947.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 3391f10eacec880aebcd4297bd2658ae13473947 Mon Sep 17 00:00:00 2001 -From: Johan Cwiklinski -Date: Mon, 2 Jul 2018 08:12:32 +0200 -Subject: [PATCH] Cast limits to integer; fixes #4270 - ---- - inc/search.class.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/inc/search.class.php b/inc/search.class.php -index 79c32856bd..b6f684be26 100644 ---- a/inc/search.class.php -+++ b/inc/search.class.php -@@ -890,7 +890,7 @@ static function constructSQL(array &$data) { - $numrows = 0; - //No search : count number of items using a simple count(ID) request and LIMIT search - if ($data['search']['no_search']) { -- $LIMIT = " LIMIT ".$data['search']['start'].", ".$data['search']['list_limit']; -+ $LIMIT = " LIMIT ".(int)$data['search']['start'].", ".(int)$data['search']['list_limit']; - - // Force group by for all the type -> need to count only on table ID - if (!isset($searchopt[1]['forcegroupby'])) { diff --git a/glpi.spec b/glpi.spec index 2a1e68d..0795431 100644 --- a/glpi.spec +++ b/glpi.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # -%global gh_commit d5017d7de5636bfe5a2f13e64c685423723f7f33 +%global gh_commit a9d1277b66cd614c656faf3fd6944456ee316c55 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20160923 %global gh_owner glpi-project @@ -25,11 +25,11 @@ Name: %{gh_project} -%global upstream_version 9.3.0 +%global upstream_version 9.3.1 #global upstream_prever RC2 # use 9.3.0~RC2 < 9.3 (for plugin compatibility check) Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Free IT asset management software Summary(fr): Gestion Libre de Parc Informatique @@ -49,8 +49,6 @@ Source6: %{name}-minify.php # Override PHP configuration for php-fpm Source7: %{name}-user.ini -Patch0: https://github.com/glpi-project/glpi/commit/3391f10eacec880aebcd4297bd2658ae13473947.patch - BuildArch: noarch BuildRequires: gettext BuildRequires: php-cli @@ -147,7 +145,7 @@ Provides: bundled(js-jquery) Provides: bundled(js-gridstack) Provides: bundled(js-leaflet-control-osm-geocoder) Provides: bundled(prism) -Provides: bundled(tiny_mce) = 4.3.13 +Provides: bundled(tiny_mce) = 4.7.13 # Autoloader Requires: php-composer(fedora/autoloader) @@ -187,7 +185,6 @@ techniciens grâce à une maintenance plus cohérente. %prep %setup -q -n %{name}-%{gh_commit} -%patch0 -p1 grep %{upstream_version} inc/define.php @@ -216,7 +213,7 @@ mkdir vendor sed -e "s,##DATADIR##,%{_datadir}," \ %{SOURCE5} > vendor/autoload.php -mv lib/tiny_mce/license.txt LICENSE.tiny_mce +mv lib/tiny_mce/lib/license.txt LICENSE.tiny_mce mv lib/chartist-js-0.10.1/LICENSE-MIT LICENSE.chartist-js mv lib/chartist-plugin-legend-0.6.0/LICENSE LICENSE.chartist-plugin-legend mv lib/chartist-plugin-tooltip-0.0.17/LICENSE LICENSE.chartist-plugin-tooltip @@ -230,10 +227,6 @@ mv lib/leaflet/plugins/leaflet-control-osm-geocoder/LICENSE LICENSE.leaflet-cont rm scripts/glpi_cron_*.sh sed -i -e 's/\r//' LICENSE.tiny_mce -for fic in LISEZMOI.txt -do - iconv -f ISO-8859-15 -t UTF-8 $fic >a && mv a $fic -done cat >cron <%{name}.lang %check %if %{with_tests} -user=$(id -un) -if [ "$user" = "remi" ]; then - # See https://github.com/glpi-project/glpi/issues/4165 - # Strangely fails locally, ok in mock - rm tests/functionnal/Auth.php -fi - RET=0 : Hack for vendor sed -e '/Development dependencies/s:^://:' -i tests/bootstrap.php @@ -376,7 +362,7 @@ cp %{SOURCE12} inc/downstream.php : Run upstream test suite php scripts/cliinstall.php --host=127.0.0.1:3308 --db=glpitest --user=root --tests --force --lang=en_GB || RET=1 -atoum --debug --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage \ +atoum --debug --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 \ -d tests/units || RET=1 atoum --debug --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 \ -d tests/functionnal || RET=1 @@ -469,6 +455,9 @@ fi %changelog +* Wed Sep 12 2018 Remi Collet - 9.3.1-1 +- update to 9.3.1 + * Fri Jul 13 2018 Fedora Release Engineering - 9.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index dfabe04..9b58f5f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (glpi-9.3.0-d5017d7.tar.gz) = 1c5c63685e7180438d60a3fb148a0d52a971a1f262f3edc377038fd9c8e1f1e25c1e844a677940bc1498229fae862c884c38f5f4c1bb24a0f7524edcf693fc79 +SHA512 (glpi-9.3.1-a9d1277.tar.gz) = 1001eb006c3a2c701fd3afb55cc177915518a5e9855e18c100d616fa58d25442bbdeaae52ba9ceb4029e471fee4e3716b361d43195000b3e2223e9b2c9db85da