Commit 58cc8b94 authored by Raine Makelainen's avatar Raine Makelainen

[transfer-engine] Provide privileges files for mapplauncher. Contributes to JB#38238

parent ca985a90
/usr/bin/nemo-transfer-engine,aiu
......@@ -6,6 +6,7 @@ Group: System Environment/Daemon
License: LGPLv2.1
URL: https://git.merproject.org/mer-core/transfer-engine
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.privileges
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Sql)
......@@ -36,6 +37,7 @@ Obsoletes: nemo-transferengine <= 0.0.19
%{_bindir}/nemo-transfer-engine
%{_datadir}/dbus-1/services/org.nemo.transferengine.service
%{_datadir}/translations/nemo-transfer-engine_eng_en.qm
%{_datadir}/mapplauncherd/privileges.d/*
%package -n libnemotransferengine-qt5
Summary: Transfer engine library.
......@@ -122,6 +124,9 @@ mkdir -p %{buildroot}/%{_datadir}/nemo-transferengine
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/
mkdir -p %{buildroot}%{_datadir}/mapplauncherd/privileges.d
install -m 644 -p %{SOURCE1} %{buildroot}%{_datadir}/mapplauncherd/privileges.d
%define def_uid $(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
%define def_user $(getent passwd %def_uid | sed 's/:.*//')
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite
......
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