Name: connman
Version: 1.38
-Release: 10
+Release: 14
License: GPL-2.0+
Summary: Connection Manager
Url: http://connman.net
Provides: %{name}-profile_common = %{version}-%{release}
Provides: %{name}-profile_mobile = %{version}-%{release}
Provides: %{name}-profile_wearable = %{version}-%{release}
+Provides: %{name}-profile_robot = %{version}-%{release}
%description
Connection Manager provides a daemon for managing Internet connections
Connman without ethernet support
This overwrites conf file of %{name}.
-%package extension-bpf
-Summary: Files for BPF support
-Requires: libelf
-Requires: zlib
-Requires: %{name} = %{version}-%{release}
-%description extension-bpf
-Files for BPF support
-
-%package extension-bpf-devel
-License: GPL-2.0+ and LGPL-2.1+
-Summary: Development files for BPF support
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-extension-bpf
-%description extension-bpf-devel
-Header files and development files for BPF support
-
+%package profile_robot
+Summary: connman extension for robot profile
+Requires: %{name} = %{version}-%{release}
+%description profile_robot
+connman extension for Tizen robot profile
%prep
%setup -q
rm %{buildroot}%{_sysconfdir}/dbus-1/system.d/*.conf
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
cp src/connman.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
+cp src/connman-robot.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
%if %{with connman_vpnd}
cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
%endif
-# BPF file
-mkdir -p %{buildroot}/%{_includedir}/bpf
-cp -rf resources/usr/include/bpf/* %{buildroot}/%{_includedir}/bpf
-cp resources/var/lib/connman/bpf_code %{buildroot}/%{_localstatedir}/lib/connman/bpf_code
-
-%ifarch aarch64
-cp resources/usr/lib/libbpf.so.64 %{buildroot}/%{_libdir}/libbpf.so.0.2.0
-%else
-cp resources/usr/lib/libbpf.so.32 %{buildroot}/%{_libdir}/libbpf.so.0.2.0
-%endif
-
%post
#chsmack -a 'System' /%{_localstatedir}/lib/connman
#chsmack -a 'System' /%{_localstatedir}/lib/connman/settings
%attr(600,network_fw,network_fw) /%{_localstatedir}/lib/connman/settings
%attr(644,root,root) %{_datadir}/dbus-1/system-services/net.connman.service
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*
+%exclude %{_sysconfdir}/dbus-1/system.d/connman-robot.conf
%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*.conf
%attr(644,root,root) %{_unitdir}/connman.service
%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf.disable.eth
%license COPYING
-%files extension-bpf
-%manifest %{name}.manifest
-%attr(755,root,root) %{_libdir}/libbpf.so.0.2.0
-%attr(640,network_fw,network_fw) %{_localstatedir}/lib/connman/bpf_code
+%post profile_robot
+mv %{_sysconfdir}/dbus-1/system.d/connman-robot.conf %{_sysconfdir}/dbus-1/system.d/connman.conf
-%post extension-bpf
-ln -s %{_libdir}/libbpf.so.0.2.0 %{_libdir}/libbpf.so.0
-ln -s %{_libdir}/libbpf.so.0.2.0 %{_libdir}/libbpf.so
-
-%files extension-bpf-devel
+%files profile_robot
%manifest %{name}.manifest
-%{_includedir}/bpf/*
-%license COPYING
-%license COPYING.LGPLv2
+%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/connman-robot.conf