Name: wifi-direct-manager
Summary: Wi-Fi Direct manger
-Version: 1.2.239
+Version: 1.2.240
Release: 1
Group: Network & Connectivity/Wireless
License: Apache-2.0
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if mobile || "undefined"
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-mkdir -p build_mobile
-pushd build_mobile
-cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
-%if ! 0%{?model_build_feature_network_tethering_disable}
- -DTIZEN_TETHERING_ENABLE=0 \
-%endif
- -DTIZEN_DEBUG_DBUS_VALUE=1 \
-%if "%{?_lib}" == "lib64"
- -DTIZEN_ARCH_64=1 \
-%endif
- -DLIB_DIR=%{_libdir} \
- -DBIN_DIR=%{_bindir} \
- -DSBIN_DIR=%{_sbindir} \
- -DTZ_SYS_RO_ETC=%{TZ_SYS_RO_ETC} \
- -DTZ_SYS_VAR=%{TZ_SYS_VAR} \
- -DTZ_SYS_ETC=%{TZ_SYS_ETC} \
- -DTZ_SYS_RUN=%{TZ_SYS_RUN}
-
-make %{?_smp_mflags}
-popd
-
-%ifarch %{arm}
-mkdir -p build_tm1
-pushd build_tm1
-cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
-%if ! 0%{?model_build_feature_network_tethering_disable}
- -DTIZEN_TETHERING_ENABLE=0 \
-%endif
- -DTIZEN_DEBUG_DBUS_VALUE=1 \
-%if "%{?_lib}" == "lib64"
- -DTIZEN_ARCH_64=1 \
-%endif
- -DLIB_DIR=%{_libdir} \
- -DBIN_DIR=%{_bindir} \
- -DSBIN_DIR=%{_sbindir} \
- -DTZ_SYS_RO_ETC=%{TZ_SYS_RO_ETC} \
- -DTZ_SYS_VAR=%{TZ_SYS_VAR} \
- -DTZ_SYS_ETC=%{TZ_SYS_ETC} \
- -DTZ_SYS_RUN=%{TZ_SYS_RUN}
-
-make %{?_smp_mflags}
-popd
-%endif
-%endif
-
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if wearable || "undefined"
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-mkdir -p build_wearable
-pushd build_wearable
-cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
-%if ! 0%{?model_build_feature_network_tethering_disable}
- -DTIZEN_TETHERING_ENABLE=0 \
-%endif
- -DTIZEN_DEBUG_DBUS_VALUE=1 \
-%if "%{?_lib}" == "lib64"
- -DTIZEN_ARCH_64=1 \
-%endif
- -DLIB_DIR=%{_libdir} \
- -DBIN_DIR=%{_bindir} \
- -DSBIN_DIR=%{_sbindir} \
- -DTZ_SYS_RO_ETC=%{TZ_SYS_RO_ETC} \
- -DTZ_SYS_VAR=%{TZ_SYS_VAR} \
- -DTZ_SYS_ETC=%{TZ_SYS_ETC} \
- -DTZ_SYS_RUN=%{TZ_SYS_RUN}
-
-make %{?_smp_mflags}
-popd
-%endif
-
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if tv || "undefined"
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-mkdir -p build_tv
-pushd build_tv
-cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
%if ! 0%{?model_build_feature_network_tethering_disable}
-DTIZEN_TETHERING_ENABLE=0 \
%endif
-DTZ_SYS_RUN=%{TZ_SYS_RUN}
make %{?_smp_mflags}
-popd
-%endif
-
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
-# if common || ivi || "undefined"
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
-# common
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=$ARCH \
-%if ! 0%{?model_build_feature_network_tethering_disable}
- -DTIZEN_TETHERING_ENABLE=0 \
-%endif
- -DTIZEN_DEBUG_DBUS_VALUE=1 \
-%if "%{?_lib}" == "lib64"
- -DTIZEN_ARCH_64=1 \
-%endif
--DLIB_DIR=%{_libdir} \
--DBIN_DIR=%{_bindir} \
--DSBIN_DIR=%{_sbindir} \
--DTZ_SYS_RO_ETC=%{TZ_SYS_RO_ETC} \
--DTZ_SYS_VAR=%{TZ_SYS_VAR} \
--DTZ_SYS_ETC=%{TZ_SYS_ETC} \
--DTZ_SYS_RUN=%{TZ_SYS_RUN}
-
-make %{?_smp_mflags}
-%endif
%install
rm -rf %{buildroot}
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
cp files/wifi-direct-manager.conf.mobile %{buildroot}/etc/wifi-direct/wifi-direct-manager.conf.mobile
-pushd build_mobile
-%make_install
-popd
-
%ifarch %{arm}
cp files/wifi-direct-manager.conf.tm1 %{buildroot}/etc/wifi-direct/wifi-direct-manager.conf.tm1
-pushd build_tm1
-%make_install
-popd
%endif
%endif
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
cp files/wifi-direct-manager.conf.wearable %{buildroot}/etc/wifi-direct/wifi-direct-manager.conf.wearable
-pushd build_wearable
-%make_install
-popd
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if tv || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
cp files/wifi-direct-manager.conf.tv %{buildroot}/etc/wifi-direct/wifi-direct-manager.conf.tv
-pushd build_tv
-%make_install
-popd
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
-%make_install
+cp files/wifi-direct-manager.conf.common %{buildroot}/etc/wifi-direct/wifi-direct-manager.conf.common
%endif
+%make_install
+
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
cp wfd-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/wfd-manager.conf
mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
touch %{TZ_SYS_VAR}/lib/misc/dhcpd.leases
chmod 666 %{TZ_SYS_VAR}/lib/misc/dhcpd.leases
+
+# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# if common || "undefined"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
+%post profile_common
+mv -f %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.common %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf
+%endif
+
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_mobile
mv -f %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.mobile %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf
-pushd %{_bindir}
-popd
-%preun profile_mobile
-case "$1" in
- 0)
- # This is an un-installation.
- rm %{_bindir}/wfd-manager
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
-
-%post -n wifi-direct-plugin-wpasupplicant-profile_mobile
-pushd %{_libdir}
-popd
-/sbin/ldconfig
-
-%preun -n wifi-direct-plugin-wpasupplicant-profile_mobile
-case "$1" in
- 0)
- # This is an un-installation.
- /sbin/ldconfig
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
+%endif
%ifarch %{arm}
%post extension-TM1
mv -f %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.tm1 %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf
-pushd %{_bindir}
-popd
-%preun extension-TM1
-case "$1" in
- 0)
- # This is an un-installation.
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
-
-%post -n wifi-direct-plugin-wpasupplicant-extension-TM1
-pushd %{_libdir}
-popd
-/sbin/ldconfig
-
-%preun -n wifi-direct-plugin-wpasupplicant-extension-TM1
-case "$1" in
- 0)
- # This is an un-installation.
- pushd %{_libdir}
- popd
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
-
-%endif
-%endif //mobile
+%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_wearable
mv -f %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.wearable %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf
-pushd %{_bindir}
-popd
-%preun profile_wearable
-case "$1" in
- 0)
- # This is an un-installation.
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
-
-%post -n wifi-direct-plugin-wpasupplicant-profile_wearable
-pushd %{_libdir}
-popd
-/sbin/ldconfig
-
-%preun -n wifi-direct-plugin-wpasupplicant-profile_wearable
-case "$1" in
- 0)
- # This is an un-installation.
- /sbin/ldconfig
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
%endif
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_tv
mv -f %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.tv %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf
-pushd %{_bindir}
-popd
-%preun profile_tv
-case "$1" in
- 0)
- # This is an un-installation.
- rm %{_bindir}/wfd-manager
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
-
-%post -n wifi-direct-plugin-wpasupplicant-profile_tv
-pushd %{_libdir}
-popd
-/sbin/ldconfig
-
-%preun -n wifi-direct-plugin-wpasupplicant-profile_tv
-case "$1" in
- 0)
- # This is an un-installation.
- /sbin/ldconfig
- ;;
- 1)
- # This is an upgrade.
- # Do nothing.
- :
- ;;
-esac
%endif
%files
%{_unitdir}/wifi-direct-manager.service
%endif
%attr(755,-,-) %{_sbindir}/p2p_supp.sh
+%attr(755,-,-) %{_bindir}/wfd-manager
%{upgrade_script_path}/500.wifi-direct-manager_upgrade.sh
%files -n wifi-direct-plugin-wpasupplicant
# if common || ivi || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
%files profile_common
-%defattr(-,network_fw,network_fw,-)
-%{_bindir}/wfd-manager
+%attr(644,network_fw,network_fw) %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.common
%files -n wifi-direct-plugin-wpasupplicant-profile_common
# default .so files are housed in the main pkg.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%files profile_mobile
-%attr(644,root,root) %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.mobile
+%attr(644,network_fw,network_fw) %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.mobile
%files -n wifi-direct-plugin-wpasupplicant-profile_mobile
%manifest wifi-direct-plugin-wpasupplicant.manifest
# if tv || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%files profile_tv
-%attr(644,root,root) %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.tv
+%attr(644,network_fw,network_fw) %{_sysconfdir}/wifi-direct/wifi-direct-manager.conf.tv
%files -n wifi-direct-plugin-wpasupplicant-profile_tv
%manifest wifi-direct-plugin-wpasupplicant.manifest