Commit c1d092b8 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Adding magical lines for centos rpm build

parent 9fd47cbd
......@@ -21,6 +21,10 @@
%define build_number_ext -%{build_number}
%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}
Version: @PROJECT_VERSION@
Release: %{build_number}%{?dist}
......@@ -68,7 +72,7 @@ develop programs using the liblinphone library.
%prep
%setup -n %{name}-%{version}%{?build_number_ext}
%debug_package
%lin_debug
%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
......
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