public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/asterisk] rawhide: Remove outdated ifdefs
Date: Thu, 05 Nov 2026 17:42:16 GMT [thread overview]
Message-ID: <179390053695.1.1896721740019300511.rpms-asterisk-eeef4fb4db27@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/asterisk
Branch : rawhide
Commit : eeef4fb4db275bbf2da1e8340beec63c001f23be
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-11-05T17:48:48+01:00
Stats : +7/-37 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/asterisk/c/eeef4fb4db275bbf2da1e8340beec63c001f23be?branch=rawhide
Log:
Remove outdated ifdefs
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/asterisk.spec b/asterisk.spec
index 139d88f..2f37ff2 100644
--- a/asterisk.spec
+++ b/asterisk.spec
@@ -30,27 +30,12 @@
%else
%global imap 1
%endif
-%if 0%{?fedora} >= 21 || 0%{?rhel} >=7
%global jack 0
-%else
-%global jack 1
-%endif
-%if 0%{?fedora} >= 28 || 0%{?rhel} >= 7
%global phone 0
%global xmpp 0
%global ices 0
-%else
-%global phone 1
-%global xmpp 1
-%global ices 1
-%endif
%global meetme 0
%global ooh323 0
-%if 0%{?rhel} > 7
-# Do nothing. We want this to be undefined.
-%else
-%global sysilbc 1
-%endif
%global makeargs DEBUG= OPTIMIZE= DESTDIR=%{buildroot} ASTVARRUNDIR=%{astvarrundir} ASTDATADIR=%{_datadir}/asterisk ASTVARLIBDIR=%{_datadir}/asterisk ASTDBDIR=%{_localstatedir}/spool/asterisk NOISY_BUILD=1
@@ -96,9 +81,7 @@ Source99: 0030-ssl_sock_ossl-fix-OpenSSL-4.0-compatibility-5036.patch
Source100: 0031-Merge-commit-from-fork.patch
Source101: 0032-Merge-commit-from-fork.patch
-%if 0%{?fedora} || 0%{?rhel} >=7
Patch1: asterisk-16.1.0-explicit-python3.patch
-%endif
# https://github.com/asterisk/asterisk/pull/2136
Patch3: asterisk-18.12.1-ilbc_macros.patch
@@ -154,10 +137,7 @@ BuildRequires: libical-devel
# for codec_speex
BuildRequires: speex-devel >= 1.2
-%if (0%{?fedora} > 21 || 0%{?rhel} > 7)
BuildRequires: speexdsp-devel >= 1.2
-%endif
-
# for format_ogg_vorbis
BuildRequires: libogg-devel
@@ -170,9 +150,7 @@ BuildRequires: gsm-devel
BuildRequires: libedit-devel
# codec_ilbc
-%if 0%{?sysilbc}
BuildRequires: ilbc-devel
-%endif
# res_rtp_asterisk
BuildRequires: libuuid-devel
@@ -624,7 +602,7 @@ Jabber/XMPP resources for Asterisk.
rpm -q libgcrypt
gpgv2 --keyring %{SOURCE7} %{SOURCE1} %{SOURCE0}
%endif
-%setup -q -n asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}
+%autosetup -p1 -n asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}
# copy the pjproject tarball to the cache/ directory
@@ -642,14 +620,6 @@ ls -altr cache/
pwd
echo '*************************************************************************'
-%if 0%{?fedora} || 0%{?rhel} >=7
-%patch -P1 -p1
-%endif
-
-%patch -P3 -p1
-
-%patch -P4 -p1
-
cp %{S:99} ./third-party/pjproject/patches
cp %{S:100} ./third-party/pjproject/patches
cp %{S:101} ./third-party/pjproject/patches
@@ -686,15 +656,15 @@ popd
%if 0%{?fedora}
%if 0%{?imap}
-%configure --with-imap=system --with-libjwt-bundled --with-gsm=/usr %{?sysilbc:--with-ilbc=/usr} --with-libedit=yes --with-srtp --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
+%configure --with-imap=system --with-libjwt-bundled --with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
%else
-%configure --without-imap --with-libjwt-bundled --with-gsm=/usr %{?sysilbc:--with-ilbc=/usr} --with-libedit=yes --with-srtp --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
+%configure --without-imap --with-libjwt-bundled --with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
%endif
%else
%if 0%{?imap}
-%configure --with-imap=system --with-libjwt-bundled --with-gsm=/usr %{?sysilbc:--with-ilbc=/usr} --with-libedit=yes --with-srtp --with-jansson-bundled --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
+%configure --with-imap=system --with-libjwt-bundled --with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp --with-jansson-bundled --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
%else
-%configure --without-imap --with-libjwt-bundled --with-gsm=/usr %{?sysilbc:--with-ilbc=/usr} --with-libedit=yes --with-srtp --with-jansson-bundled --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
+%configure --without-imap --with-libjwt-bundled --with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp --with-jansson-bundled --with-pjproject-bundled --with-externals-cache=%{_builddir}/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}/cache LDFLAGS="%{ldflags}" NOISY_BUILD=1 CPPFLAGS="-fPIC"
%endif
%endif
@@ -1378,7 +1348,7 @@ fi
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/chan_dahdi.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/ss7.timers
%{_libdir}/asterisk/modules/app_flash.so
-%if 0%{?meetme}
+%if 0%{?meetme}
%{_libdir}/asterisk/modules/app_meetme.so
%endif
# %%{_libdir}/asterisk/modules/app_dahdiras.so
@@ -1854,7 +1824,7 @@ fi
- Update to upstream 7.4.0-rc2
* Sat Apr 25 2020 Jared K. Smith <jsmith@fedoraproject.org> - 17.4.0-0.rc1.1
-- Update to upstream 7.4.0 RC 1
+- Update to upstream 7.4.0 RC 1
* Thu Mar 12 2020 Jared K. Smith <jsmith@fedoraproject.org> - 17.3.0-1
- Update to upstream 7.3.0 release for bug fixes
reply other threads:[~2026-11-05 17:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179390053695.1.1896721740019300511.rpms-asterisk-eeef4fb4db27@fedoraproject.org \
--to=lemenkov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox