Commit 5ab32964 authored by Vesa Halttunen's avatar Vesa Halttunen

Split the post(un)installation scripts between the library and the binary

parent c655cdd7
......@@ -119,8 +119,10 @@ cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite
%define te_pid $(pgrep -f nemo-transfer-engine)
%post -n nemo-transferengine-qt5
%post -n libnemotransferengine-qt5
/sbin/ldconfig
%post -n nemo-transferengine-qt5
if [ -n "%{te_pid}" ]
then
kill -s 10 %{te_pid}
......@@ -128,9 +130,10 @@ fi
exit 0
%postun -n nemo-transferengine-qt5
%postun -n libnemotransferengine-qt5
/sbin/ldconfig
%postun -n nemo-transferengine-qt5
if [ -f "%{db_file}" ]
then
rm %{db_file}
......
......@@ -115,8 +115,10 @@ cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite
%define te_pid $(pgrep -f nemo-transfer-engine)
%post -n nemo-transferengine
%post -n libnemotransferengine
/sbin/ldconfig
%post -n nemo-transferengine
if [ -n "%{te_pid}" ]
then
kill -s 10 %{te_pid}
......@@ -124,9 +126,10 @@ fi
exit 0
%postun -n nemo-transferengine
%postun -n libnemotransferengine
/sbin/ldconfig
%postun -n nemo-transferengine
if [ -f "%{db_file}" ]
then
rm %{db_file}
......
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