]> git.pld-linux.org Git - packages/bacula.git/blobdiff - bacula.spec
Release: 1
[packages/bacula.git] / bacula.spec
index e09c878b2b3f0ae8b5dad22cb337fc4587e4a2ce..c9ca009a0b0e4dbe5143d25809995e07149e544d 100644 (file)
@@ -32,7 +32,7 @@ Summary:      Bacula - The Network Backup Solution
 Summary(pl.UTF-8):     Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
 Name:          bacula
 Version:       5.2.13
-Release:       0.2
+Release:       1
 License:       AGPL v3
 Group:         Networking/Utilities
 Source0:       http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
@@ -91,8 +91,8 @@ BuildRequires:        rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.644
 BuildRequires: sed >= 4.0
 %{?with_sqlite3:BuildRequires: sqlite3-devel}
-Requires:      systemd-units >= 38
 BuildRequires: which
+Requires:      systemd-units >= 38
 %if %{with wx}
 BuildRequires: wxGTK2-unicode-devel >= 2.4.0
 %endif
@@ -264,14 +264,14 @@ Group:            Networking/Utilities
 Requires(post):        sed >= 4.0
 Requires:      %{name}-common = %{version}-%{release}
 Requires:      QtCore >= %{qtver}
-Obsoletes:     %{name}-console-qt4 < %{version}-%{release}
+Obsoletes:     bacula-console-qt4 < %{version}-%{release}
 
 %description console-qt
 Bacula - It comes by night and sucks the vital essence from your
 computers.
 
-bat is short for Bacula Administration Tool. It is a GUI form of bconsole, but
-with many additional features.
+bat is short for Bacula Administration Tool. It is a GUI form of
+bconsole, but with many additional features.
 
 %description console-qt -l pl.UTF-8
 Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
@@ -336,8 +336,8 @@ Summary(pl.UTF-8):  Usługi Bacula Storage
 Group:         Networking/Utilities
 Requires(post):        sed >= 4.0
 Requires:      %{name}-common = %{version}-%{release}
+Suggests:      mtx
 Conflicts:     dvd+rw-tools <= 5.21.4.10.8-1
-Suggests:   mtx
 
 %description sd
 Bacula - It comes by night and sucks the vital essence from your
@@ -452,8 +452,8 @@ Requires:   nagios-common
 %description -n nagios-plugin-check_bacula
 Nagios plugin to check bacula.
 
-# provided by various db libraries as a symlink
 %define        _noautoreq      libbaccats-%{version}.so
+# provided by various db libraries as a symlink
 
 %prep
 %setup -q -a 1
@@ -501,7 +501,7 @@ QMAKE=%{_bindir}/qmake-qt4 \
        --with-smtp-host=localhost \
        --with-pid-dir=/var/run \
        --with-subsys-dir=/var/lock/subsys \
-       --with-systemd=/lib/systemd/system \
+       --with-systemd=%{systemdunitdir} \
        --enable-batch-insert \
        %{?with_pgsql:--with-postgresql} \
        %{?with_mysql:--with-mysql} \
@@ -860,6 +860,7 @@ ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
 %{_libexecdir}/%{name}/query.sql
 %attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
 
+%if %{with pgsql}
 %files db-postgresql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
@@ -879,7 +880,9 @@ ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
 %ghost %{_libexecdir}/%{name}/make_bacula_tables
 %ghost %{_libexecdir}/%{name}/update_bacula_tables
 %ghost %{_libexecdir}/%{name}/make_catalog_backup
+%endif
 
+%if %{with mysql}
 %files db-mysql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
@@ -899,7 +902,9 @@ ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
 %ghost %{_libexecdir}/%{name}/make_bacula_tables
 %ghost %{_libexecdir}/%{name}/update_bacula_tables
 %ghost %{_libexecdir}/%{name}/make_catalog_backup
+%endif
 
+%if %{with sqlite3}
 %files db-sqlite3
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
@@ -919,6 +924,7 @@ ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
 %ghost %{_libexecdir}/%{name}/make_bacula_tables
 %ghost %{_libexecdir}/%{name}/update_bacula_tables
 %ghost %{_libexecdir}/%{name}/make_catalog_backup
+%endif
 
 %files fd
 %defattr(644,root,root,755)
This page took 0.142741 seconds and 4 git commands to generate.