From 76507037e0aebced98674f873dbfd6e0512e89c4 Mon Sep 17 00:00:00 2001 From: Jared Smith Date: May 12 2020 19:35:04 +0000 Subject: Build Asterisk 16.10.0 for EPEL --- diff --git a/asterisk.spec b/asterisk.spec index f45f0ef..5d8a6eb 100644 --- a/asterisk.spec +++ b/asterisk.spec @@ -23,7 +23,7 @@ %global ldap 1 %global gmime 1 %global corosync 1 -%if 0%{?fedora} >= 21 +%if 0%{?fedora} >= 21 || 0%{?rhel} >=7 %global jack 0 %else %global jack 1 @@ -70,10 +70,13 @@ Source8: https://raw.githubusercontent.com/asterisk/third-party/master/ %if 0%{?fedora} Patch0: asterisk-mariadb.patch -Patch1: asterisk-16.1.0-explicit-python2.patch Patch2: asterisk_earlier-pjproject-pjsip-sc-null.patch %endif +%if 0%{?fedora} || %{?rhel} +Patch1: asterisk-16.1.0-explicit-python2.patch +%endif + # Asterisk now builds against a bundled copy of pjproject, as they apply some patches # directly to pjproject before the build against it Provides: bundled(pjproject) = %{pjsip_version} @@ -589,10 +592,13 @@ cp %{SOURCE8} cache/ %if 0%{?fedora} %patch0 -p1 -%patch1 -p1 %patch2 -p1 %endif +%if 0%{?fedora} || 0%{?rhel} +%patch1 -p1 +%endif + cp %{S:3} menuselect.makedeps cp %{S:4} menuselect.makeopts