Commit 276a748a authored by DanmeiChen's avatar DanmeiChen

fix rpm build

(cherry picked from commit 3cdb4644)
parent dad1e199
......@@ -52,6 +52,3 @@ bc_generate_rpm_specfile("rpm/liblinphone.spec.cmake" "${PROJECT_SOURCE_DIR}/lib
include(CPack)
install(FILES rpm/lp-autoanswer.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system)
install(FILES rpm/lp-autoanswer.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/sysconfig
RENAME lp-autoanswer)
......@@ -73,6 +73,12 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
install -p -m 0644 build/rpm/lp-autoanswer.service $RPM_BUILD_ROOT/lib/systemd/system
install -p -m 0644 build/rpm/lp-autoanswer.conf $RPM_BUILD_ROOT/etc/sysconfig
mv $RPM_BUILD_ROOT/etc/sysconfig/lp-autoanswer.conf $RPM_BUILD_ROOT/etc/sysconfig/lp-autoanswer
%check
#%{ctest_name} -V %{?_smp_mflags}
......@@ -93,6 +99,8 @@ rm -rf $RPM_BUILD_ROOT
#%{_mandir}/*
%{_datadir}/linphone
%{_datadir}/sounds/linphone
/etc/sysconfig/lp-autoanswer
/lib/systemd/system/lp-autoanswer.service
%files devel
%defattr(-,root,root)
......
......@@ -5,7 +5,7 @@ After=network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/lp-autoanswer
ExecStart=/usr/bin/lp-auto-answer $OPTIONS
ExecStart=/opt/com.belledonne-communications/linphone/bin/lp-auto-answer $OPTIONS
[Install]
WantedBy=multi-user.target
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