packages: webacula/webacula.spec - up to 5.5, but bacula 5.2 is still too n...
glen
glen at pld-linux.org
Sat Apr 7 00:10:47 CEST 2012
Author: glen Date: Fri Apr 6 22:10:46 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 5.5, but bacula 5.2 is still too new (understands db v12 only)
---- Files affected:
packages/webacula:
webacula.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/webacula/webacula.spec
diff -u packages/webacula/webacula.spec:1.2 packages/webacula/webacula.spec:1.3
--- packages/webacula/webacula.spec:1.2 Fri Apr 6 23:58:15 2012
+++ packages/webacula/webacula.spec Sat Apr 7 00:10:41 2012
@@ -3,26 +3,33 @@
# - fails to work if some %lang file not installed
# - does not work with baucla 5.2:
# PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'Version error for Catalog database (wanted 12, got 14) ' in /usr/share/webacula/html/index.php:183\nStack trace:\n#0 {main}\n thrown in /usr/share/webacula/html/index.php on line 183
+%define php_min_version 5.2.4
+# - Requires: /bin/bash
+%include /usr/lib/rpm/macros.php
Summary: Web interface of a Bacula backup system
Summary(ru.UTF-8): Веб интерфейс для Bacula backup system
Name: webacula
-Version: 5.0.3
-Release: 0.4
+Version: 5.5
+Release: 0.2
License: GPL v3+
Group: Applications/WWW
URL: http://webacula.sourceforge.net/
Source0: http://downloads.sourceforge.net/webacula/%{name}-%{version}.tar.gz
-# Source0-md5: 0a3b91e35d3bf55457f4c78b3882c2c2
+# Source0-md5: d7f5256247836ddc663a6313e3c019d2
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
Requires: ZendFramework >= 1.8.3
Requires: bacula-console >= 5.0
+Requires: php-common >= 4:%{php_min_version}
+Requires: php-date
+Requires: php-dom
Requires: php-gd
Requires: php-json
Requires: php-pcre
Requires: php-pdo
Requires: php-xml
Requires: webapps
-Requires: webserver
Requires: webserver(php) >= 5.2.4
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -62,6 +69,11 @@
%{__rm} application/config.ini.original
+%{__rm} languages/*/*.po
+
+# php 5.3 specific __DIR__ can be easily backported
+%{__sed} -i -e 's#__DIR__#dirname(__FILE__)#g' html/index.php
+
%install
rm -rf $RPM_BUILD_ROOT
install -d \
@@ -72,9 +84,9 @@
mv $RPM_BUILD_ROOT{%{_appdir}/application,%{_sysconfdir}}/config.ini
ln -s %{_sysconfdir}/config.ini $RPM_BUILD_ROOT%{_appdir}/application
-mv $RPM_BUILD_ROOT{%{_appdir}/install/webacula.conf,%{_sysconfdir}/apache.conf}
+mv $RPM_BUILD_ROOT{%{_appdir}/install/apache/webacula.conf,%{_sysconfdir}/apache.conf}
cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
-mv $RPM_BUILD_ROOT{%{_appdir}/install,/etc/cron.daily}/webacula_clean_tmp_files.sh
+#mv $RPM_BUILD_ROOT{%{_appdir}/install,/etc/cron.daily}/webacula_clean_tmp_files.sh
%clean
rm -rf $RPM_BUILD_ROOT
@@ -99,7 +111,7 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.ini
-%attr(755,root,root) /etc/cron.daily/webacula_clean_tmp_files.sh
+#%attr(755,root,root) /etc/cron.daily/webacula_clean_tmp_files.sh
%dir %{_appdir}
%{_appdir}/application
%{_appdir}/html
@@ -113,6 +125,7 @@
%lang(ru) %{_appdir}/languages/ru
%lang(it) %{_appdir}/languages/it
%lang(es) %{_appdir}/languages/es
+%lang(cs) %{_appdir}/languages/cs
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -120,6 +133,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2012/04/06 22:10:41 glen
+- up to 5.5, but bacula 5.2 is still too new (understands db v12 only)
+
Revision 1.2 2012/04/06 21:58:15 glen
- pldize a bit
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/webacula/webacula.spec?r1=1.2&r2=1.3
More information about the pld-cvs-commit
mailing list