From 487ec589167e0357f3cbddd7a1e9cf50b1aa4032 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 6 Oct 2015 14:00:29 +0200 Subject: glpi: 0.90-RC2 --- glpi-0.90-config_path.php | 34 ++++++++++++++++++++++++++++++++++ glpi-0.90-cron.patch | 28 ++++++++++++++++++++++++++++ glpi-dev.spec | 31 ++++++++++++++++--------------- 3 files changed, 78 insertions(+), 15 deletions(-) create mode 100644 glpi-0.90-config_path.php create mode 100644 glpi-0.90-cron.patch diff --git a/glpi-0.90-config_path.php b/glpi-0.90-config_path.php new file mode 100644 index 0000000..39802b0 --- /dev/null +++ b/glpi-0.90-config_path.php @@ -0,0 +1,34 @@ +queryOrDie($query, "4203"); ++ ++ // RPM provides a good system cron ++ $query = "UPDATE `glpi_crontasks` SET `mode`=2 WHERE `name`!='watcher' AND (`allowmode` & 2)"; ++ $DB->queryOrDie($query, "4203"); + } + + //Check if the port is in url +diff -up install/update.php.rpm install/update.php +--- install/update.php.rpm 2014-12-11 14:16:55.000000000 +0100 ++++ install/update.php 2014-12-17 13:36:22.420558338 +0100 +@@ -818,6 +818,10 @@ function updateDbUpTo031() { + $plugin = new Plugin(); + $plugin->unactivateAll(); + ++ // RPM provides a good system cron ++ $query = "UPDATE `glpi_crontasks` SET `mode`=2 WHERE `name`!='watcher' AND (`allowmode` & 2)"; ++ $DB->queryOrDie($query); ++ + DBmysql::optimize_tables($migration); + + return $ret; diff --git a/glpi-dev.spec b/glpi-dev.spec index f8465c5..3211307 100644 --- a/glpi-dev.spec +++ b/glpi-dev.spec @@ -25,10 +25,11 @@ %global with_nginx 0 %global with_httpd 0 %endif +%global prever -RC2 Name: glpi -Version: 0.85.5 -Release: 1%{?dist} +Version: 0.90 +Release: 0.1.RC2%{?dist} Summary: Free IT asset management software Summary(fr): Gestion Libre de Parc Informatique @@ -36,15 +37,15 @@ Group: Applications/Internet License: GPLv2+ and GPLv3+ URL: http://www.glpi-project.org/ # Upstream sources (not the github auto-generated archive) -Source0: https://github.com/glpi-project/%{name}/releases/download/%{version}/glpi-%{version}.tar.gz +Source0: https://github.com/glpi-project/%{name}/releases/download/%{version}%{?prever}/glpi-%{version}%{?prever}.tar.gz Source1: glpi-httpd.conf -Source2: glpi-0.85-config_path.php +Source2: glpi-0.90-config_path.php Source3: glpi-logrotate Source4: glpi-nginx.conf # Switch all internal cron tasks to system -Patch0: glpi-0.85-cron.patch +Patch0: glpi-0.90-cron.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -79,13 +80,10 @@ Requires: php-tcpdf Requires: php-pear-CAS >= 1.2.0 Requires: php-htmLawed Requires: php-simplepie -Requires: php-ZendFramework2-Cache -Requires: php-ZendFramework2-Cache-apc -Requires: php-ZendFramework2-I18n -Requires: php-ZendFramework2-Loader -Requires: php-ZendFramework2-ServiceManager -Requires: php-ZendFramework2-Stdlib -Requires: php-ZendFramework2-Version +Requires: php-composer(zendframework/zend-cache) +Requires: php-composer(zendframework/zend-i18n) +Requires: php-composer(zendframework/zend-loader) +Requires: php-composer(zendframework/zend-version) Requires: php-composer(ircmaxell/password-compat) %if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 Requires: php-composer(zetacomponents/graph) @@ -287,7 +285,7 @@ fi %defattr(-,root,root,-) %doc *.txt LICENSE.* -%attr(750,apache,root) %dir %{_sysconfdir}/%{name} +%attr(770,root,apache) %dir %{_sysconfdir}/%{name} %ghost %config(noreplace,missingok) %{_sysconfdir}/%{name}/config_db.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/glpi.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} @@ -298,7 +296,7 @@ fi # This folder can contain private information (sessions, docs, ...) %dir %_localstatedir/lib/%{name} -%attr(750,apache,root) %{_localstatedir}/lib/%{name}/files +%attr(770,root,apache) %{_localstatedir}/lib/%{name}/files %dir %{_datadir}/%{name} %{_datadir}/%{name}/*.php @@ -315,11 +313,14 @@ fi %{_datadir}/%{name}/pics %{_datadir}/%{name}/plugins %{_datadir}/%{name}/scripts -%attr(750,apache,root) %dir %{_localstatedir}/log/%{name} +%attr(770,root,apache) %dir %{_localstatedir}/log/%{name} %dir %{_datadir}/%{name}/locales %changelog +* Tue Oct 6 2015 Remi Collet - 0.90-0.1.RC2 +- update to 0.90-RC2 + * Wed Sep 16 2015 Remi Collet - 0.85.5-1 - update to 0.85.5 https://github.com/glpi-project/glpi/issues?q=milestone:0.85.5 -- cgit