summaryrefslogtreecommitdiff
path: root/packaging/connman.spec
blob: 316ebefe83c1e6adb7ce4ff423dd24f81f62876d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name:           connman
Version:        1.11
Release:        1
License:        GPL-2.0
Summary:        Connection Manager
Url:            http://connman.net
Group:          Connectivity/Connection Management
Source0:        %{name}-%{version}.tar.xz
Source1001:     connman.manifest
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libiptc)
BuildRequires:  pkgconfig(xtables)
BuildRequires:	pkgconfig(gnutls) 
BuildRequires:  readline-devel
Requires:       systemd
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

%description
Connection Manager provides a daemon for managing Internet connections
within embedded devices running the Linux operating system.

%package test
Summary:        Test Scripts for Connection Manager
Group:          Development/Testing
Requires:       %{name} = %{version}
Requires:       dbus-python
Requires:       python-gobject
Requires:       python-xml

%description test
Scripts for testing Connman and its functionality

%package devel
Summary:        Development Files for connman
Group:          Development/Tools
Requires:       %{name} = %{version}

%description devel
Header files and development files for connman.

%prep
%setup -q

cp %{SOURCE1001} .

%build
./bootstrap
%configure \
            --enable-threads \
            --enable-client \
            --enable-wifi=builtin \
%if 0%{?enable_connman_features}
            %connman_features \
%endif
            --enable-test \
            --with-systemdunitdir=%{_unitdir}

make %{?_smp_mflags}

%install
%make_install

mkdir -p %{buildroot}%{_unitdir}/network.target.wants
ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.service

%install_service multi-user.target.wants connman.service

%files
%manifest connman.manifest
%{_sbindir}/*
%config %{_sysconfdir}/dbus-1/system.d/*
%{_unitdir}/connman.service
%{_unitdir}/network.target.wants/connman.service
%{_unitdir}/multi-user.target.wants/connman.service


%files test
%{_libdir}/%{name}/test/*

%files devel
%{_includedir}/connman/*.h
%{_libdir}/pkgconfig/*.pc


%changelog