BuildRequires: pkgconfig(gmock)
%endif
-%define upgrade_script_path /usr/share/upgrade/scripts
-
%description
This package includes a daemon which processes Media Transper Protocol(MTP) commands as MTP responder role.
mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d
cp packaging/99-mtp-responder.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/99-mtp-responder.rules
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/500.%{name}-upgrade.sh %{buildroot}%{upgrade_script_path}
-
install -D -m 0644 mtp-responder.service %{buildroot}/%{_unitdir}/mtp-responder.service
install -D -m 0644 mtp-responder.socket %{buildroot}/%{_unitdir}/mtp-responder.socket
%{_unitdir}/mtp-responder.socket
%{_prefix}/lib/udev/rules.d/99-mtp-responder.rules
/opt/var/lib/misc/mtp-responder.conf
-%{upgrade_script_path}/500.%{name}-upgrade.sh
/etc/mtp-responder/descs
/etc/mtp-responder/strs
+++ /dev/null
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#----------------------------------------------#
-# mtp-responder patch for upgrade (2.4 -> 3.0) #
-#----------------------------------------------#
-
-# Macro
-MTP_RESPONDER_CONF=/opt/var/lib/misc/mtp-responder.conf
-
-chown owner:users $MTP_RESPONDER_CONF
-chsmack -a "_" $MTP_RESPONDER_CONF