{
// Get the ADOdb library path. If not found it will be FALSE
- $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', realpath('../adodb'));
-+ $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', '/usr/share/pear/adodb');
++ $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', '/usr/share/php/adodb');
// Update the status of the library
$this->mAdodbStatus = ($this->mAdodbPath) ? TRUE : FALSE;
{
// Look for ADOdb
- $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', realpath('../adodb'));
-+ $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', '/usr/share/pear/adodb');
++ $this->mAdodbPath = $this->ScanIncludePath('adodb.inc.php', '/usr/share/php/adodb');
require_once($this->mAdodbPath);
// Perform a number of fatality checks, then die gracefully
[general]
basedir = "/usr/share/flyspray/" ; Location of your Flyspray installation
cookiesalt = "d5" ; Randomisation value for cookie encoding
-adodbpath = "/usr/share/pear/adodb/adodb.inc.php" ; Path to the main ADODB include file
+adodbpath = "/usr/share/php/adodb/adodb.inc.php" ; Path to the main ADODB include file
output_buffering = "on" ; Available options: "off", "on" and "gzip"
[database]
Summary(pl): System ¶ledzenia b³êdów
Name: flyspray
Version: 0.9.8
-Release: 3
+Release: 3.4
License: GPL
Group: Applications/WWW
Source0: http://flyspray.rocks.cc/files/%{name}-%{version}.tar.gz
URL: http://flyspray.rocks.cc/
BuildRequires: rpmbuild(macros) >= 1.268
Requires(triggerpostun): sed >= 4.0
-Requires: adodb
+Requires: adodb >= 4.67-1.17
Requires: php >= 3:4.3.0
Requires: webapps
BuildArch: noarch
%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerpostun -- %{name} < 0.9.8-0.1
+%triggerpostun -- %{name} < 0.9.8-3.3
if [ -f /etc/%{name}/flyspray.conf.php.rpmsave ]; then
mv -f %{_sysconfdir}/flyspray.conf{,.rpmnew}
mv -f /etc/%{name}/flyspray.conf.php.rpmsave %{_sysconfdir}/flyspray.conf
%service httpd reload
fi
+%{__sed} -i -e 's,%{php_pear_dir}/adodb/adodb.inc.php,/usr/share/php/adodb/adodb.inc.php,' %{_sysconfdir}/flyspray.conf
+
%files
%defattr(644,root,root,755)
%doc docs/{AUTHORS,BUGS,CHANGELOG,INSTALL,README,TODO,UPGRADING}.txt