summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 22:44:13 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2012-12-19 19:19:26 (GMT)
commitd8ddcf3b7fde21324b1263a5e0654c6ab23d0ff7 (patch)
treee6da4c572af6a14af1efbf8ee6bb962103c71aa3
parent4bf217329babf4f7792b43d70228af8269c3332c (diff)
downloadconnman-d8ddcf3b7fde21324b1263a5e0654c6ab23d0ff7.zip
connman-d8ddcf3b7fde21324b1263a5e0654c6ab23d0ff7.tar.gz
connman-d8ddcf3b7fde21324b1263a5e0654c6ab23d0ff7.tar.bz2
add packaging
-rw-r--r--packaging/connman.manifest5
-rw-r--r--packaging/connman.spec88
2 files changed, 93 insertions, 0 deletions
diff --git a/packaging/connman.manifest b/packaging/connman.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/connman.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
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
+Url: http://connman.net
+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
+
+%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/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.
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+cp %{SOURCE1001} .
+%configure \
+ --enable-threads \
+ --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}/*
+#%{_libdir}/connman/plugins/*.so
+#%{_datadir}/dbus-1/services/*
+%{_sysconfdir}/dbus-1/system.d/*
+#%{_sysconfdir}/connman/main.conf
+#%{_sysconfdir}/dbus-1/system.d/*.conf
+%{_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