2 Summary: Connection Manager
5 Group: System Environment/Daemons
7 URL: http://connman.net/
8 Source0: %{name}-%{version}.tar.bz2
12 Requires: wpa_supplicant >= 0.7.1
16 Requires(post): systemd
17 Requires(preun): systemd
18 Requires(postun): systemd
19 BuildRequires: pkgconfig(libiptc)
20 BuildRequires: pkgconfig(xtables)
22 ##BuildRequires: pkgconfig(libiWmxSdk-0)
24 BuildRequires: pkgconfig(glib-2.0)
25 BuildRequires: pkgconfig(dbus-1)
26 BuildRequires: pkgconfig(libudev) >= 145
27 ##BuildRequires: openconnect
28 ##BuildRequires: openvpn
29 BuildRequires: iptables-devel
30 BuildRequires: pkgconfig(gnutls)
34 Connection Manager provides a daemon for managing Internet connections
35 within embedded devices running the Linux operating system.
40 Summary: Development files for Connection Manager
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 connman-devel contains development files for use with connman.
48 #Summary: ConnMan plugin for the Intel WiMAX Network Service
49 #Group: System/Networking
50 #Requires: %{name} = %{version}-%{release}
51 #Requires: WiMAX-Network-Service
54 #This plugin allows connman to work with WiMAX devices controlled by
55 #the Intel WiMAX Network Service
59 Summary: Test Scripts for Connection Manager
60 Group: Development/Tools
61 Requires: %{name} = %{version}-%{release}
67 Scripts for testing Connman and its functionality
71 %setup -q -n %{name}-%{version}
74 %configure --disable-static \
75 --enable-ethernet=builtin \
76 --enable-wifi=builtin \
77 --enable-ofono=builtin \
78 --enable-bluetooth=builtin \
79 --enable-loopback=builtin \
82 --with-systemdunitdir=%{_libdir}/systemd/system
87 ## --enable-openconnect=builtin \
88 ## --enable-openvpn=builtin \
93 mkdir -p %{buildroot}%{_sysconfdir}/connman
94 install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/connman/main.conf
96 mkdir -p %{buildroot}%{_libdir}/systemd/system/network.target.wants
97 ln -s ../connman.service %{buildroot}%{_libdir}/systemd/system/network.target.wants/connman.service
101 install -d -m 700 %{buildroot}/var/lib/connman
102 install -c -m 600 %{SOURCE1} %{buildroot}/var/lib/connman/settings
105 if [ $1 -eq 1 ] ; then
106 # Initial installation
107 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
111 if [ $1 -eq 0 ] ; then
112 # Package removal, not upgrade
113 /bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
114 /bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
118 /bin/systemctl --system daemon-reload >/dev/null 2>&1 || :
119 if [ $1 -ge 1 ] ; then
120 # Package upgrade, not uninstall
121 /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
125 %defattr(-,root,root,-)
126 %doc AUTHORS COPYING INSTALL ChangeLog NEWS README
128 #%{_libdir}/%{name}/scripts/*
129 %config %{_sysconfdir}/dbus-1/system.d/*.conf
130 %config %{_sysconfdir}/connman/*.conf
131 %{_libdir}/systemd/system/connman.service
132 %{_libdir}/systemd/system/network.target.wants/connman.service
133 /var/lib/connman/settings
137 %defattr(-,root,root,-)
138 %doc AUTHORS COPYING INSTALL
139 %{_includedir}/%{name}/*.h
140 %{_libdir}/pkgconfig/*.pc
143 #%defattr(-,root,root,-)
145 #%{_libdir}/%{name}/plugins/iwmxsdk.so
146 #%doc COPYING README INSTALL
150 %defattr(-,root,root,-)
151 %{_libdir}/%{name}/test/*