1 %bcond_with connman_openconnect
2 %bcond_with connman_openvpn
3 %bcond_with connman_vpnd
4 %bcond_with connman_ntp
10 Summary: Connection Manager
11 Url: http://connman.net
12 Group: Network & Connectivity/Connection Management
13 Source0: %{name}-%{version}.tar.gz
14 Source10: 40-connman-ntp.list
15 Source11: connman-ntp.service
16 Source1001: connman.manifest
17 BuildRequires: systemd-devel
18 BuildRequires: pkgconfig(dbus-1)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(libiptc)
21 BuildRequires: pkgconfig(xtables)
22 BuildRequires: pkgconfig(gnutls)
23 %if %{with connman_openconnect}
24 BuildRequires: openconnect
26 %if %{with connman_openvpn}
27 BuildRequires: openvpn
29 BuildRequires: readline-devel
34 Connection Manager provides a daemon for managing Internet connections
35 within embedded devices running the Linux operating system.
37 %if %{with connman_openconnect}
38 %package plugin-openconnect
39 Summary: Openconnect Support for Connman
40 Requires: %{name} = %{version}
43 %description plugin-openconnect
44 Openconnect Support for Connman.
47 %if %{with connman_openvpn}
48 %package plugin-openvpn
49 Summary: Openvpn Support for Connman
50 Requires: %{name} = %{version}
53 %description plugin-openvpn
54 OpenVPN support for Connman.
57 %if %{with connman_vpnd}
59 Summary: VPN Support for Connman
60 BuildRequires: %{name} = %{version}
61 Requires: %{name} = %{version}
63 %description connman-vpnd
64 Provides VPN support for Connman
68 Summary: Test Scripts for Connection Manager
69 Requires: %{name} = %{version}
75 Scripts for testing Connman and its functionality
78 Summary: Development Files for connman
79 Requires: %{name} = %{version}
82 Header files and development files for connman.
89 CFLAGS+=" -DTIZEN_EXT"
97 --enable-wifi=builtin \
98 %if %{with connman_openconnect}
99 --enable-openconnect \
101 %if %{with connman_openvpn}
107 --with-systemdunitdir=%{_unitdir}
114 %if %{with connman_ntp}
115 mkdir -p %{buildroot}/usr/lib/systemd/ntp-units.d
116 install -m644 %{SOURCE10} %{buildroot}/usr/lib/systemd/ntp-units.d
117 install -m644 %{SOURCE11} %{buildroot}%{_unitdir}
118 %install_service multi-user.target.wants connman-ntp.service
121 mkdir -p %{buildroot}%{_sysconfdir}/connman
122 cp src/main.conf %{buildroot}%{_sysconfdir}/connman/main.conf
124 %install_service multi-user.target.wants connman.service
126 %if %{with connman_vpnd}
127 %install_service multi-user.target.wants connman-vpn.service
131 systemctl daemon-reload
132 systemctl restart connman.service
133 %if %{with connman_vpnd}
134 systemctl restart connman-vpn.service
138 systemctl stop connman.service
139 %if %{with connman_vpnd}
140 systemctl stop connman-vpn.service
144 systemctl daemon-reload
149 %manifest %{name}.manifest
152 %{_libdir}/connman/plugins/*.so
154 %config %{_sysconfdir}/connman/main.conf
155 %config %{_sysconfdir}/dbus-1/system.d/*
156 %{_unitdir}/connman.service
157 %{_unitdir}/multi-user.target.wants/connman.service
158 %if %{with connman_ntp}
159 %dir /usr/lib/systemd/ntp-units.d
160 %{_unitdir}/connman-ntp.service
161 %{_unitdir}/multi-user.target.wants/connman-ntp.service
162 /usr/lib/systemd/ntp-units.d/40-connman-ntp.list
166 %manifest %{name}.manifest
167 %{_libdir}/%{name}/test/*
170 %manifest %{name}.manifest
171 %{_includedir}/connman/*.h
172 %{_libdir}/pkgconfig/*.pc
174 %if %{with connman_openconnect}
175 %files plugin-openconnect
176 %manifest %{name}.manifest
177 %{_unitdir}/connman-vpn.service
178 %{_libdir}/connman/plugins-vpn/openconnect.so
179 %{_libdir}/connman/scripts/openconnect-script
180 %{_datadir}/dbus-1/system-services/net.connman.vpn.service
183 %if %{with connman_openvpn}
184 %files plugin-openvpn
185 %manifest %{name}.manifest
186 %{_unitdir}/connman-vpn.service
187 %{_libdir}/%{name}/plugins-vpn/openvpn.so
188 %{_libdir}/%{name}/scripts/openvpn-script
189 %{_datadir}/dbus-1/system-services/net.connman.vpn.service
192 %if %{with connman_vpnd}
194 %manifest %{name}.manifest
195 %{_sbindir}/connman-vpnd
196 %{_unitdir}/connman-vpn.service
197 %{_unitdir}/multi-user.target.wants/connman-vpn.service
198 %dir %{_libdir}/%{name}
199 %dir %{_libdir}/%{name}/scripts
200 %dir %{_libdir}/%{name}/plugins-vpn
201 %config %{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
202 %{_datadir}/dbus-1/system-services/net.connman.vpn.service