Skip to content

Commit

Permalink
remove mysql and sqlite3 from bareos.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Dec 10, 2021
1 parent 05b4a2b commit 6c72c91
Showing 1 changed file with 0 additions and 100 deletions.
100 changes: 0 additions & 100 deletions core/platforms/packaging/bareos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ Vendor: The Bareos Team
# default settings
%define client_only 0
%define build_qt_monitor 1
%define build_sqlite3 1
%define build_mysql 1
%define glusterfs 0
%define droplet 1
%define have_git 1
Expand All @@ -63,22 +61,11 @@ BuildRequires: rpcgen
BuildRequires: libtirpc-devel
%endif

# remove mysql from fedora >= 34
%if 0%{?fedora} >= 34
%define build_mysql 0
%endif

# remove mysql from Leap 15.3
%if 0%{?is_opensuse} && 0%{?sle_version} >= 150300
%define build_mysql 0
%endif

#
# SUSE (openSUSE, SLES) specific settings
#
%if 0%{?sles_version} == 10
%define build_qt_monitor 0
%define build_sqlite3 0
%define have_git 0
%define python_plugins 0
%endif
Expand All @@ -105,7 +92,6 @@ BuildRequires: libtirpc-devel
%define RHEL4 1
%define client_only 1
%define build_qt_monitor 0
%define build_sqlite3 0
%define have_git 0
%define python_plugins 0
%endif
Expand Down Expand Up @@ -210,16 +196,6 @@ BuildRequires: libacl-devel
BuildRequires: pkgconfig
BuildRequires: lzo-devel
BuildRequires: logrotate
%if 0%{?build_sqlite3}
%if 0%{?suse_version}
BuildRequires: sqlite3-devel
%else
BuildRequires: sqlite-devel
%endif
%endif
%if 0%{?build_mysql}
BuildRequires: mysql-devel
%endif
BuildRequires: postgresql-devel
BuildRequires: openssl
BuildRequires: libcap-devel
Expand Down Expand Up @@ -468,30 +444,6 @@ Requires: %{name}-database-common = %{version}
Provides: %{name}-catalog-postgresql
Provides: %{name}-database-backend

%if 0%{?build_mysql}
%package database-mysql
Summary: Libs & tools for mysql catalog
Group: Productivity/Archiving/Backup
Requires: %{name}-database-common = %{version}
Provides: %{name}-catalog-mysql
Provides: %{name}-database-backend
%endif

%if 0%{?build_sqlite3}
%package database-sqlite3
Summary: Libs & tools for sqlite3 catalog
Group: Productivity/Archiving/Backup
%if 0%{?suse_version}
Requires: sqlite3
%endif
%if 0%{?fedora_version}
Requires: sqlite
%endif
Requires: %{name}-database-common = %{version}
Provides: %{name}-catalog-sqlite3
Provides: %{name}-database-backend
%endif

%package database-tools
Summary: Bareos CLI tools with database dependencies (bareos-dbcheck, bareos-dbcopy, bscan)
Group: Productivity/Archiving/Backup
Expand Down Expand Up @@ -918,20 +870,6 @@ This package contains the shared libraries that abstract the catalog interface

This package contains the shared library to access postgresql as catalog db.

%if 0%{?build_mysql}
%description database-mysql
%{dscr}

This package contains the shared library to use mysql as catalog db.
%endif

%if 0%{?build_sqlite3}
%description database-sqlite3
%{dscr}

This package contains the shared library to use sqlite as catalog db.
%endif

%description database-tools
%{dscr}

Expand Down Expand Up @@ -1041,12 +979,6 @@ cmake .. \
-Dclient-only=yes \
%endif
-Dpostgresql=yes \
%if 0%{?build_mysql}
-Dmysql=yes \
%endif
%if 0%{?build_sqlite3}
-Dsqlite3=yes \
%endif
-Ddir-user=%{director_daemon_user} \
-Ddir-group=%{daemon_group} \
-Dsd-user=%{storage_daemon_user} \
Expand Down Expand Up @@ -1556,22 +1488,6 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin
%{script_dir}/ddl/*/postgresql*.sql
%{backend_dir}/libbareoscats-postgresql.so*

%if 0%{?build_mysql}
%files database-mysql
# mysql catalog files
%defattr(-, root, root)
%{script_dir}/ddl/*/mysql*.sql
%{backend_dir}/libbareoscats-mysql.so*
%endif

%if 0%{?build_sqlite3}
%files database-sqlite3
# sqlite3 catalog files
%defattr(-, root, root)
%{script_dir}/ddl/*/sqlite3*.sql
%{backend_dir}/libbareoscats-sqlite3.so*
%endif

%files database-tools
# dbtools with link to db libs (dbcheck, bscan, dbcopy)
%defattr(-, root, root)
Expand Down Expand Up @@ -1984,22 +1900,6 @@ a2enmod php5 &> /dev/null || true
%postun database-postgresql
/sbin/ldconfig

%if 0%{?build_mysql}
%post database-mysql
/sbin/ldconfig

%postun database-mysql
/sbin/ldconfig
%endif

%if 0%{?build_sqlite3}
%post database-sqlite3
/sbin/ldconfig

%postun database-sqlite3
/sbin/ldconfig
%endif


%if 0%{?build_qt_monitor}

Expand Down

0 comments on commit 6c72c91

Please sign in to comment.