Skip to content

Commit

Permalink
Fix spec for Mageia
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jun 29, 2024
1 parent 7aac77f commit 37fde31
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions Project/GNU/mediaconch.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 37fde31

Please sign in to comment.