+%define upgrade_script_path /usr/share/upgrade/scripts
+
Name: wifi-direct-manager
Summary: Wi-Fi Direct manger
-Version: 1.2.201
+Version: 1.2.202
Release: 1
Group: Network & Connectivity/Wireless
License: Apache-2.0
Source1: dbus-wfd-manager.conf
Source2: net.wifidirect.service
Source3: wifi-direct-manager.service
+Source4: wifi-direct-manager_upgrade.sh
BuildRequires: pkgconfig(capi-network-wifi-direct)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(dlog)
chmod 644 %{SOURCE1}
chmod 644 %{SOURCE2}
chmod 644 %{SOURCE3}
+chmod 755 %{SOURCE4}
cp -a %{SOURCE1} ./wfd-manager.conf
cp -a %{SOURCE2} .
cp -a %{SOURCE3} .
+cp -a %{SOURCE4} .
%build
cp net.wifidirect.service %{buildroot}%{_datadir}/dbus-1/system-services/net.wifidirect.service
mkdir -p %{buildroot}%{_libdir}/systemd/system/
cp wifi-direct-manager.service %{buildroot}%{_libdir}/systemd/system/wifi-direct-manager.service
+mkdir -p %{buildroot}%{upgrade_script_path}
+cp -f wifi-direct-manager_upgrade.sh %{buildroot}%{upgrade_script_path}
%post
chmod 644 %{TZ_SYS_RO_ETC}/wifi-direct/dhcpd.conf
%attr(644,root,root) %{_datadir}/dbus-1/system-services/*
%attr(644,root,root) %{_libdir}/systemd/system/*
%attr(755,-,-) %{_sbindir}/p2p_supp.sh
+%{upgrade_script_path}/wifi-direct-manager_upgrade.sh
%files -n wifi-direct-plugin-wpasupplicant
%manifest wifi-direct-plugin-wpasupplicant.manifest