mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix rpm build
This commit is contained in:
parent
7ffd7a93c8
commit
3cdb464496
3 changed files with 9 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -69,6 +69,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}
|
||||
|
||||
|
|
@ -89,6 +95,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue