From a27577d163643111c40dab51485199987b865180 Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Sat, 29 Jun 2024 19:44:15 +0200 Subject: [PATCH] Fix spec for Mageia Signed-off-by: Maxime Gervais --- Project/GNU/mediaconch.spec | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Project/GNU/mediaconch.spec b/Project/GNU/mediaconch.spec index 5270d6b1..f4dfa6b2 100644 --- a/Project/GNU/mediaconch.spec +++ b/Project/GNU/mediaconch.spec @@ -12,6 +12,14 @@ %global libzen_name libzen0 %endif +%if 0%{?mageia} +%ifarch x86_64 +%global mageia_libname lib64 +%else +%global mageia_libname lib +%endif +%endif + # CentOS also set rhel macro %if ! 0%{?suse_version} || 0%{?suse_version} >= 1200 %global build_server 1 @@ -55,9 +63,14 @@ BuildRequires: autoconf BuildRequires: zlib-devel BuildRequires: libxml2-devel BuildRequires: libxslt-devel -BuildRequires: sqlite-devel BuildRequires: libevent-devel BuildRequires: libcurl-devel +%if 0%{?mageia} +BuildRequires: %{mageia_libname}sqlite3-devel +%else +BuildRequires: sqlite-devel +%endif + %if 0%{?rhel} >= 8 BuildRequires: alternatives @@ -76,11 +89,7 @@ BuildRequires: jansson-devel %endif %if 0%{?mageia} -%ifarch x86_64 -BuildRequires: lib64openssl-devel -%else -BuildRequires: libopenssl-devel -%endif +BuildRequires: %{mageia_libname}openssl-devel %endif # Lib dependencies @@ -107,11 +116,7 @@ BuildRequires: libQtWebKit-devel BuildRequires: update-desktop-files %else %if 0%{?mageia} -%ifarch x86_64 -BuildRequires: lib64qtwebkit2.2-devel -%else -BuildRequires: libqtwebkit2.2-devel -%endif +BuildRequires: %{mageia_libname}qt5webengine-devel %endif %endif %endif