Commit c1d092b8 authored by Erwan Croze's avatar Erwan Croze :wave_tone1:
Browse files

Adding magical lines for centos rpm build

parent 9fd47cbd
No related merge requests found
Showing with 5 additions and 1 deletion
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
%define build_number_ext -%{build_number} %define build_number_ext -%{build_number}
%endif %endif
# This is for debian builds where debug_package has to be manually specified,
# whereas in centos it does not
%define lin_debug %{!?_enable_debug_packages:%debug_package}%{?_enable_debug_package:%{nil}}
Name: %{pkg_name} Name: %{pkg_name}
Version: @PROJECT_VERSION@ Version: @PROJECT_VERSION@
Release: %{build_number}%{?dist} Release: %{build_number}%{?dist}
...@@ -68,7 +72,7 @@ develop programs using the liblinphone library. ...@@ -68,7 +72,7 @@ develop programs using the liblinphone library.
%prep %prep
%setup -n %{name}-%{version}%{?build_number_ext} %setup -n %{name}-%{version}%{?build_number_ext}
%debug_package %lin_debug
%build %build
%{expand:%%%cmake_name} . -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} -DCMAKE_PREFIX_PATH:PATH=%{_prefix} -DENABLE_VIDEO=%{video} -DENABLE_LIME=%{lime} -DENABLE_TOOLS=NO -DENABLE_CONSOLE_UI=NO -DENABLE_DAEMON=NO %{expand:%%%cmake_name} . -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} -DCMAKE_PREFIX_PATH:PATH=%{_prefix} -DENABLE_VIDEO=%{video} -DENABLE_LIME=%{lime} -DENABLE_TOOLS=NO -DENABLE_CONSOLE_UI=NO -DENABLE_DAEMON=NO
......
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