Commit 82c58e98 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Improve RPM packaging.

parent 7ea2dae5
......@@ -16,6 +16,9 @@
%define _docdir %{_datadir}/doc
%define build_number @PROJECT_VERSION_BUILD@
%if %{build_number}
%define build_number_ext -%{build_number}
......@@ -27,7 +30,7 @@ Summary: Audio/Video real-time streaming
Group: Applications/Communications
License: GPL
Source0: %{name}-%{version}-%{build_number}.tar.gz
Source0: %{name}-%{version}%{?build_number_ext}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Mediastreamer2 is a GPL licensed library to make audio and video
......@@ -57,7 +60,7 @@ develop programs using the mediastreamer2 library.
%setup -n %{name}-%{version}-%build_number
%setup -n %{name}-%{version}%{?build_number_ext}
%{expand:%%%cmake_name} . -DCMAKE_INSTALL_LIBDIR=%{_lib} -DCMAKE_PREFIX_PATH:PATH=%{_prefix} -DENABLE_VIDEO=%{video} -DENABLE_SRTP=%{srtp} -DENABLE_UNIT_TESTS=no
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