Commit 237432b5 authored by jehan's avatar jehan
Browse files

adapt spec file to bc- package prefix

parent 12881553
...@@ -2,20 +2,32 @@ ...@@ -2,20 +2,32 @@
# #
# mediastreamer2 -- A media streaming library for telephony applications # mediastreamer2 -- A media streaming library for telephony applications
# #
# These 2 lines are here because we can build the RPM for flexisip, in which
# case we prefix the entire installation so that we don't break compatibility
# with the user's libs.
# To compile with bc prefix, use rpmbuild -ba --with bc [SPEC]
%define pkg_name %{?_with_bc:bc-mediastreamer}%{!?_with_bc:mediastreamer}
%{?_with_bc: %define _prefix /opt/belledonne-communications}
# re-define some directories for older RPMBuild versions which don't. This messes up the doc/ dir
# taken from
%define _datarootdir %{_prefix}/share
%define _datadir %{_datarootdir}
%define _docdir %{_datadir}/doc
%ifarch %ix86 %ifarch %ix86
%define mediastreamer2_cpu pentium4 %define mediastreamer2_cpu pentium4
%endif %endif
Summary: Audio/Video real-time streaming Summary: Audio/Video real-time streaming
Name: mediastreamer Name: %pkg_name
Release: %(git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p' || echo '1')%{?dist} Release: %(git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p' || echo '1')%{?dist}
License: GPL License: GPL
Group: Applications/Communications Group: Applications/Communications
Source0: %{name}-@MEDIASTREAMER_VERSION@.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%ifarch %ix86 %ifarch %ix86
BuildArch: i686 BuildArch: i686
%endif %endif
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