path: root/packaging/connman.spec
diff options
Diffstat (limited to 'packaging/connman.spec')
1 files changed, 88 insertions, 0 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
new file mode 100644
index 0000000..934f772
--- /dev/null
+++ b/packaging/connman.spec
@@ -0,0 +1,88 @@
+Name: connman
+Version: 1.9
+Release: 1
+License: GPL-2.0
+Summary: Connection Manager
+Group: System/Networking
+Source0: %{name}-%{version}.tar.xz
+Source1001: packaging/connman.manifest
+Patch0: dbus.patch
+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
+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/Tools
+Requires: %{name} = %{version}
+Requires: dbus-python
+Requires: pygobject
+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.
+%setup -q
+%patch0 -p1
+cp %{SOURCE1001} .
+%configure \
+ --enable-threads \
+ --enable-wifi=builtin \
+%if 0%{?enable_connman_features}
+ %connman_features \
+ --enable-test \
+ --with-systemdunitdir=%{_unitdir}
+make %{?_smp_mflags}
+mkdir -p %{buildroot}%{_unitdir}/
+ln -s ../connman.service %{buildroot}%{_unitdir}/
+%install_service connman.service
+%manifest connman.manifest
+%files test
+%files devel