summaryrefslogtreecommitdiffstats
path: root/glpi.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-12 16:38:38 +0200
committerRemi Collet <remi@remirepo.net>2018-06-12 16:38:38 +0200
commit38ff4e5917fe067f5eb3ee2066b54cd8c6a0045c (patch)
treeff33aa2327e8ace2024c87e108b2461d990de6ac /glpi.spec
parenta11b43c7a5aac215f3cae1aa1efc97f44ce57b2f (diff)
update to 9.3-RC2
drop dependency on jasig/phpcas raise dependency on phpmailer/phpmailer 6.0 raise dependency on zendframework 2.8 allow sebastian/diff 2.0 and 3.0 add dependency on monolog/monolog
Diffstat (limited to 'glpi.spec')
-rw-r--r--glpi.spec87
1 files changed, 52 insertions, 35 deletions
diff --git a/glpi.spec b/glpi.spec
index 67c09f5..4947ec6 100644
--- a/glpi.spec
+++ b/glpi.spec
@@ -7,12 +7,11 @@
# Please, preserve the changelog entries
#
-%global gh_commit 84b68efa767f66f5d4bf90de8851751f9e8b8aeb
+%global gh_commit 222fd2dc5d8a301bd4b691f760200ce10ae8e34f
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
#global gh_date 20160923
%global gh_owner glpi-project
%global gh_project glpi
-#global prever RC2
%if 0%{?rhel} == 6
%global useselinux 1
@@ -31,8 +30,9 @@
%global with_httpd 0
%endif
# remirepo:4
-%if 0%{?fedora} < 19 && 0%{?rhel} < 7
+%if 0%{?fedora} < 19 && 0%{?rhel} < 8
# MySQL need another bootstrap method
+# GLPI requires MySQL >= 5.6 or MariaDB >= 10
%global with_tests 0%{?_with_tests:1}
%else
%global with_tests 0%{!?_without_tests:1}
@@ -40,15 +40,18 @@
%endif
Name: %{gh_project}
-Version: 9.2.3
-Release: 2%{?dist}
+%global upstream_version 9.3
+%global upstream_prever RC2
+# use 9.3.0~RC2 < 9.3 (for plugin compatibility check)
+Version: %{upstream_version}.0%{?upstream_prever:~%{upstream_prever}}
+Release: 1%{?dist}
Summary: Free IT asset management software
Summary(fr): Gestion Libre de Parc Informatique
License: GPLv2+ and GPLv3+ and MIT
URL: http://www.glpi-project.org/
# Upstream sources (not the github auto-generated archive)
-Source0: https://github.com/%{gh_owner}/%{name}/archive/%{gh_commit}/%{name}-%{version}%{?prever}-%{gh_short}.tar.gz
+Source0: https://github.com/%{gh_owner}/%{name}/archive/%{gh_commit}/%{name}-%{upstream_version}%{?upstream_prever:-%{upstream_prever}}-%{gh_short}.tar.gz
Source1: %{name}-httpd.conf
Source2: %{name}-9.2-config_path.php
@@ -65,7 +68,7 @@ BuildArch: noarch
BuildRequires: gettext
BuildRequires: php-cli
%if %{with_tests}
-BuildRequires: mariadb-server
+BuildRequires: mariadb-server >= 10
# Missing in mariadb
BuildRequires: hostname
BuildRequires: php-mysqli
@@ -74,30 +77,28 @@ BuildRequires: php-xmlrpc
BuildRequires: php-htmLawed
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(jasig/phpcas) >= 1.3 with php-composer(jasig/phpcas) < 2)
BuildRequires: (php-composer(iamcal/lib_autolink) >= 1.7 with php-composer(iamcal/lib_autolink) < 2)
-BuildRequires: (php-composer(phpmailer/phpmailer) >= 5.2 with php-composer(phpmailer/phpmailer) < 6)
+BuildRequires: (php-composer(phpmailer/phpmailer) >= 6.0 with php-composer(phpmailer/phpmailer) < 7)
BuildRequires: (php-composer(sabre/vobject) >= 4.1 with php-composer(sabre/vobject) < 5)
BuildRequires: (php-composer(simplepie/simplepie) >= 1.5 with php-composer(simplepie/simplepie) < 2)
BuildRequires: (php-composer(tecnickcom/tcpdf) >= 6.2.16 with php-composer(tecnickcom/tcpdf) < 7)
-BuildRequires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 2)
-BuildRequires: (php-autoloader(zendframework/zend-cache) >= 2.7 with php-autoloader(zendframework/zend-cache) < 3)
-BuildRequires: (php-autoloader(zendframework/zend-i18n) >= 2.7 with php-autoloader(zendframework/zend-i18n) < 3)
-BuildRequires: (php-autoloader(zendframework/zend-serializer) >= 2.7 with php-autoloader(zendframework/zend-serializer) < 3)
+BuildRequires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 4)
+BuildRequires: (php-autoloader(zendframework/zend-cache) >= 2.8 with php-autoloader(zendframework/zend-cache) < 3)
+BuildRequires: (php-autoloader(zendframework/zend-i18n) >= 2.8 with php-autoloader(zendframework/zend-i18n) < 3)
+BuildRequires: (php-autoloader(zendframework/zend-serializer) >= 2.8 with php-autoloader(zendframework/zend-serializer) < 3)
BuildRequires: (php-composer(michelf/php-markdown) >= 1.6 with php-composer(michelf/php-markdown) < 2)
BuildRequires: (php-composer(true/punycode) >= 2.1 with php-composer(true/punycode) < 3)
BuildRequires: (php-composer(paragonie/random_compat) >= 2.0 with php-composer(paragonie/random_compat) < 3)
+BuildRequires: (php-composer(monolog/monolog) >= 1.23 with php-composer(monolog/monolog) < 2)
# requires-dev
BuildRequires: (php-composer(guzzlehttp/guzzle) >= 6 with php-composer(guzzlehttp/guzzle) < 7)
BuildRequires: (php-composer(atoum/atoum) >= 3.3 with php-composer(atoum/atoum) < 4)
# remirepo:33
%else
-BuildRequires: php-composer(jasig/phpcas) < 2
-BuildRequires: php-composer(jasig/phpcas) >= 1.3
BuildRequires: php-composer(iamcal/lib_autolink) < 2
BuildRequires: php-composer(iamcal/lib_autolink) >= 1.7
-BuildRequires: php-composer(phpmailer/phpmailer) < 6
-BuildRequires: php-composer(phpmailer/phpmailer) >= 5.2
+BuildRequires: php-composer(phpmailer/phpmailer) < 7
+BuildRequires: php-composer(phpmailer/phpmailer) >= 6.0
BuildRequires: php-composer(sabre/vobject) < 5
BuildRequires: php-composer(sabre/vobject) >= 4.1
BuildRequires: php-composer(simplepie/simplepie) < 2
@@ -107,17 +108,19 @@ BuildRequires: php-composer(tecnickcom/tcpdf) >= 6.2.16
# Because 3 versions exists TODO: use range dependency
BuildRequires: php-phpunit-diff >= 1.4
BuildRequires: php-composer(zendframework/zend-cache) < 3
-BuildRequires: php-composer(zendframework/zend-cache) >= 2.7
+BuildRequires: php-composer(zendframework/zend-cache) >= 2.8
BuildRequires: php-composer(zendframework/zend-i18n) < 3
-BuildRequires: php-composer(zendframework/zend-i18n) >= 2.7
+BuildRequires: php-composer(zendframework/zend-i18n) >= 2.8
BuildRequires: php-composer(zendframework/zend-serializer) < 3
-BuildRequires: php-composer(zendframework/zend-serializer) >= 2.7
+BuildRequires: php-composer(zendframework/zend-serializer) >= 2.8
BuildRequires: php-composer(michelf/php-markdown) < 2
BuildRequires: php-composer(michelf/php-markdown) >= 1.6
BuildRequires: php-composer(true/punycode) < 3
BuildRequires: php-composer(true/punycode) >= 2.1
BuildRequires: php-composer(paragonie/random_compat) < 3
BuildRequires: php-composer(paragonie/random_compat) >= 2.0
+BuildRequires: php-composer(monolog/monolog) < 2
+BuildRequires: php-composer(monolog/monolog) >= 1.23
# requires-dev
BuildRequires: php-composer(guzzlehttp/guzzle) < 7
BuildRequires: php-composer(guzzlehttp/guzzle) >= 6
@@ -175,27 +178,25 @@ Requires: php-zlib
Requires: php-htmLawed
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(jasig/phpcas) >= 1.3 with php-composer(jasig/phpcas) < 2)
Requires: (php-composer(iamcal/lib_autolink) >= 1.7 with php-composer(iamcal/lib_autolink) < 2)
-Requires: (php-composer(phpmailer/phpmailer) >= 5.2 with php-composer(phpmailer/phpmailer) < 6)
+Requires: (php-composer(phpmailer/phpmailer) >= 6.0 with php-composer(phpmailer/phpmailer) < 7)
Requires: (php-composer(sabre/vobject) >= 4.1 with php-composer(sabre/vobject) < 5)
Requires: (php-composer(simplepie/simplepie) >= 1.5 with php-composer(simplepie/simplepie) < 2)
Requires: (php-composer(tecnickcom/tcpdf) >= 6.2.16 with php-composer(tecnickcom/tcpdf) < 7)
-Requires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 2)
-Requires: (php-autoloader(zendframework/zend-cache) >= 2.7 with php-autoloader(zendframework/zend-cache) < 3)
-Requires: (php-autoloader(zendframework/zend-i18n) >= 2.7 with php-autoloader(zendframework/zend-i18n) < 3)
-Requires: (php-autoloader(zendframework/zend-serializer) >= 2.7 with php-autoloader(zendframework/zend-serializer) < 3)
+Requires: (php-composer(sebastian/diff) >= 1.4 with php-composer(sebastian/diff) < 4)
+Requires: (php-autoloader(zendframework/zend-cache) >= 2.8 with php-autoloader(zendframework/zend-cache) < 3)
+Requires: (php-autoloader(zendframework/zend-i18n) >= 2.8 with php-autoloader(zendframework/zend-i18n) < 3)
+Requires: (php-autoloader(zendframework/zend-serializer) >= 2.8 with php-autoloader(zendframework/zend-serializer) < 3)
Requires: (php-composer(michelf/php-markdown) >= 1.6 with php-composer(michelf/php-markdown) < 2)
Requires: (php-composer(true/punycode) >= 2.1 with php-composer(true/punycode) < 3)
Requires: (php-composer(paragonie/random_compat) >= 2.0 with php-composer(paragonie/random_compat) < 3)
+Requires: (php-composer(monolog/monolog) >= 1.23 with php-composer(monolog/monolog) < 2)
# remirepo:28
%else
-Requires: php-composer(jasig/phpcas) < 2
-Requires: php-composer(jasig/phpcas) >= 1.3
Requires: php-composer(iamcal/lib_autolink) < 2
Requires: php-composer(iamcal/lib_autolink) >= 1.7
-Requires: php-composer(phpmailer/phpmailer) < 6
-Requires: php-composer(phpmailer/phpmailer) >= 5.2
+Requires: php-composer(phpmailer/phpmailer) < 7
+Requires: php-composer(phpmailer/phpmailer) >= 6.0
Requires: php-composer(sabre/vobject) < 5
Requires: php-composer(sabre/vobject) >= 4.1
Requires: php-composer(simplepie/simplepie) < 2
@@ -204,11 +205,11 @@ Requires: php-composer(tecnickcom/tcpdf) < 7
Requires: php-composer(tecnickcom/tcpdf) >= 6.2.16
Requires: php-phpunit-diff >= 1.4
Requires: php-composer(zendframework/zend-cache) < 3
-Requires: php-composer(zendframework/zend-cache) >= 2.7
+Requires: php-composer(zendframework/zend-cache) >= 2.8
Requires: php-composer(zendframework/zend-i18n) < 3
-Requires: php-composer(zendframework/zend-i18n) >= 2.7
+Requires: php-composer(zendframework/zend-i18n) >= 2.8
Requires: php-composer(zendframework/zend-serializer) < 3
-Requires: php-composer(zendframework/zend-serializer) >= 2.7
+Requires: php-composer(zendframework/zend-serializer) >= 2.8
Requires: php-composer(zendframework/zend-loader)
Requires: php-composer(michelf/php-markdown) < 2
Requires: php-composer(michelf/php-markdown) >= 1.6
@@ -216,6 +217,8 @@ Requires: php-composer(true/punycode) < 3
Requires: php-composer(true/punycode) >= 2.1
Requires: php-composer(paragonie/random_compat) < 3
Requires: php-composer(paragonie/random_compat) >= 2.0
+Requires: php-composer(monolog/monolog) < 2
+Requires: php-composer(monolog/monolog) >= 1.23
%endif
Requires: gnu-free-sans-fonts
%if 0%{?fedora} || 0%{?rhel} >= 8
@@ -228,6 +231,8 @@ Provides: bundled(js-chartist-plugin-legend) = 0.6.0
Provides: bundled(js-chartist-plugin-tooltip) = 0.0.17
Provides: bundled(js-fuzzy)
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
# Autoloader
@@ -270,7 +275,7 @@ techniciens grâce à une maintenance plus cohérente.
%prep
%setup -q -n %{name}-%{gh_commit}
-grep %{version} inc/define.php
+grep %{upstream_version} inc/define.php
find . -name \*.orig -exec rm {} \; -print
@@ -301,11 +306,12 @@ mv lib/tiny_mce/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
-mv lib/jqueryplugins/select2/LICENSE LICENSE.jqueryplugins.select2
+mv lib/gridstack/LICENSE LICENSE.gridstack
mv lib/jqueryplugins/spectrum-colorpicker/LICENSE LICENSE.jqueryplugins.spectrum-colorpicker
mv lib/jqueryplugins/fullcalendar/LICENSE.txt LICENSE.jqueryplugins.fullcalendar
mv lib/jqueryplugins/jstree/LICENSE-MIT LICENSE.jqueryplugins.jstree
mv lib/fuzzy/LICENSE-MIT LICENSE.fuzzy
+mv lib/leaflet/plugins/leaflet-control-osm-geocoder/LICENSE LICENSE.leaflet-control-osm-geocoder
rm scripts/glpi_cron_*.sh
@@ -396,6 +402,9 @@ done >%{name}.lang
%check
%if %{with_tests}
+# See https://github.com/glpi-project/glpi/issues/4165
+rm tests/functionnal/Auth.php
+
RET=0
: Hack for vendor
sed -e '/Development dependencies/s:^://:' -i tests/bootstrap.php
@@ -547,6 +556,14 @@ fi
%changelog
+* Tue Jun 12 2018 Remi Collet <remi@remirepo.net> - 9.3.0~RC2-1
+- update to 9.3-RC2
+- drop dependency on jasig/phpcas
+- raise dependency on phpmailer/phpmailer 6.0
+- raise dependency on zendframework 2.8
+- allow sebastian/diff 2.0 and 3.0
+- add dependency on monolog/monolog
+
* Fri Apr 27 2018 Remi Collet <remi@remirepo.net> - 9.2.3-2
- use range dependencies on F27+