[packages/gerbera] add mysql and pgsql (disabled) database support

atler atler at pld-linux.org
Sun Nov 9 11:45:56 CET 2025


commit 198b6de9524598c6eed38c614eca3ea81ce0d6ef
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Nov 8 19:42:07 2025 +0100

    add mysql and pgsql (disabled) database support
    
    pgsql build requires libpqxx cmake config provided only when libpqxx is
    built with cmake (primary build system of libpqxx is autotools based)

 gerbera.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/gerbera.spec b/gerbera.spec
index 482daf5..23c501c 100644
--- a/gerbera.spec
+++ b/gerbera.spec
@@ -1,6 +1,8 @@
 #
 # Conditional build:
 %bcond_without	js	# JavaScript scripting support
+%bcond_without	mysql	# MySQL database support
+%bcond_with	pgsql	# PostgreSQL database support (requires libpqxx cmake config)
 
 Summary:	UPnP Media Server
 Summary(pl.UTF-8):	Serwer mediów UPnP
@@ -25,9 +27,11 @@ BuildRequires:	libfmt-devel >= 7.1.3
 BuildRequires:	libicu-devel
 BuildRequires:	libmagic-devel
 BuildRequires:	libmatroska-devel
+%{?with_pgsql:BuildRequires:	libpqxx-devel}
 BuildRequires:	libstdc++-devel >= 6:7.1
 BuildRequires:	libupnp-devel >= 1.14.6
 BuildRequires:	libuuid-devel
+%{?with_mysql:BuildRequires:	mysql-devel}
 BuildRequires:	pugixml-devel
 BuildRequires:	rpmbuild(macros) >= 1.742
 BuildRequires:	spdlog-devel >= 1:1.8.1
@@ -67,7 +71,9 @@ urządzeniach zgodnych z UPnP.
 	-DWITH_EXIV2:BOOL=ON \
 	-DWITH_FFMPEGTHUMBNAILER:BOOL=ON \
 	-DWITH_WAVPACK:BOOL=ON \
-	%{cmake_on_off js WITH_JS}
+	%{cmake_on_off js WITH_JS} \
+	%{cmake_on_off mysql WITH_MYSQL} \
+	%{cmake_on_off pgsql WITH_PGSQL}
 
 %{__make} -C build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gerbera.git/commitdiff/198b6de9524598c6eed38c614eca3ea81ce0d6ef



More information about the pld-cvs-commit mailing list