Commit bed48cfa authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Update specfile to allow compiling without srtp

parent 3da8e491
......@@ -11,6 +11,7 @@
# To compile with bc prefix, use rpmbuild -ba --with bc [SPEC]
%define pkg_name %{?_with_bc:bc-ortp}%{!?_with_bc:ortp}
%{?_with_bc: %define _prefix /opt/belledonne-communications}
%define srtp %{?_without_srtp:0}%{?!_without_srtp:1}
# re-define some directories for older RPMBuild versions which don't. This messes up the doc/ dir
# taken from https://fedoraproject.org/wiki/Packaging:RPMMacros?rd=Packaging/RPMMacros
......@@ -69,7 +70,11 @@ develop programs using the oRTP library.
%configure \
--enable-shared \
--enable-static \
%if !%{srtp}
--with-srtp=none \
%endif
--docdir=%{_docdir}
%{__make} -j$RPM_BUILD_NCPUS CFLAGS="%ortp_cflags" CXXFLAGS="%ortp_cflags"
%install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment