Name: freeswitch-endpoint-sofia2 Version: 1.0.0 Release: %autorelease License: MPL #Tarball of the freeswitch src/mod/endpoints/mod_sofia directory #Git clone https://github.com/signalwire/freeswitch && cd freeswitch && cd src/mod/endpoints && tar -czf ~/rpmbuild/SOURCES/mod_sofia.tar.gz mod_sofia Source: mod_sofia.tar.gz #Freeswitch header which for some reason isn't included in the freeswitch-devel package but is needed by mod_sofia Source1: https://raw.githubusercontent.com/signalwire/freeswitch/refs/heads/master/src/include/switch_ssl.h Patch: sofia.diff Summary: Freeswitch module mod_sofia with useful patches BuildRequires: sofia-sip-devel BuildRequires: freeswitch-devel BuildRequires: gcc Provides: freeswitch-mod-sofia2 %description Freeswitch module mod_sofia with useful patches to make it respond with 500 to options when doing elegant shutdown and also allow update-display when ringing %package sofia-compat Provides: freeswitch-mod-sofia Conflicts: freeswitch-application-sofia Summary: Replacement mod_sofia.so for freeswitch with same name %description sofia-compat Replacement sofia module with useful patches and call mod_sofia.so %prep %autosetup -n mod_sofia mkdir -p include cp %{SOURCE1} include/ %build %set_build_flags $CC -I/usr/include/sofia-sip-1.13 -Iinclude *.c -lsofia-sip-ua -fPIC -shared -o mod_sofia2.so $CFLAGS $LDFLAGS $CC -DMOD_NAME=mod_sofia -I/usr/include/sofia-sip-1.13 -Iinclude *.c -lsofia-sip-ua -fPIC -shared -o mod_sofia.so $CFLAGS $LDFLAGS %install %{__install} -D -t %{buildroot}%{_libdir}/freeswitch/mod mod_sofia2.so %{__install} -D -t %{buildroot}%{_libdir}/freeswitch/mod mod_sofia.so %files %{_libdir}/freeswitch/mod/mod_sofia2.so %files sofia-compat %{_libdir}/freeswitch/mod/mod_sofia.so %changelog %autochangelog