summaryrefslogtreecommitdiffstats
path: root/glpi.spec
diff options
context:
space:
mode:
Diffstat (limited to 'glpi.spec')
-rw-r--r--glpi.spec37
1 files changed, 17 insertions, 20 deletions
diff --git a/glpi.spec b/glpi.spec
index a122dda..997abdd 100644
--- a/glpi.spec
+++ b/glpi.spec
@@ -1,13 +1,13 @@
# Fedora/remirepo spec file for glpi
#
-# Copyright (c) 2007-2017 Remi Collet
+# Copyright (c) 2007-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%global gh_commit 3a7c5969c0534d0b5bf27fef9c4d96f56147ae66
+%global gh_commit aff731b59aaa4e0c07c802b6ca30074b46dbf501
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
#global gh_date 20160923
%global gh_owner glpi-project
@@ -21,7 +21,7 @@
%global useselinux 0
%endif
-%if 0%{?fedora} >= 21
+%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
# nginx 1.6 with nginx-filesystem
%global with_nginx 1
# httpd 2.4 with httpd-filesystem
@@ -40,12 +40,11 @@
%endif
Name: %{gh_project}
-Version: 9.2.1
-Release: 6%{?dist}
+Version: 9.2.2
+Release: 1%{?dist}
Summary: Free IT asset management software
Summary(fr): Gestion Libre de Parc Informatique
-Group: Applications/Internet
License: GPLv2+ and GPLv3+ and MIT
URL: http://www.glpi-project.org/
# Upstream sources (not the github auto-generated archive)
@@ -62,12 +61,6 @@ Source6: %{name}-minify.php
# Override PHP configuration for php-fpm
Source7: %{name}-user.ini
-# RPM patch to use /etc/glpi/local_define.php
-Patch1: glpi-localdef.patch
-
-# Upstream patch to allow update from 9.1.7.1
-Patch2: https://github.com/glpi-project/glpi/commit/f18a6c947869f57c33d0f6f14029bcc9f4cede1f.patch
-
BuildArch: noarch
BuildRequires: gettext
%if %{with_tests}
@@ -91,7 +84,7 @@ BuildRequires: php-composer(simplepie/simplepie) < 2
BuildRequires: php-composer(tecnickcom/tcpdf) < 7
BuildRequires: php-composer(tecnickcom/tcpdf) >= 6.2.13
# remirepo:1
-%if 0%{?fedora} >= 25
+%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
BuildRequires: php-autoloader(zendframework/zend-cache) < 3
BuildRequires: php-autoloader(zendframework/zend-cache) >= 2.7
BuildRequires: php-autoloader(zendframework/zend-i18n) < 3
@@ -174,7 +167,7 @@ Requires: php-composer(simplepie/simplepie) >= 1.5
Requires: php-composer(tecnickcom/tcpdf) < 7
Requires: php-composer(tecnickcom/tcpdf) >= 6.2.13
# remirepo:1
-%if 0%{?fedora} >= 25
+%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
Requires: php-autoloader(zendframework/zend-cache) < 3
Requires: php-autoloader(zendframework/zend-cache) >= 2.7
Requires: php-autoloader(zendframework/zend-i18n) < 3
@@ -198,7 +191,7 @@ Requires: php-composer(true/punycode) >= 2.1
Requires: php-composer(paragonie/random_compat) < 3
Requires: php-composer(paragonie/random_compat) >= 2.0
Requires: gnu-free-sans-fonts
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: fontawesome-fonts >= 4.7.0
%else
Provides: bundled(fontawesome-fonts) = 4.7.0
@@ -222,7 +215,7 @@ Requires(post): /usr/sbin/semanage
Requires(postun): /usr/sbin/semanage
%endif
Requires: crontabs
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: php-pecl-apcu
Recommends: php-opcache
%endif
@@ -249,8 +242,6 @@ techniciens grâce à une maintenance plus cohérente.
%prep
%setup -q -n %{name}-%{gh_commit}
-%patch1 -p1
-%patch2 -p1
grep %{version} inc/define.php
@@ -262,7 +253,7 @@ find lib -name \*.swf -exec rm {} \; -print
# Use system lib
rm -r lib/htmlawed
rm lib/FreeSans.ttf
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 8
rm lib/font-awesome-4.7.0/fonts/FontAwesome.otf
rm lib/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf
ln -s /usr/share/fonts/fontawesome/FontAwesome.otf lib/font-awesome-4.7.0/fonts/FontAwesome.otf
@@ -437,7 +428,7 @@ done
cp %{SOURCE12} inc/downstream.php
: Run upstream test suite
-php tools/cliinstall.php --host=127.0.0.1:3308 --db=glpitest --user=root --tests --force --lang=en_GB || RET=1
+php scripts/cliinstall.php --host=127.0.0.1:3308 --db=glpitest --user=root --tests --force --lang=en_GB || RET=1
atoum --debug --bootstrap-file tests/bootstrap.php --no-code-coverage --use-light-report --max-children-number 1 -d tests/units || RET=1
atoum --debug --bootstrap-file tests/bootstrap.php --no-code-coverage --use-light-report --max-children-number 1 -d tests/web || RET=1
@@ -528,6 +519,12 @@ fi
%changelog
+* Thu Mar 1 2018 Remi Collet <remi@remirepo.net> - 9.2.2-1
+- update to 9.2.2
+
+* Thu Mar 1 2018 Remi Collet <remi@remirepo.net> - 9.2.2-0
+- test build for upcomming 9.2.2
+
* Wed Dec 13 2017 Remi Collet <remi@remirepo.net> - 9.2.1-6
- add upstream patch to allow upgrade from 9.1.7.1